US 12,223,271 B2
Text processing method, device and storage medium
Zeyu Chen, Beijing (CN); Haifeng Wang, Beijing (CN); Tian Wu, Beijing (CN); Dianhai Yu, Beijing (CN); Yanjun Ma, Beijing (CN); and Xiaoguang Hu, Beijing (CN)
Assigned to Beijing Baidu Netcom Science Technology Co., Ltd., Beijing (CN)
Filed by Beijing Baidu Netcom Science Technology Co., Ltd., Beijing (CN)
Filed on Jul. 27, 2022, as Appl. No. 17/874,394.
Claims priority of application No. 202111505371.1 (CN), filed on Dec. 10, 2021.
Prior Publication US 2023/0186024 A1, Jun. 15, 2023
Int. Cl. G06F 40/10 (2020.01); G06F 40/284 (2020.01); G06F 40/47 (2020.01)
CPC G06F 40/284 (2020.01) [G06F 40/47 (2020.01)] 26 Claims
OG exemplary drawing
 
1. A text processing method, comprising:
performing text processing on first text, by using a text processing acceleration operator, comprising:
obtaining a first tensor corresponding to the first text;
segmenting the first tensor, to obtain a plurality of segmentation results;
performing identifier mapping on each of the plurality of segmentation results; and
generating a second tensor, by using a mapping result; and
performing parallel acceleration processing on, content after the text processing, by using the text processing acceleration operator, comprising:
processing, in parallel, the second tensor, by using multiple threads.