A method and system for discovering new words through multiple corpora

Through multi-corpus acquisition and hanlp part-of-speech tagging, combined with large models, new word collections are acquired and dynamic lexicon structures are established, which solves the problems of traditional lexicon update lag and poor splitting effect, and achieves accurate identification and text analysis of new words. of efficiency.

CN118485072BActive Publication Date: 2024-09-17SOCIAL GOVERNANCE (CHENGDU) SMART TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410930886.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-09-17
Estimated Expiration
2044-07-12

AI Technical Summary

Technical Problem

The update of traditional offline lexicon lags behind and the splitting results are poor. It cannot meet the needs of frequently updating the lexicon and processing new words. It is especially inefficient and inflexible in large-scale, real-time text processing.

Method used

Obtain text data through multiple corpora, use hanlp part-of-speech tagging and word combination strategies, and combine with large models to obtain new word sets, establish undetermined word sets, reserved word sets and new word sets, dynamically update the word database, circulate words according to popularity rules, and generate Customize the dictionary for word segmentation.

Benefits of technology

It achieves accurate identification of emerging vocabulary and Internet terms, adapts to language changes, improves the accuracy and efficiency of text analysis, dynamically updates the vocabulary to ensure timeliness and accuracy, and is suitable for rapidly changing text data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118485072B
    Figure CN118485072B
Patent Text Reader

Abstract

The present invention discloses a method and system for discovering new words through multiple corpora, and relates to the technical field of text processing, including: obtaining text sentences and phrase data from multiple platforms and preprocessing; using different word segmentation strategies, taking the intersection of the obtained adjacent word groups, and when the obtained newly discovered word set has a word, if the word exists in the pending word set, the word is recalled to the new word set, and the matching time and cumulative quantity are updated; otherwise, if the word is in the new word set, the matching time and cumulative quantity of the word are updated; when the word is not in the new word set but in the reserved word set, the heat time and cumulative heat of the word are updated; if the word is not in the new word set, the heat time and cumulative heat of the word are updated; if the word is not in the reserved word set, the word is initialized in the reserved word set; the word circulates in the reserved word set, the new word set, and the pending word set, and disappears in the reserved word set or disappears from the pending word set according to the set rules. The present invention dynamically updates the word segmentation word library, and can timely capture the newly appeared hot words through the heat analysis algorithm and the dynamic update of the hot word library rules, and the original hot words will also disappear, thereby maintaining the accuracy and practicality of the word segmentation results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of text processing, and in particular to a method and system for discovering new words through multiple corpora. Background Art

[0002] The traditional offline word library segmentation mode is a method of segmenting words based on a predefined dictionary. This mode has the following problems when processing text:

[0003] 1. Delayed word library updates: Traditional word libraries require manual maintenance and updates, which means that the content of word libraries lags behind the development of language. With the continuous emergence of new words and buzzwords, the old word library cannot include these new words in time, resulting in the inability to accurately identify and process new words during word segmentation.

[0004] 2. Poor segmentation results: For words not included in the vocabulary, traditional offline word segmenters usually split them into smaller units, which may not be suitable for actual language use. This processing method will cause new words, proper nouns or compound words to be incorrectly segmented, affecting text understanding and subsequent processing.

[0005] 3. Inefficient maintenance and management of custom new word libraries: Although traditional offline word segmentation has certain advantages in processing speed, it lacks flexibility and accuracy, and is not highly maintainable, especially in large-scale, real-time text processing requirements. Frequent updates of word libraries and processing of new words are very cumbersome and inefficient in traditional models. Summary of the invention

[0006] The purpose of the present invention is to provide a method and system for discovering new words through multiple corpora, which is used to solve the problems in the prior art that after the traditional word library is updated, the splitting effect is poor and the requirements of frequently updating the word library and processing new words cannot be met.

[0007] The present invention solves the above problems through the following technical solutions:

[0008] A method for discovering new words through multiple corpora, comprising:

[0009] Step S1, obtaining text sentences and phrase data from multiple platforms and performing preprocessing;

[0010] Step S2: Based on the hanlp part-of-speech tagging and word group merging strategy, adjacent words whose occurrence frequency exceeds the set number of times are combined into a new word result set B1;

[0011] The large model is called to obtain a set of new words or phrases in the text sentence to obtain a new word result set B2;

[0012] Take the intersection of the new word result set B1 and the new word result set B2 to obtain the newly discovered word set;

