Text processing method and device
A text processing and text technology, applied in the field of text processing, can solve the problems of low efficiency and low accuracy of Chinese key phrase extraction
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0090] see figure 1 , figure 1 It is a flow chart of a text processing method provided in Embodiment 1 of the present application. like figure 1 As shown in , the text processing method provided by the embodiment of the present application includes the following steps:
[0091] S101: Perform word segmentation processing on the acquired Chinese text to obtain a plurality of Chinese words.
[0092] In specific implementation, firstly, obtain the Chinese text that needs to be extracted with Chinese key phrases, and then perform word segmentation processing on the Chinese text through a word segmentation tool (such as jieba) to obtain multiple Chinese words.
[0093] Here, the format of the Chinese text is in units of lines, and each line is a sentence. In this way, it is convenient for the word segmentation tool to perform word segmentation on the Chinese text.
[0094] In one example, a piece of Chinese text is "Thank you for your patience". After word segmentation by word s...
Embodiment 2
[0121] see figure 2 , figure 2 It is a flow chart of another text processing method provided in Embodiment 2 of the present application. like figure 2 As shown in , the text processing method provided by the embodiment of the present application includes the following steps:
[0122] S201: Perform word segmentation processing on the acquired Chinese text to obtain multiple Chinese words.
[0123] In the specific implementation, firstly, obtain the Chinese text that needs to be extracted with Chinese key phrases, and then perform word segmentation processing on the Chinese text through a word segmentation tool to obtain multiple Chinese words.
[0124] S202: Find the English letter sequence corresponding to each Chinese word in the preset Chinese-English mapping table.
[0125] In the specific implementation, since the current algorithm for extracting key phrases based on English text is relatively mature, converting Chinese text into English text and using English text ...
Embodiment 3
[0166] Based on the same application concept, Embodiment 3 of this application also provides a text processing device corresponding to the text processing methods provided in Embodiment 1 and Embodiment 2. Since the problem-solving principle of the device in the embodiment of this application is the same as that of the above-mentioned implementation of this application The text processing methods in Example 1 and Example 2 are similar, so the implementation of the device can refer to the implementation of the method, and the repetition will not be repeated.
[0167] see image 3 As shown, it is one of the functional block diagrams of a text processing device 300 provided in Embodiment 3 of the present application, see Figure 4 As shown, it is the second functional block diagram of a text processing device 300 provided in the third embodiment of the present application, see Figure 5 As shown, it is a schematic structural diagram of an extraction module 340 in a text processi...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


