Chinese abbreviation generation method based on large language model and evaluation enhancement

By using large language models and evaluation enhancement methods in Chinese abbreviation generation, combined with knowledge graphs and comparative learning, we solve the problems of inability to understand full name semantics and poor generation quality in the existing technology, and achieve high-accuracy Chinese abbreviations. Abbreviation generation.

CN118798176APending Publication Date: 2024-10-18EAST CHINA UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410074386.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-18
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

The existing technology cannot fully understand the overall meaning of the full name when generating Chinese abbreviations, and the quality of the generated abbreviations is poor, especially the lack of consistent rules and conventions in the Chinese context, resulting in greater accuracy challenges.

Method used

Using methods based on large language models and evaluation enhancement, the full context information of the name is obtained through knowledge graphs and pre-trained large language models. Combining type classification and comparative learning training strategies, the semantic enhancement, generation, screening and evaluation modules are designed to generate and screen candidates. abbreviations, and improve accuracy with graders.

Benefits of technology

The recall rate and accuracy rate of Chinese abbreviation generation are improved, the quality of the generated abbreviations is ensured, and the problems of understanding the full name semantics and generation accuracy in the existing technology are solved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118798176A_ABST
    Figure CN118798176A_ABST
Patent Text Reader

Abstract

The invention discloses a Chinese acronym generation method based on a large language model and evaluation enhancement. The method comprises the following steps: firstly, inputting a full name, and querying related context information by adopting a semantic enhancement module; secondly, inputting the full name and the context information into a type classification module, and classifying the abbreviation types of the full name; thirdly, inputting the full name, the context and the abbreviation type into a generation module, and outputting M candidate abbreviations; then, using a rule screening module to obtain K candidate acronyms; and finally, scoring and sorting each acronym by using a scoring device. The method is suitable for a Chinese abbreviation generation task, the novel Chinese abbreviation generation method based on a large language model and evaluation enhancement is designed, the relation between the full name and the context is fully considered, the abbreviation generation accuracy is improved, and the generation efficiency is improved. The problems that full-name semantics cannot be understood and the quality of generated abbreviations is poor are relieved to a certain extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of natural language processing, specifically relates to the technical field of text information extraction, and more specifically, provides a method for generating Chinese abbreviations based on large language models and evaluation enhancement. Background Art

[0002] An abbreviation is a shortened form of a phrase, usually consisting of a group of characters from the phrase. It has wide applications in both spoken and written languages. As a common lexicalized form, abbreviations play an important role in various natural language processing applications. They are mainly applied in the field of information search for Chinese text and speech. For example, in Chinese speech search, adding abbreviations to the vocabulary can significantly improve the accuracy of speech search because many abbreviations that appear in speech can be associated with the correct entries in the database. In information retrieval, since the number of web pages is huge, expanding query terms with their abbreviations will improve the quality of web page search.

[0003] Predicting Chinese abbreviations is more challenging than English abbreviations. The main difficulties are as follows: 1) Different from English abbreviations, Chinese abbreviations lack consistent rules and conventions and are usually derived from the full form. This is because Chinese abbreviations often rely on the language habits of native speakers and are difficult to be comprehensively explained by existing linguistic theories. For example, the abbreviations in "儿童服装" (abbreviated as "童装") are composed of spaced characters, while the abbreviations in "清华大学" (abbreviated as "清华") and "国际足联世界杯" (abbreviated as "世界杯") are composed of adjacent characters; 2) The character combinations in each of the above cases are also different. To solve this task, many related solutions have been proposed, but they show limited performance in generating accurate abbreviations for a given full form.

[0004] Current solutions can generally be divided into sequence labeling methods and sequence generation methods. First, the sequence label model aims to assign the label "1" or "0" to each character of the given full form. This label determines whether the character should be retained in the abbreviation. For example, given the full form "儿童服装", the optimal sequence labeling model will generate the output [0,1,0,1], resulting in the abbreviation "童装". The sequence generation model uses an encoder to read the full form and generate a context vector that captures the semantics of the entire input. This context vector is then used by the decoder to predict the corresponding abbreviation. However, this leads to two problems: 1) It is impossible to fully understand the overall meaning of the full form because they only rely on the transition matrix to identify the label with the highest probability; 2) The abbreviation process of Chinese full forms is characterized by non-standardization, making it challenging to ensure the accurate generation of abbreviations. Therefore, it is still a major challenge to obtain high-quality abbreviations using only a single generation model.