[0013] Step S3, when a word is found in the newly discovered word set, determine whether the word exists in the pending word set. If so, the word in the pending word set is recalled and re-enters the new word set, and the matching time and cumulative number are updated; otherwise, determine whether the word is in the new word set. If so, update the matching time and cumulative number for the word; if not, determine whether the word exists in the reserved word set. If so, update the heat time and cumulative heat for the word; if the word is not in the reserved word set, initialize the word in the reserved word set; wherein the reserved word set is a set of newly generated words that have not yet reached the heat standard of the new word library; pending word set: after the words in the new word set do not meet the heat requirement, they flow to the pending word set. At this time, the word has not disappeared and can be recalled to the new word set; new word set: after the words in the reserved word set meet the heat threshold rule, they enter the new word set, and the word set is used as a custom dictionary for word segmentation;

[0014] Step S4: word flow:

[0015] If a word in the reserved word set exceeds the pre-set heat threshold of the new word, the word will flow from the reserved word set to the new word set;

[0016] If the heat time of a word in the new word set does not meet the heat requirement, the word will be transferred from the new word set to the pending word set; if the heat value of a word reaches the first setting condition, the word will disappear from the reserved word set;

[0017] When a word in the pending word set is matched by a new word again, the word re-enters the new word set; when the word heat is lower than the lower threshold, the word disappears from the pending word set.

[0018] Furthermore, when a word in the reserved word set exceeds the pre-set heat threshold of the new word, the word is transferred from the reserved word set to the new word set as follows:

[0019] Rule 1: If a word is generated multiple times by multiple channels within a unit time t, then the word enters the new vocabulary;

[0020] Rule 2: Get Cooldown Factor :

[0021] ;

[0022] Among them, the current word frequency is the number of times the word appears in the current cycle (such as the day); the historical word frequency is the number of times the word appears in the previous cycle (such as yesterday), and the time difference is the timing cycle (such as 1, unit: day); the lower the cooling coefficient, the greater the heat; determine whether the cooling coefficient is lower than the upper limit threshold. If so, the word flows from the reserved word set to the new word set. If not, continue to observe and determine the heat decay value of the reserved word set.

[0023] Furthermore, the heat time Δt=current time-most recent heat time, when Δt≥set value, it flows to the pending word set.

[0024] Furthermore, when the heat value of a word reaches the first setting condition, the word disappears from the reserved word set, specifically:

[0025] Define the reserved word set S 预 , the word heat value in the reserved word set is c 预 , c 预 The initial value is set to c 预初始 , c 预初始 is a constant that does not change; the heat decay value per unit time t is m 预 , that is, the current c 预 -m 预 , the new word matches the heat increase value n 预 , that is, the current c 预 +n 预 ;

[0026] The decay calculation is performed through the scheduled task. When the interval time is less than the unit time t, no decay calculation is performed.

[0027] Define the length of the reserved word set L 预 , all words in the reserved word set are sorted from high to low according to the heat value, and the word number is greater than L 预 , the word is cleared.

[0028] Furthermore, when the heat of a word is lower than the lower threshold, the word disappears from the pending word set, specifically:

[0029] Define the pending word set S 待定 , the heat value of the word in the pending word set is c 待定 , the initial value is set to c 待定初始 , decays by unit time t m 待定 , that is, c 待定 -m 待定 ; C 待定 The initial value is equal to C 待定初始 , C 待定初始 It is a constant and does not change;

[0030] When the heat value c 待定 ≤ the lower threshold, the word disappears and is cleared.

[0031] Furthermore, the word group merging strategy includes:

[0032] Configure the parameters of the word segmentation tool, add custom dictionaries, stop words, and new word bases, use the generated new word set as the custom word dictionary for word segmentation, load the user-defined dictionary, so that the custom phrases can be identified during the word segmentation process and segmented as a whole;

[0033] Introduce word segmentation methods, use hanlp and jieba word segmentation methods, and generate corresponding word segmentation results respectively;

[0034] The generated word segmentation results are combined and finally the single words are filtered to finally get the result of this word segmentation.

[0035] Furthermore, the preprocessing includes: removing punctuation marks, numbers, and special characters to retain only the text content; and performing spelling check and correction on the text.

[0036] A system for discovering new words through multiple corpora, comprising:

[0037] The text data acquisition and processing module is used to acquire text sentences and phrase data from multiple platforms, remove punctuation marks, numbers, and special characters, retain only the text content, and perform spelling check and correction on the text;

[0038] A new word discovery module is used to obtain new words and / or phrase sets from text sentences using different word segmentation strategies to form new word result sets, and obtain a new word discovery set by taking the intersection of the new word result sets;

[0039] The new word circulation module is used to determine whether the words in the new word discovery set are in the pending word set, the new word set, and the reserved word set in turn, and realize the circulation of new words in the pending word set, the new word set, and the reserved word set according to preset conditions, and realize the extinction of new words according to extinction conditions. Specifically:

[0040] When a word is found in the newly discovered word set, it is determined whether the word exists in the pending word set. If so, the word in the pending word set is recalled and re-entered into the new word set, and the matching time and cumulative number are updated; otherwise, it is determined whether the word is in the new word set. If so, the matching time and cumulative number are updated for the word; if not, it is determined whether the word exists in the reserved word set. If so, the heat time and cumulative heat of the word are updated; if the word is not in the reserved word set, the word is initialized in the reserved word set;

[0041] If a word in the reserved word set exceeds the pre-set heat threshold of the new word, the word will flow from the reserved word set to the new word set;

[0042] If the heat time of a word in the new word set does not meet the heat requirement, the word will be transferred from the new word set to the pending word set; if the heat value of a word reaches the first setting condition, the word will disappear from the reserved word set;

[0043] When a word in the pending word set is matched by a new word again, the word re-enters the new word set; when the word heat is lower than the lower threshold, the word disappears from the pending word set.

[0044] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0045] (1) This method can effectively process emerging words and Internet terms that are difficult to identify with traditional word segmentation methods, and can also adapt to the dynamic changes of language and improve the accuracy and efficiency of text analysis. In addition, this method can also help discover and understand social hot spots, popular trends, etc., and has important application value in fields such as analysis and market research.

[0046] (2) Based on real-time analysis of text data, the present invention can dynamically update the word segmentation word library to ensure that new words and popular words can be identified and processed in a timely manner. This method extracts new words from massive texts and updates the word library through automated means, greatly improving the timeliness and accuracy of word segmentation; through the heat analysis algorithm and the dynamic update of the hot word library rules, it can capture new hot words in a timely manner, while the original hot words will also disappear, thereby maintaining the accuracy and practicality of the word segmentation results. It is particularly suitable for processing rapidly changing text data such as news and social media. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 A processing flow chart of a newly generated word of the present invention;

[0048] Figure 2 A schematic diagram of the flow of words in new word sets, pending word sets and reserved word sets, as well as the disappearance of words. DETAILED DESCRIPTION

[0049] The present invention is further described in detail below in conjunction with examples, but the embodiments of the present invention are not limited thereto.

[0050] Embodiment 1:

[0051] Combined with Figure 1 As shown, a method for discovering new words through multiple corpora includes:

[0052] Step S1: Acquire text and phrase data through multiple channels, such as real-time archive of enterprise WeChat chat sessions and crawling of today's hot list (a collection of the latest searches and popular word lists on multiple platforms). The hot list data is crawled in a fixed period;

[0053] Perform normalization preprocessing on the corpus. Remove useless punctuation marks, numbers, special characters, etc., and keep only the text content; perform spelling check and correction on the text to avoid analysis bias caused by spelling errors;

[0054] Step S2: Based on the hanlp part-of-speech tagging and word group merging strategy, adjacent words whose occurrence frequency exceeds the set number of times are combined into new words. The specific strategy is as follows:

[0055] Noun + Noun (NN+NN) combination: usually indicates a compound noun.

[0056] Adjective + noun (JJ + NN) combination: usually expresses the attributes or characteristics of the noun.

[0057] Verb + noun (VV+NN) combination: usually expresses the relationship between an action and an object.

[0058] Adverb + Verb (AD + VV) combination: usually expresses the manner or degree of an action.

[0059] Noun + Verb (NN+VV) combination: usually indicates the object of an action or the result of an action.

[0060] Verb + adverb (VV + AD) combination: usually expresses the degree or manner of action.

[0061] Noun + adjective (NN+JJ) combination: usually expresses the attributes or characteristics of the noun.

[0062] Verb + Verb (VV+VV) combination: usually indicates continuous action.

[0063] According to the above strategy, a new word or phrase set B1 is assembled.

[0064] The large model is called to obtain a set of new words or phrases in the text sentence to obtain a new word result set B2:

[0065] Implement Chinese word segmentation based on the ChatGLM3 large model. Design a Prompt template according to the needs of the target application to guide the large model to return new word results.

[0066] Prompt design: Design a clear prompt template, such as "What new words are found in the following sentence: '[sentences with new words to be found]'". Optimize the prompt content to ensure that the large model can understand and perform word segmentation tasks.