[0005] In summary, there is an urgent need in the art to design a new abbreviation generation method to solve the above problems. Summary of the invention

[0006] In view of this, the present invention provides a method for generating Chinese abbreviations based on a large language model and evaluation enhancement. First, it solves the problem that the sequence annotation method cannot fully understand the overall meaning of the full name. The present invention proposes a data enhancement method based on full name semantic enhancement, that is, introducing the context of the description of the full name to enhance the semantic information of the full name. Second, in order to fully improve the accuracy of the abbreviations, the present invention proposes a new method for generating Chinese abbreviations based on a large language model and evaluation enhancement. The most notable feature of this method is that it guarantees a high recall rate in the generation stage and a high accuracy rate in the evaluation stage.

[0007] The technical route of the present invention is implemented in the following form: first, the knowledge graph, open source knowledge and pre-trained large language model are used to obtain context information associated with the full name, and the context information is used to enhance the semantics of the full name; secondly, the full name and the associated context information are used to form a prompt template, and a binary type classification model is input to judge the prompt template to obtain the abbreviation type of the full name; thirdly, it is used to generate the abbreviation of the full name, and the type information of the full name is used as a discrete prompt to guide the generation module to generate M candidate abbreviation results; then, a rule screening module is designed, and a set of heuristic rules is used to delete and screen the candidate results, so as to obtain a set of K candidate abbreviation results; finally, an abbreviation scorer based on a contrastive learning training strategy is designed to evaluate each candidate result, obtain a score, and finally obtain K candidate abbreviation results sorted based on the score.

[0008] The specific steps of the present invention are:

[0009] S1, Semantic Enhancement Module SE: Based on the full name, the open source knowledge graph, open source knowledge and pre-trained large language model are used to obtain contextual information associated with the full name. The contextual information is used to enhance the semantics of the full name;

[0010] S2, type classification module TC: uses the full name and the associated context information to form a prompt template, inputs a binary type classification model, judges the prompt template, and obtains the abbreviation type of the full name;

[0011] S3. Design a generation module TG: Fine-tune a large language model as a generation module to generate abbreviations of the full name, and use the type information of the full name as a discrete prompt to guide the generation module to generate M candidate abbreviation results;

[0012] S4, designing a rule screening module to delete and screen the M candidate abbreviation results based on a set of heuristic rules, thereby obtaining a set of K candidate abbreviation results;

[0013] S5. Design an evaluation module, use an abbreviation scorer based on contrastive learning training strategy to evaluate each candidate result, obtain a score, and finally obtain K candidate abbreviation results sorted based on the score.

[0014] Further, step S1 includes:

[0015] S11. Take the full name X as input, use the open source knowledge graph to make a search request, find the entity E corresponding to X, retrieve the description of E, and use the description as the context information C of X;

[0016] S12. If no corresponding entity E is found in the open source knowledge graph, X is used as a query to request open source knowledge and check whether there is corresponding open source knowledge for the query. If matching knowledge is found, the summary paragraph of the open source knowledge is used as the context information C of X;

[0017] S13. If C is still not found, we use X as the query to request the pre-trained large language model to obtain C. We use "Please generate a description about X with less than words" as the guidance prompt for the pre-trained large language model, use In-Context Learning, obtain 3 examples from the open source knowledge graph, and prompt the model to generate C with similar semantics;

[0018] S14. After collecting all C of X, first delete the part of C that contains the real abbreviation Y, and then strictly limit the length of the context C, that is, minL≤L(C)≤maxL, where L(C) represents the character length of C, and minL and maxL are two hyperparameters used to limit the minimum and maximum lengths of C.

[0019] Further, step S2 includes:

[0020] S21. Given a context C containing the full name X, we first introduce an artificially predefined discrete prompt and combine it with C to form P c , that is, 'determine the abbreviation type of X from the condensed type and the truncated type, the context of X is: C. Options: condensed type, truncated type; Answer: ';

[0021] S22, P c Input to the pre-trained binary classification type classification model, the classification model uses the language model BERT, where token c outputs a context-aware representation:

[0022]

[0023] Among them, [CLS] and [SEP] are special tokens in the BERT model;