[0067] According to the above strategy, a new word or phrase set B2 is assembled.

[0068] Integrate the obtained results and take the intersection to obtain the newly discovered word set C=B1∩B2, and obtain the complete match results.

[0069] For example:

[0070] The parts of speech combination obtains a new word set: {123,345,678,6789}.

[0071] The large model obtains a new word set: {1234,45,6789}.

[0072] Finally, the intersection is calculated to generate a set of newly discovered words: {6789}.

[0073] Step S3: Figure 1As shown, when a new word set is found, it is determined whether the word exists in the pending word set. If so, the word in the pending word set is recalled and re-enters the new word set, and the matching time and cumulative quantity are updated; otherwise, it is determined whether the word is in the new word set. If so, the matching time and cumulative quantity are updated for the word; if not, it is determined whether the word exists in the reserved word set. If so, the heat time and cumulative heat of the word are updated; if the word is not in the reserved word set, the word is initialized in the reserved word set; wherein the reserved word set is a set of newly generated words that have not yet reached the heat standard of the new word library; pending word set: after the words in the new word set do not meet the heat requirements, they flow to the pending word set. At this time, the word has not disappeared and can be recalled to the new word set; new word set: after the words in the reserved word set meet the heat threshold rule, they enter the new word set, and the word set is used as a custom dictionary for word segmentation;

[0074] Step S4, word flow, such as Figure 2 As shown:

[0075]

[0076] If a word in the reserved word set exceeds the new word pre-set heat threshold rule, the word flows from the reserved word set to the new word set;

[0077] Rule 1: If a word is generated multiple times by multiple channels within a unit time t, then the word enters the new vocabulary;

[0078] Rule 2: Get Cooldown Factor :

[0079] ;

[0080] Among them, in the calculation formula of the cooling coefficient, the current word frequency: the number of times the word appears on the day; the historical word frequency: the number of times the word appears in the previous cycle (yesterday); the time difference is 1; the lower the cooling coefficient, the greater the heat.

[0081] Determine whether the cooling coefficient is lower than the upper threshold. If so, the word will be transferred from the reserved word set to the new word set. If not, continue to observe and determine the heat decay value of the reserved word set.

[0082]

[0083] The word heat time of the new word set does not meet the heat requirement, and the word flows from the new word set to the pending word set

[0084] For example: define the time span Δt=t 当前时间 -t 最近热度时间 , when Δt ≥ the set value, it flows to the pending word set.

[0085]

[0086] Over time, word matching will have an impact on word popularity.

[0087] Define the reserved word set S 预 , the word heat value in the reserved word set is c 预 , the initial value is set to c 预初始 , heat decay value m per unit time t 预 , that is, the current c 预 -m 预 , the new word matches the heat increase value n 预 , that is, the current c 预 +n 预 ;

[0088] The decay calculation is performed through the scheduled task. When the interval time is less than the unit time t, no decay calculation is performed.

[0089] Define the length of the reserved word set L 预 , all words in the reserved word set are sorted from high to low according to the heat value, and the word number is greater than L 预 , the word is cleared.

[0090]

[0091] The words in the pending set are re-entered into the new word library after the words in the set are matched by the new word again.

[0092]

[0093] Define the pending word set S 待定 , the heat value of the words in the pending word set is c 待定 , the initial value is set to c 待定初始 , decays by unit time t m 待定 , that is, c 待定 -m 待定 ;

[0094] When the heat value c 待定 ≤ the lower threshold, the word disappears and is cleared.

[0095] The advantages of the present invention are:

[0096] 1. Dynamic update of the word library: Hot word extraction is based on real-time analysis of text data, and can dynamically update the word segmentation word library to ensure that new words and popular words can be identified and processed in a timely manner. This method extracts new words from massive texts and updates the word library through automated means, greatly improving the timeliness and accuracy of word segmentation and avoiding the lag of manual updates.

[0097] 2. Improved segmentation results: It can effectively handle emerging words and Internet terms that are difficult to identify with traditional word segmentation methods, and can also adapt to the dynamic changes of language, improving the accuracy and efficiency of text analysis. In addition, this method can also help discover and understand social hot spots, popular trends, etc., and has important application value in analysis, market research and other fields.

[0098] 3. Strong adaptability: As time goes by, the hot words in the text data may change, and the popularity trend of the hot words may also change. Through the heat analysis algorithm and the dynamic update of the hot word library rules, the newly emerging hot words can be captured in time, and the original hot words will also disappear, thereby maintaining the accuracy and practicality of the word segmentation results. It is especially suitable for processing fast-changing text data such as news and social media.

[0099] 4. High degree of automation: Through the automated hot word extraction and update mechanism, the workload of manual maintenance of the vocabulary can be greatly reduced, and the automation level and operating efficiency of the system can be improved. In large-scale text processing scenarios, this method significantly improves processing capabilities and effects.

[0100] Embodiment 2:

[0101] A system for discovering new words through multiple corpora, comprising:

[0102] The text data acquisition and processing module is used to acquire text sentences and phrase data from multiple platforms, remove punctuation marks, numbers, and special characters, retain only the text content, and perform spelling check and correction on the text;

[0103] A new word discovery module is used to obtain new words and / or phrase sets from text sentences using different word segmentation strategies to form new word result sets, and obtain a new word discovery set by taking the intersection of the new word result sets;

[0104] The new word circulation module is used to determine whether the words in the new word discovery set are in the pending word set, the new word set, and the reserved word set in turn, and realize the circulation of new words in the pending word set, the new word set, and the reserved word set according to preset conditions, and realize the extinction of new words according to extinction conditions. Specifically:

[0105] When a word is found in the newly discovered word set, it is determined whether the word exists in the pending word set. If so, the word in the pending word set is recalled and re-entered into the new word set, and the matching time and cumulative number are updated; otherwise, it is determined whether the word is in the new word set. If so, the matching time and cumulative number are updated for the word; if not, it is determined whether the word exists in the reserved word set. If so, the heat time and cumulative heat of the word are updated; if the word is not in the reserved word set, the word is initialized in the reserved word set;

[0106] The specific conditions for the circulation of words in the new word set, reserved word set, pending word set, and the disappearance of words are:

[0107] If a word in the reserved word set exceeds the pre-set heat threshold of the new word, the word will flow from the reserved word set to the new word set;

[0108] If the heat time of a word in the new word set does not meet the heat requirement, the word will be transferred from the new word set to the pending word set; if the heat value of a word reaches the first setting condition, the word will disappear from the reserved word set;

[0109] When a word in the pending word set is matched by a new word again, the word re-enters the new word set; when the word heat is lower than the lower threshold, the word disappears from the pending word set.

[0110] Although the present invention is described herein with reference to the illustrative embodiments of the present invention, the above embodiments are only preferred embodiments of the present invention, and the embodiments of the present invention are not limited to the above embodiments. It should be understood that those skilled in the art can design many other modifications and embodiments, which will fall within the scope and spirit of the principles disclosed in this application.

Claims

1. A method for discovering new words through multiple corpora, characterized in that: include: Step S1, obtaining text sentences and phrase data from multiple platforms and performing preprocessing; Step S2: Based on the hanlp part-of-speech tagging and word group merging strategy, adjacent words whose occurrence frequency exceeds the set number of times are combined into a new word result set B1; The large model is called to obtain a set of new words or phrases in the text sentence to obtain a new word result set B2; Take the intersection of the new word result set B1 and the new word result set B2 to obtain the newly discovered word set; Step S3: When a word is found in the newly discovered word set, it is determined whether the word exists in the pending word set. If so, the word in the pending word set is recalled and re-entered into the new word set, and the matching time and cumulative number are updated; Otherwise, determine whether the word is in the new word set. If so, update the matching time and cumulative number of the word. If not, determine whether the word exists in the reserved word set. If so, update the heat time and cumulative heat of the word. If the word does not exist in the reserved word set, initialize the word in the reserved word set. Step S4: word flow: When the heat value of a word in the reserved word set exceeds the set threshold for transferring the new word from the pre-set to the new word set, the word is transferred from the reserved word set to the new word set; The heat time of the words in the new word set has expired, and its heat has decayed to the lower limit of the heat value extinction threshold, and the words flow from the new word set to the pending word set; When the heat value of a word reaches the first setting condition, the word disappears from the reserved word set; When a word in the pending word set is matched by a new word again, the word re-enters the new word set; when the word heat is lower than the lower threshold, the word disappears from the pending word set.