[0024] S23, the intermediate vector represents Input type classifier to generate abbreviation type of full name.

[0025] Further, step S3 includes:

[0026] S31. Based on the output of the TC module, using the prompt learning technology, design prompt templates P for abbreviation type, full name and context information g ,Right now:

[0027] p g =[s1]{X}[s2]{C}[s3]{Y type}

[0028] Among them, Y type is the abbreviation type, s1, s2, s3 are the prompt templates;

[0029] S32, prompt template P g As input, it is input into the encoder module of the pre-trained large language model and outputs the text representation:

[0030]

[0031] S33, will Input the decoder module of the pre-trained large language model to obtain M candidate abbreviation results.

[0032] Further, step S4 includes:

[0033] S41. Design heuristic rule 1: Based on whether the generated candidate abbreviation results meet the definition, if there are: 1) candidates containing characters that do not appear in the full name, 2) candidates consisting of only one character, 3) candidates whose relative positions of characters in the candidate results are inconsistent with their positions in the full name, 4) candidates whose abbreviation type conflicts with the abbreviation type predicted by the classifier, then delete them, otherwise keep them;

[0034] S42. Design heuristic rule 2: Based on whether the number of candidate abbreviations meets K construction candidates, 1) Based on the Levenshtein distance construction of words, split X into a word sequence W, that is,

[0035] W=[w 1 ,…,w i ,...,w l ]

[0036] where w i is the word in X, l is the sequence length, and the Levenshtein distance of W is d wThe subsequence of is the candidate sample, where d w =1,…,l-1; 2) Construction based on the Levenshtein distance of words. Sampling is performed according to the subsequence of X, that is:

[0037] X=[x 1 ,...,x i ,...,x m ]

[0038] where x i is the word in X, m is the sequence length, and the Levenshtein distance of X is d c The subsequence of is the candidate sample, where d c =1,…,m-1;

[0039] S43, using filtering rule 1 and filtering rule 2, filtering and screening M obtained by the generation module to obtain K final high-quality candidate abbreviations.

[0040] Further, step S5 includes:

[0041] S51. In the training phase of the scoring model, a contrastive learning training strategy is used for the abbreviation scorer, aiming to score and sort the K candidate results on whether they are full name abbreviations, so that high-quality candidates have higher scores;

[0042] S52. Introduce a contrastive learning algorithm as a scoring model, aiming to learn similar representations of "positive samples" and dissimilar representations of "negative samples", where a full name and its correct abbreviation are considered "positive samples", while a full name paired with an incorrect abbreviation is considered a negative sample;

[0043] S53. Use the cross entropy loss function to learn the parameters in the above module:

[0044]

[0045] Among them, Θ is the parameter to be learned by the model, and sim is a similarity calculation function. C' pos Indicates the context containing the actual abbreviation, C' neg(i) Indicates a context containing an incorrect abbreviation, T stands for temperature coefficient.

[0046] S54. In the inference stage, a scorer is used to score the K abbreviation candidates obtained by the generation module and the rule screening module to ensure that high-quality candidates have higher scores, so as to improve the quality of the final abbreviation.

[0047] After adopting the above strategy, the positive effects of the present invention are:

[0048] (1) Aiming at the problems of inability to understand the full name semantics and poor quality of generated abbreviations in the Chinese abbreviation generation task, the present invention proposes a Chinese abbreviation generation method based on a large language model and evaluation enhancement, which fully considers the relationship between the full name and the context, and improves the performance of abbreviation generation.

[0049] (2) The present invention proposes a filtering and screening rule and a contrastive learning training strategy for a Chinese abbreviation generation method based on a large language model and evaluation enhancement, which serves as a collaborative optimization method between modules in the method, bringing a powerful performance improvement to the method. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 This is a step diagram of the Chinese abbreviation generation method based on a large language model and evaluation enhancement of the present invention.

[0051] Figure 2 The present invention is a Chinese abbreviation generation method based on a large language model and evaluation enhancement.

[0052] Figure 3 Schematic diagram of the principle of the Chinese abbreviation generation method based on a large language model and evaluation enhancement of the present invention

[0053] Figure 4 Schematic diagram of the process of generating Chinese abbreviations based on a large language model and evaluation enhancement of the present invention DETAILED DESCRIPTION