2. A method for discovering new words through multiple corpora according to claim 1, characterized in that: When a word in the reserved word set exceeds the pre-set heat threshold of the new word set, the word is transferred from the reserved word set to the new word set as follows: Rule 1: If a word is generated multiple times by multiple channels within a unit time t, then the word enters the new vocabulary; Rule 2: Get Cooldown Factor : Among them, the current word frequency is the number of times the word appears in the current cycle; the historical word frequency is the number of times the word appears in the previous cycle, and the time difference is the timing cycle; the lower the cooling coefficient, the greater the heat; determine whether the cooling coefficient is lower than the upper limit threshold. If it is lower, the word will flow from the reserved word set to the new word set. If it is not lower, continue to observe and judge the heat decay value of the reserved word set.

3. The method for discovering new words through multiple corpora according to claim 1, characterized in that: The heat time Δt=current time-most recent heat time. When Δt≥set value, the flow is transferred to the pending word set.

4. The method for discovering new words through multiple corpora according to claim 1, characterized in that: When the heat value of a word reaches the first setting condition, the word disappears from the reserved word set, specifically: Define the reserved word set S 预 , the word heat value in the reserved word set is c 预 , the initial value is set to c 预初始 , heat decay value m per unit time t 预 , that is, the current c 预 -m 预 , the new word matches the heat increase value n 预 , that is, the current c 预 +n 预 ; The decay calculation is performed through the scheduled task. When the interval time is less than the unit time t, no decay calculation is performed. Define the length of the reserved word set L 预 , all words in the reserved word set are sorted from high to low according to the heat value, and the word number is greater than L 预 , the word is cleared.

5. The method for discovering new words through multiple corpora according to claim 1, characterized in that: When the heat of a word is lower than the lower threshold, the word disappears from the pending word set, specifically: Define the pending word set S 待定 , the heat value of the word in the pending word set is c 待定 , the initial value is set to c 待定初始 , decays by unit time t m 待定 , that is, c 待定 -m 待定 ; When the heat value c 待定 ≤ the lower threshold, the word disappears and is cleared.

6. A method for discovering new words through multiple corpora according to claim 1, characterized in that: The word group merging strategy includes: Configure the parameters of the word segmentation tool, add custom dictionaries, stop words, and new word bases, use the generated new word set as the custom word dictionary for word segmentation, load the user-defined dictionary, so that the custom phrases can be identified during the word segmentation process and segmented as a whole; Introduce word segmentation methods, use hanlp and jieba word segmentation methods, and generate corresponding word segmentation results respectively; The generated word segmentation results are combined and finally the single words are filtered to finally get the result of this word segmentation.

7. The method for discovering new words through multiple corpora according to claim 1, characterized in that: The preprocessing includes: removing punctuation marks, numbers, and special characters to retain only the text content; and performing spelling check and correction on the text.

8. A system for discovering new words through multiple corpora, characterized in that: include: The text data acquisition and processing module is used to acquire text sentences and phrase data from multiple platforms, remove punctuation marks, numbers, and special characters, retain only the text content, and perform spelling check and correction on the text; The new word discovery module is used to obtain new words and / or phrase sets from text sentences using different word segmentation strategies to form new word result sets, and obtain the intersection of the new word result sets to obtain the new word discovery set; specifically, it includes: Based on hanlp part-of-speech tagging and word group merging strategy, adjacent words whose frequency of occurrence exceeds the set number are combined into new words, and assembled into a new word or phrase set B1; The large model is called to obtain a set of new words or phrases in the text sentence to obtain a new word result set B2; Implement Chinese word segmentation based on the ChatGLM3 large model. Design a prompt template according to the needs of the target application to guide the large model to return new word results. The new word circulation module is used to determine whether the words in the new word discovery set are in the pending word set, the new word set, and the reserved word set in turn, and realize the circulation of new words in the pending word set, the new word set, and the reserved word set according to preset conditions, and realize the extinction of new words according to extinction conditions. Specifically: When a word is found in the newly discovered word set, it is determined whether the word exists in the pending word set. If so, the word in the pending word set is recalled and re-entered into the new word set, and the matching time and cumulative number are updated; otherwise, it is determined whether the word is in the new word set. If so, the matching time and cumulative number are updated for the word; if not, it is determined whether the word exists in the reserved word set. If so, the heat time and cumulative heat of the word are updated; if the word is not in the reserved word set, the word is initialized in the reserved word set; If a word in the reserved word set exceeds the pre-set heat threshold of the new word, the word will flow from the reserved word set to the new word set; If the heat time of a word in the new word set does not meet the heat requirement, the word will be transferred from the new word set to the pending word set; if the heat value of a word reaches the first setting condition, the word will disappear from the reserved word set; When a word in the pending word set is matched by a new word again, the word re-enters the new word set; when the word heat is lower than the lower threshold, the word disappears from the pending word set.