[0054] In order to enable those skilled in the art to better understand the solutions of the present invention and to make the above-mentioned objectives, technical solutions and advantages of the present invention more obvious and understandable, the present invention is further described in detail below in conjunction with embodiments and accompanying drawings of the embodiments.

[0055] See also Figure 3 , Figure 3 It is a schematic diagram of the principle of the Chinese abbreviation generation method based on a large language model and evaluation enhancement of the present invention. The method comprises: firstly inputting the full name, using the semantic enhancement module to query the context information related to the full name; secondly, inputting the full name and the context together into the type classification module to judge the abbreviation type of the full name; thirdly, inputting the full name, the context and the abbreviation type into the generation module, outputting M candidate abbreviations; then, using the rule screening module, deleting and screening the candidate results through the rules, obtaining a set of K candidate abbreviations; finally, inputting the candidate abbreviations into the scorer to score and sort each abbreviation.

[0056] See also Figure 4 , Figure 4 : is a flow chart of a method for generating Chinese abbreviations based on a large language model and evaluation enhancement according to the present invention, and the specific steps include:

[0057] S1, Semantic Enhancement Module SE: Based on the full name, the open source knowledge graph, open source knowledge and pre-trained large language model are used to obtain contextual information associated with the full name. The contextual information is used to enhance the semantics of the full name;

[0058] S11. Take the full name X as input, use the open source knowledge graph to make a search request, find the entity E corresponding to X, retrieve the description of E, and use the description as the context information C of X;

[0059] S12. If no corresponding entity E is found in the open source knowledge graph, X is used as a query to request open source knowledge and check whether there is corresponding open source knowledge for the query. If matching knowledge is found, the summary paragraph of the open source knowledge is used as the context information C of X;

[0060] S13. If C is still not found, we use X as the query to request the pre-trained large language model to obtain C. We use "Please generate a description about X with less than words" as the guidance prompt for the pre-trained large language model, use In-Context Learning, obtain 3 examples from the open source knowledge graph, and prompt the model to generate C with similar semantics;

[0061] S14. After collecting all C of X, first delete the part of C that contains the real abbreviation Y, and then strictly limit the length of the context C, that is, minL≤L(C)≤maxL, where L(C) represents the character length of C, and minL and maxL are two hyperparameters used to limit the minimum and maximum lengths of C.

[0062] S2, type classification module TC: uses the full name and the associated context information to form a prompt template, inputs a binary type classification model, judges the prompt template, and obtains the abbreviation type of the full name;

[0063] S21. Given a context C containing the full name X, we first introduce an artificially predefined discrete prompt and combine it with C to form P c , that is, 'determine the abbreviation type of X from the condensed type and the truncated type, the context of X is: C. Options: condensed type, truncated type; Answer: ';

[0064] S22, P c Input to the pre-trained binary classification type classification model, the classification model uses the language model BERT, where token c outputs a context-aware representation:

[0065]

[0066] Among them, [CLS] and [SEP] are special tokens in the BERT model;

[0067] S23, the intermediate vector represents Input type classifier to generate abbreviation type of full name.

[0068] S3. Design a generation module TG: Fine-tune a large language model as a generation module to generate abbreviations of the full name, and use the type information of the full name as a discrete prompt to guide the generation module to generate M candidate abbreviation results;

[0069] S31. Based on the output of the TC module, using the prompt learning technology, design prompt templates P for abbreviation type, full name and context information g ,Right now:

[0070] p g =[s1]{X}[s2]{C}[s3]{Y type}

[0071] Among them, Y type is the abbreviation type, s1, s2, s3 are the prompt templates;

[0072] S32, prompt template P g As input, it is input into the encoder module of the pre-trained large language model and outputs the text representation:

[0073]

[0074] S33, will Input the decoder module of the pre-trained large language model to obtain M candidate abbreviation results.

[0075] S4, designing a rule screening module to delete and screen the M candidate abbreviation results based on a set of heuristic rules, thereby obtaining a set of K candidate abbreviation results;

[0076] S41. Design heuristic rule 1: Based on whether the generated candidate abbreviation results meet the definition, if there are: 1) candidates containing characters that do not appear in the full name, 2) candidates consisting of only one character, 3) candidates whose relative positions of characters in the candidate results are inconsistent with their positions in the full name, 4) candidates whose abbreviation type conflicts with the abbreviation type predicted by the classifier, then delete them, otherwise keep them;

[0077] S42. Design heuristic rule 2: Based on whether the number of candidate abbreviations meets K construction candidates, 1) Based on the Levenshtein distance construction of words, split X into a word sequence W, that is,

[0078] W=[w 1 ,…,w i ,...,wl ]

[0079] where w i is the word in X, l is the sequence length, and the Levenshtein distance of W is d w The subsequence of is the candidate sample, where d w =1,…,l-1; 2) Construction based on the Levenshtein distance of words. Sampling is performed according to the subsequence of X, that is:

[0080] X=[x 1 ,...,x i ,...,x m ]

[0081] where x i is the word in X, m is the sequence length, and the Levenshtein distance of X is d c The subsequence of is the candidate sample, where d c =1,…,m-1;

[0082] S43, using filtering rule 1 and filtering rule 2, filtering and screening M obtained by the generation module to obtain K final high-quality candidate abbreviations.

[0083] S5. Design an evaluation module, use an abbreviation scorer based on contrastive learning training strategy to evaluate each candidate result, obtain a score, and finally obtain K candidate abbreviation results sorted based on the score.

[0084] S51. In the training phase of the scoring model, a contrastive learning training strategy is used for the abbreviation scorer, aiming to score and sort the K candidate results on whether they are full name abbreviations, so that high-quality candidates have higher scores;

[0085] S52. Introduce a contrastive learning algorithm as a scoring model, aiming to learn similar representations of "positive samples" and dissimilar representations of "negative samples", where a full name and its correct abbreviation are considered "positive samples", while a full name paired with an incorrect abbreviation is considered a negative sample;

[0086] S53. Use the cross entropy loss function to learn the parameters in the above module:

[0087]

[0088] Among them, Θ is the parameter to be learned by the model, and sim is a similarity calculation function. C' pos Indicates the context containing the actual abbreviation, C' neg(i) Indicates a context containing an incorrect abbreviation, T stands for temperature coefficient.

[0089] S54. In the inference stage, a scorer is used to score the K abbreviation candidates obtained by the generation module and the rule screening module to ensure that high-quality candidates have higher scores, so as to improve the quality of the final abbreviation.

[0090] In the above, the specific embodiments of the present invention are described with reference to the accompanying drawings. However, those skilled in the art will appreciate that various changes and substitutions may be made to the specific embodiments of the present invention without departing from the spirit and scope of the present invention. These changes and substitutions are all within the scope defined by the claims of the present invention.

Claims

1. A Chinese abbreviation generation method based on a large language model and evaluation enhancement, characterized in that The following steps are involved: S1, Semantic Enhancement Module SE: Based on the full name, the open source knowledge graph, open source knowledge and pre-trained large language model are used to obtain contextual information associated with the full name. The contextual information is used to enhance the semantics of the full name; S2, type classification module TC: uses the full name and the associated context information to form a prompt template, inputs a binary type classification model, judges the prompt template, and obtains the abbreviation type of the full name; S3. Design a generation module TG: Fine-tune a large language model as a generation module to generate abbreviations of the full name, and use the type information of the full name as a discrete prompt to guide the generation module to generate M candidate abbreviation results; S4, designing a rule screening module to delete and screen the M candidate abbreviation results based on a set of heuristic rules, thereby obtaining a set of K candidate abbreviation results; S5. Design an evaluation module, use an abbreviation scorer based on contrastive learning training strategy to evaluate each candidate result, obtain a score, and finally obtain K candidate abbreviation results sorted based on the score.

2. The method for generating Chinese abbreviations based on a large language model and evaluation enhancement according to claim 1, characterized in that: The step S1 specifically includes: S11. Take the full name X as input, use the open source knowledge graph to make a search request, find the entity E corresponding to X, retrieve the description of E, and use the description as the context information C of X; S12. If no corresponding entity E is found in the open source knowledge graph, X is used as a query to request open source knowledge and check whether there is corresponding open source knowledge for the query. If matching knowledge is found, the summary paragraph of the open source knowledge is used as the context information C of X; S13. If C is still not found, we use X as the query to request the pre-trained large language model to obtain C. We use "Please generate a description about X with less than words" as the guidance prompt for the pre-trained large language model, use In-Context Learning, obtain 3 examples from the open source knowledge graph, and prompt the model to generate C with similar semantics; S14. After collecting all C of X, first delete the part of C containing the real abbreviation Y, and then strictly limit the length of the context C, that is, minL≤L(C)≤max, where L(C) represents the character length of C, and minL and maxL are two hyperparameters used to limit the minimum and maximum length of C.

3. The Chinese abbreviation generation method based on a large language model and evaluation enhancement according to claim 1, characterized in that: The step S2 specifically includes: S21. Given a context C containing the full name X, we first introduce an artificially predefined discrete prompt and combine it with C to form P c , that is, 'determine the abbreviation type of X from the condensed type and the truncated type, the context of X is: C. Options: condensed type, truncated type; Answer: '; S22, P c Input to the pre-trained binary classification type classification model, the classification model uses the language model BERT, where token c outputs a context-aware representation: Among them, [CLS] and [SEP] are special tokens in the BERT model; S23, the intermediate vector represents Input type classifier to generate abbreviation type of full name.

4. The method for generating Chinese abbreviations based on a large language model and evaluation enhancement according to claim 1, characterized in that: The step S3 specifically includes: S31. Based on the output of the TC module, using the prompt learning technology, design prompt templates P for abbreviation type, full name and context information g ,Right now: <h2 style=";text-align:left;direction:ltr">p<h2 style=";text-align:left;direction:ltr"> g <h2 style=";text-align:left;direction:ltr"> ([s1]{X}[s2]{C}[s3]{Y)<h2 style=";text-align:left;direction:ltr"> type <h2 style=";text-align:left;direction:ltr">} Among them, Y type is the abbreviation type, s1, s2, s3 are the prompt templates; S32, prompt template P g As input, it is input into the encoder module of the pre-trained large language model and outputs the text representation: S33, will Input the decoder module of the pre-trained large language model to obtain M candidate abbreviation results.

5. The method for generating Chinese abbreviations based on a large language model and evaluation enhancement according to claim 1, characterized in that: The step S4 specifically includes: S41. Design heuristic rule 1: Based on whether the generated candidate abbreviation results meet the definition, if there are: 1) candidates containing characters that do not appear in the full name, 2) candidates consisting of only one character, 3) candidates whose relative positions of characters in the candidate results are inconsistent with their positions in the full name, 4) candidates whose abbreviation type conflicts with the abbreviation type predicted by the classifier, then delete them, otherwise keep them; S42. Design heuristic rule 2: Based on whether the number of candidate abbreviations meets K construction candidates, 1) Based on the Levenshtein distance construction of words, split X into a word sequence W, that is, W=[w1,…,w i ,..., w l ] where w i is the word in X, l is the sequence length, and the Levenshtein distance of W is d w The subsequence of is the candidate sample, where d w =1,…,l-1; 2) Construction based on the Levenshtein distance of words. Sampling is performed according to the subsequence of X, that is: X=[x1,...,x i ,...,x m ] where x i is the word in X, m is the sequence length, and the Levenshtein distance of X is d c The subsequence of is the candidate sample, where d c =1,…,m-1; S43, using filtering rule 1 and filtering rule 2, filtering and screening M obtained by the generation module to obtain final K high-quality candidate abbreviations.

6. The method for generating Chinese abbreviations based on a large language model and evaluation enhancement according to claim 1, characterized in that: The step S5 specifically includes: S51. In the training phase of the scoring model, a contrastive learning training strategy is used for the abbreviation scorer, aiming to score and sort the K candidate results on whether they are full name abbreviations, so that high-quality candidates have higher scores; S52. Introduce a contrastive learning algorithm as a scoring model, aiming to learn similar representations of "positive samples" and dissimilar representations of "negative samples", where a full name and its correct abbreviation are considered "positive samples", while a full name paired with an incorrect abbreviation is considered a negative sample; S53. Use the cross entropy loss function to learn the parameters in the above module: Among them, Θ is the parameter to be learned by the model, and sim is a similarity calculation function. pos Indicates the context containing the actual abbreviation, C neg(i) Indicates a context containing an incorrect abbreviation, T stands for temperature coefficient. S54. In the inference stage, a scorer is used to score the K abbreviation candidates obtained by the generation module and the rule screening module to ensure that high-quality candidates have higher scores, so as to improve the quality of the final abbreviation.