An institution name proofreading method, device, equipment, medium and program product

By constructing an institution name knowledge base and using the thinking chain technology of inverted index, entity recognition model and large language model, the problem of insufficient efficiency and accuracy of institution name proofreading in the existing technology is solved, and efficient and accurate proofreading effect is achieved.

CN118349635BActive Publication Date: 2024-10-01SICHUAN COVER MEDIA TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410763896.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-10-01
Estimated Expiration
2044-06-14

AI Technical Summary

Technical Problem

Existing institutional name proofreading solutions cannot effectively handle complex and changeable institutional name changes, resulting in limited proofreading efficiency and accuracy.

Method used

Build an institution name knowledge base, use the thought chain technology of inverted index and large language model, and use the entity recognition model and associated attribute prompt model to select the candidate names that best match the name to be proofread, and provide proofreading suggestions.

Benefits of technology

Efficient and accurate organization name proofreading has been achieved, suspected errors can be quickly located and error situations determined, and it can adapt to complex and ever-changing organization name changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118349635B_ABST
    Figure CN118349635B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, equipment, medium and program product for proofreading an institution name, and relates to the field of information processing technology. The method is to first establish an inverted index based on the full name, abbreviation and alias of all the institution structured information in the knowledge base after constructing an institution name knowledge base, and then input the text to be proofread into the pre-trained institution name entity recognition model, output the institution name to be proofread and its context information, and then use the inverted index to perform similarity retrieval on the institution name to be proofread to obtain multiple candidate institution names, and based on the context information and the structured information of the institution to which the candidate institution name belongs, a certain candidate institution name that best matches the institution name to be proofread is screened out based on the thinking chain technology of the large language model, and finally compare the differences between the two names and give specific proofreading suggestions, so that the proofreading of institution names in real scenarios can be completed efficiently and accurately, and complex and changeable name changes can be dealt with.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of information processing technology, and specifically relates to an institution name proofreading method, device, equipment, medium and program product. Background Art

[0002] In daily life, an institution generally refers to an agency, group or other work unit. The name of an institution generally consists of three parts, namely the regional name, the vector name and the level name, which respectively describe and stipulate the management (service) scope, affiliation, work content and level specifications of the institution. With the rapid development of science and technology and society, the diversity and complexity of institution names are also increasing, especially with the emergence of various variants such as abbreviations or aliases, making the proofreading of institution names an important and challenging task.

[0003] At present, the existing institution name proofreading solutions often rely on manual proofreading or simple string matching, which cannot cope with the complex and changeable changes in institution names, so that the proofreading efficiency and proofreading accuracy need to be improved. Therefore, how to provide a new efficient and accurate institution name proofreading solution to cope with the complex and changeable changes in institution names is a topic that technicians in this field urgently need to study. Summary of the invention

[0004] The purpose of the present invention is to provide an institution name proofreading method, device, computer equipment, computer readable storage medium and computer program product to solve the problem that the existing institution name proofreading scheme has limited proofreading efficiency and proofreading accuracy due to its inability to cope with complex and changeable changes in institution names.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions:

[0006] In a first aspect, a method for checking an institution name is provided, comprising:

[0007] An institution name knowledge base is constructed, wherein the institution name knowledge base records the institution structured information of all institutions and is aggregated and associated with the full name of the institution as a primary key, and the institution structured information includes the full name of the institution, the abbreviation of the institution, the alias of the institution, the region where the institution is located, and the industry to which the institution belongs;

[0008] According to the full names, abbreviations and aliases of all the structured information of the institutions in the institution name knowledge base, an inverted index is established at a word segmentation granularity and / or a character granularity;

[0009] Input the text to be proofread into a pre-trained entity recognition model for identifying the full name, abbreviation and / or alias of an institution, and output the name of the institution to be proofread;

[0010] Extracting context information of the name of the organization to be proofread from the text to be proofread according to the position of the name of the organization to be proofread in the text to be proofread;

[0011] Using the inverted index to perform a similarity search on the name of the institution to be proofread, obtaining the top N candidate institution names retrieved from the institution name knowledge base and arranged in descending order according to similarity, wherein N represents a positive integer greater than or equal to 3, and the candidate institution name is the full name of the institution, the abbreviation of the institution, or the alias of the institution;

[0012] According to the context information of the organization name to be proofread and the structured information of the organizations to which the first N candidate organization names belong, the first N candidate organization names are sequentially subjected to regional classification identification screening processing, industry classification identification screening processing and matching organization identification processing based on the thought chain technology of the large language model, so as to obtain a candidate organization name that is screened out from the first N candidate organization names and is the most matching with the organization name to be proofread;

[0013] Determine whether there is a name difference between the name of the institution to be proofread and the name of one of the candidate institutions;

[0014] If so, a proofreading suggestion for the organization name to be proofread is output based on the candidate organization name.

[0015] Based on the above invention content, a new solution for proofreading institution names by cooperating with large and small models is provided, that is, after constructing an institution name knowledge base, an inverted index is first established based on the full name, abbreviation and alias of all institution structured information in the knowledge base, and then the text to be proofread is input into the pre-trained institution name entity recognition model, and the institution name to be proofread and its context information are output, and then the inverted index is used to perform similarity search on the institution name to be proofread to obtain multiple candidate institution names, and according to the context information and the structured information of the institution to which the candidate institution name belongs, a candidate institution name that best matches the institution name to be proofread is screened out based on the thinking chain technology of the large language model, and finally the difference between the two names is compared and specific proofreading suggestions are given, so that by utilizing the processing speed characteristics of the small model to quickly locate the suspected erroneous institution name, and utilizing the precise semantic recognition capability of the large model and combining the context semantics to accurately determine the error situation of the institution name, the proofreading of the institution name in the real scenario can be completed efficiently and accurately, and then it can cope with complex and changeable changes in institution names, which is convenient for practical application and promotion.

[0016] In a possible design, a knowledge base of institution names is constructed, including:

[0017] According to the predetermined target correction institution scope, crawl the network data related to the institution from the institution information disclosure website;

[0018] Based on the CLUENER2020 dataset, a training dataset containing the full name, abbreviation and alias of the institution was constructed;

[0019] Based on the training data set, fine-tune the roberta-base-chinese entity recognition model to obtain an institution name entity recognition model for identifying the full name, abbreviation and / or alias of an institution;

[0020] Using the first language model, construct an institution-related attribute prompt model for identifying the region where the institution is located and / or the industry required by the institution;

[0021] Using the institution name entity recognition model and the institution association attribute prompt model, the full name, abbreviation, alias, region where the institution is located and industry to which the institution belongs of the institution are identified from the network data, and the full name of the institution is used as the primary key for aggregation association to obtain the structured initial information of the institution that includes the full name of the institution, the abbreviation of the institution, the alias of the institution, region where the institution is located and industry to which the institution belongs;

[0022] Pushing the initial structured information of each of the institutions to a human-computer interaction interface for manual merging, manual correction and manual confirmation, and obtaining the structured information of all the institutions, which is aggregated and associated with the full name of the institution as the primary key and includes the full name of the institution, the abbreviation of the institution, the alias of the institution, the region where the institution is located and the industry to which the institution belongs;

[0023] The structured information of all the institutions is recorded in a knowledge base to obtain an institution name knowledge base.

[0024] In a possible design, after constructing the institution name knowledge base, the method further includes:

[0025] Real-time monitoring of whether there is network refresh data related to the institution on the institution information disclosure website, and if so, crawling the network refresh data from the institution information disclosure website;

[0026] Using the organization name entity recognition model and the organization association attribute prompt model, identify and obtain the updated organization structured initial information from the network refresh data;

[0027] Pushing the updated initial structured information of the organization to the human-computer interaction interface for manual merging, manual correction and manual confirmation to obtain the updated structured information of the organization;

[0028] The institution name knowledge base is updated and maintained according to the updated structured information of the institution.

[0029] In a possible design, after constructing the institution name knowledge base, the method further includes:

[0030] Using a second language model, synthesize text data with different domain attributes, different length attributes and / or rich diversity according to the full name, abbreviation and alias of the structured information of the institution in the institution name knowledge base;

[0031] The text data is used to fine-tune and optimize the institution name entity recognition model.

[0032] In a possible design, an inverted index is established at a word segmentation granularity and / or a character granularity according to the full name, abbreviation and alias of all the structured information of the organization in the organization name knowledge base, including:

[0033] Using the full-text parser ngram pairs The full name, abbreviation and alias of all the structured information of the organization in the organization name knowledge base conduct Parsing at word segmentation granularity and / or character granularity to obtain parsing results;

[0034] According to the analysis results, an inverted index of the search and data analysis engine Elasticsearch is established.

[0035] In a possible design, after outputting a proofreading suggestion for the organization name to be proofread according to the candidate organization name, the method further includes:

[0036] The name of the organization to be proofread in the text to be proofread is modified according to the proofreading suggestion to obtain a proofread text.

[0037] In a second aspect, a device for proofreading an institution name is provided, including a knowledge base construction unit, an inverted index establishment unit, a name to be proofread identification unit, a context extraction unit, a name similarity retrieval unit, a name screening and matching unit, a name difference judgment unit, and a proofreading suggestion output unit;

[0038] The knowledge base construction unit is used to construct an institution name knowledge base, wherein the institution name knowledge base records the institution structured information of all institutions and is aggregated and associated with the full name of the institution as the primary key, and the institution structured information includes the full name of the institution, the abbreviation of the institution, the alias of the institution, the region where the institution is located, and the industry to which the institution belongs;

[0039] The inverted index building unit is communicatively connected to the knowledge base building unit, and is used to build an inverted index at a word segmentation granularity and / or a character granularity according to the full name, abbreviation and alias of all the structured information of the organization in the organization name knowledge base;

[0040] The to-be-proofread name recognition unit is used to input the to-be-proofread text into a pre-trained entity recognition model for identifying the full name, abbreviation and / or alias of an institution, and output the to-be-proofread institution name;

[0041] The context extraction unit is communicatively connected to the name identification unit to be proofread, and is used to extract context information of the name of the organization to be proofread from the text to be proofread according to the position of the name of the organization to be proofread in the text to be proofread;

[0042] The name similarity retrieval unit is respectively connected to the inverted index establishment unit and the to-be-proofread name identification unit for performing similarity retrieval on the to-be-proofread institution name using the inverted index, and obtains the first N candidate institution names retrieved from the institution name knowledge base and arranged in descending order according to similarity, wherein N represents a positive integer greater than or equal to 3, and the candidate institution name is the full name of the institution, the abbreviation of the institution, or the alias of the institution;

[0043] The name screening and matching unit is respectively connected to the context extraction unit and the name similarity retrieval unit in communication, and is used to perform regional classification identification screening processing, industry classification identification screening processing and matching organization identification processing on the first N candidate organization names in sequence based on the context information of the organization name to be proofread and the structured information of the organizations to which the first N candidate organization names belong, based on the thinking chain technology of the large language model, to obtain a candidate organization name that is screened out from the first N candidate organization names and is the most matching with the organization name to be proofread;

[0044] The name difference judgment unit is communicatively connected to the name screening and matching unit, and is used to judge whether there is a name difference between the name of the organization to be proofread and the name of one of the candidate organizations;

[0045] The proofreading suggestion output unit is communicatively connected to the name difference judgment unit, and is used to output proofreading suggestions for the name of the organization to be proofread based on the candidate organization name when it is determined that there is a name difference between the name of the organization to be proofread and the name of the candidate organization.

[0046] In a third aspect, the present invention provides a computer device comprising a memory, a processor and a transceiver which are communicatively connected in sequence, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the institution name proofreading method as described in the first aspect or any possible design of the first aspect.

[0047] In a fourth aspect, the present invention provides a computer-readable storage medium having instructions stored thereon, which, when executed on a computer, executes the institution name proofreading method as described in the first aspect or any possible design of the first aspect.

[0048] In a fifth aspect, the present invention provides a computer program product, comprising a computer program or instructions, which, when executed by a computer, implements the institution name proofreading method as described in the first aspect or any possible design of the first aspect.

[0049] Beneficial effects of the above scheme:

[0050] The present invention creatively provides a new solution for proofreading institution names by cooperating with large and small models, that is, after constructing an institution name knowledge base, an inverted index is first established based on the full name, abbreviation and alias of all institution structured information in the knowledge base, and then the text to be proofread is input into the pre-trained institution name entity recognition model, and the institution name to be proofread and its context information are output, and then the inverted index is used to perform similarity search on the institution name to be proofread to obtain multiple candidate institution names, and based on the context information and the structured information of the institution to which the candidate institution name belongs, a candidate institution name that best matches the institution name to be proofread is screened out based on the thinking chain technology of the large language model, and finally the difference between the two names is compared and specific proofreading suggestions are given, so that the suspected erroneous institution names are quickly located by utilizing the processing speed characteristics of the small model, and the error situation of the institution name is accurately determined by utilizing the precise semantic recognition capability of the large model and combining the context semantics, so that the proofreading of institution names in real scenarios can be completed efficiently and accurately, and thus complex and changeable changes in institution names can be coped with, which is convenient for practical application and promotion. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0052] Figure 1 A flowchart of the institution name proofreading method provided in an embodiment of the present application.

[0053] Figure 2 A schematic diagram of the structure of an institution name proofreading device provided in an embodiment of the present application.

[0054] Figure 3 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0055] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the present invention will be briefly introduced below in combination with the drawings and the description of the embodiments or the prior art. Obviously, the following description of the structures of the drawings is only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these embodiments without creative work. It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention.

[0056] It should be understood that although the terms first and second, etc. may be used herein to describe various objects, these objects should not be limited by these terms. These terms are only used to distinguish one object from another object. For example, a first object can be referred to as a second object, and similarly, a second object can be referred to as a first object without departing from the scope of the exemplary embodiments of the present invention.

[0057] It should be understood that the term "and / or" that may appear in this document is merely a description of the association relationship between associated objects, indicating that there may be three relationships. For example, A and / or B can indicate three situations: A exists alone, B exists alone, or A and B exist at the same time. For another example, A, B and / or C can indicate the existence of any one of A, B and C or any combination of them. The term " / and" that may appear in this document describes another type of association object relationship, indicating that there may be two relationships. For example, A / and B can indicate two situations: A exists alone or A and B exist at the same time. In addition, the character " / " that may appear in this document generally indicates that the previous and next associated objects are in an "or" relationship.

[0058] Example

[0059] like Figure 1 As shown, the organization name proofreading method provided in the first aspect of this embodiment can be, but is not limited to, executed by a computer device with certain computing resources, such as a cloud server for receiving news submissions. Figure 1 As shown, the institution name proofreading method may include but is not limited to the following steps S1 to S8.

[0060] S1. Construct an institution name knowledge base, wherein the institution name knowledge base records the institution structured information of all institutions and is aggregated and associated with the full name of the institution as the primary key. The institution structured information includes but is not limited to the full name of the institution, the abbreviation of the institution, the alias of the institution, the region where the institution is located, and the industry to which the institution belongs.

[0061] In the step S1, the structured information of the organization recorded by the organization name knowledge base is used as a standard answer for correction, wherein the full name of the organization, the abbreviation of the organization and the alias of the organization are used as the organization information of the basic attribute dimension, and the region where the organization is located and the industry to which the organization belongs are used as the organization information of the associated attribute dimension. In order to ensure the correctness of all the structured information of the organization, it is preferred to adopt a human-computer collaborative method to construct the organization name knowledge base, that is, preferably, constructing the organization name knowledge base includes but is not limited to the following steps S11 to S17.

[0062] S11. Based on the predetermined target correction agency scope, crawl and obtain agency-related network data from the agency information disclosure website.

[0063] In step S11, the target correction agency range can be manually determined in advance for different administrative levels such as the whole country and provinces / cities / counties. The specific crawling method of the network data can be derived based on the conventional crawler technology. In addition, the agency information disclosure website needs to be a pre-specified authoritative website.

[0064] S12. Based on the CLUENER2020 dataset, construct a training dataset containing the full name, abbreviation and alias of the institution.

[0065] In step S12, the CLUENER2020 dataset is a Chinese fine-grained named entity recognition (NER, also known as "proper name recognition", which refers to the identification of entities with specific meanings in the text, mainly including names of people, places, institutions and proper nouns, etc.) dataset. It is based on the open source text classification dataset THUCNEWS, and part of the data is selected for fine-grained annotation. Therefore, the training dataset can be conventionally constructed.

[0066] S13. Based on the training data set, fine-tune the roberta-base-chinese entity recognition model to obtain an institution name entity recognition model for identifying the full name, abbreviation and / or alias of an institution.

[0067] In step S13, the roberta-base-chinese entity recognition model is a pre-trained model developed based on the BERT (Bidirectional Encoder Representations from Transformers) model, which has improvements in training data and hyperparameter settings, and includes 12 Transformer layers, each with 768 hidden dimensions, and a total of 125M parameters, so the institution name entity recognition model can be obtained by conventional fine-tuning training. In addition, compared with the large language model, the institution name entity recognition model is a small model and has a faster processing speed.

[0068] S14. Using the first language model, construct an institution-related attribute prompt model for identifying the region where the institution is located and / or the industry required by the institution.

[0069] In step S14, the Large Language Model (LLM) is a deep learning model trained based on massive text data, which can not only generate natural language text, but also deeply understand the meaning of the text and handle various natural language tasks, such as text summarization, question answering and translation, etc., so the institution association attribute prompt model can be conventionally constructed. Specifically, the first large language model can be, but is not limited to, the Chinese and English pre-trained large model with 7 billion parameters launched by Baichuan Intelligent Company: baichuan-7B.

[0070] S15. Utilize the institution name entity recognition model and the institution association attribute prompt model to identify the institution's full name, institution abbreviation, institution nickname, the region where the institution is located, and the industry to which the institution belongs from the network data, and use the institution's full name as the primary key for aggregation association to obtain the structured initial information of the institution that includes the institution's full name, institution abbreviation, institution nickname, the region where the institution is located, and the industry to which the institution belongs.

[0071] S16. Push the initial structured information of each of the institutions to the human-computer interaction interface for manual merging, manual correction and manual confirmation, and obtain the structured information of all the institutions, which is aggregated and associated with the full name of the institution as the primary key and contains the full name of the institution, the abbreviation of the institution, the alias of the institution, the region where the institution is located and the industry to which the institution belongs.

[0072] In step S16, the specific push method may be, but is not limited to, various existing push methods such as web page push or email push.

[0073] S17. Record the structured information of all the institutions into the knowledge base to obtain an institution name knowledge base.

[0074] In the step S1, considering that the organization information has been updated in both the basic attribute dimension and the associated attribute dimension, in order to ensure the dynamic accuracy of all the structured information of the organization, preferably, after constructing the organization name knowledge base, the method also includes but is not limited to the following steps S181 to S184.

[0075] S181. Real-time monitoring is performed to determine whether there is any network refresh data related to the institution on the institution information disclosure website. If so, the network refresh data is crawled from the institution information disclosure website to obtain the network refresh data.

[0076] S182. Using the organization name entity recognition model and the organization association attribute prompt model, identify and obtain the updated organization structured initial information from the network refresh data.

[0077] S183. Push the updated initial structured information of the organization to the human-computer interaction interface for manual merging, manual correction and manual confirmation to obtain the updated structured information of the organization.

[0078] S184. Update and maintain the institution name knowledge base based on the updated structured information of the institution.

[0079] In the step S184, considering that the correspondence between the institution and the structured information of the institution is a one-to-one correspondence, the structured information of the institution in the institution name knowledge base can be directly updated with the updated structured information of the institution, so as to achieve the purpose of updating and maintaining the knowledge base. In addition, it is also possible to monitor in real time whether there is network data related to the new institution on the institution information disclosure website. If so, refer to the aforementioned steps S15 to S16 to obtain the structured information of the new institution and record it in the institution name knowledge base, so as to achieve the purpose of updating and maintaining the knowledge base.

[0080] S2. Establish an inverted index at word segmentation granularity and / or character granularity based on the full name, abbreviation and alias of all the structured information of the organization in the organization name knowledge base.

[0081] In step S2, the inverted index (English: Inverted index) is also often called an inverted index, an embedded file or an inverted file, which is used to store the mapping of the storage location of a word in a document or a group of documents under full-text search. It is the most commonly used data structure in document retrieval systems, and through the inverted index, a list of documents containing the word can be quickly obtained based on the word. Specifically, based on the full name, abbreviation and alias of all the structured information of the organization in the organization name knowledge base, an inverted index is established at the word segmentation granularity and / or character granularity, including but not limited to the following steps S21 to S22.

[0082] S21. Using the full-text parser ngram pairs The full name, abbreviation and alias of all the structured information of the organization in the organization name knowledge base conduct Parsing is performed at word segmentation granularity and / or character granularity to obtain parsing results.

[0083] In step S21, the full-text parser ngram is an existing tool that can segment text, and the parameter ngram_token_size can be used to set the size of the segmentation when segmenting Chinese words. Therefore, it can be used to perform segmentation granularity and / or character granularity analysis on the full name of the organization, the abbreviation of the organization and the alias of the organization.

[0084] S22. Based on the analysis results, an inverted index of the search and data analysis engine Elasticsearch is established.

[0085] In the step S22, the search and data analysis engine Elasticsearch is an existing engine with the characteristics of distribution, high scalability and high real-time, which can easily enable large amounts of data to have the ability to search, analyze and explore; its implementation principle is mainly divided into the following steps: first, the user submits the data to the Elasticsearch database, and then the corresponding sentence is segmented through the word segmentation controller, and its weight and the word segmentation result are stored in the database together, and then when the user searches for data, the search results are scored and ranked according to the weight, and finally the returned results are presented to the user. Therefore, according to the parsing results, the inverted index of the search and data analysis engine Elasticsearch can be conventionally established.

[0086] S3. Input the text to be proofread into a pre-trained entity recognition model for identifying the full name, abbreviation and / or alias of the institution, and output the name of the institution to be proofread.

[0087] In the step S3, the text to be proofread may be, but is not limited to, texts such as news releases or public notices, and the name of the organization to be proofread may specifically be the full name of the organization to be proofread, the abbreviation of the organization or the alias of the organization. The pre-trained organization name entity recognition model used to identify the full name of the organization, the abbreviation of the organization and / or the alias of the organization is the organization name entity recognition model trained in the aforementioned step S13. In order to optimize the organization name entity recognition model, preferably, after constructing the organization name knowledge base, the method further includes but is not limited to the following steps S301 to S302.

[0088] S301. Based on the full name, abbreviation and alias of the institution structured information in the institution name knowledge base, a second language model is used to synthesize text data with different domain attributes, different length attributes and / or rich diversity.

[0089] In step S301, since the large language model can generate natural language text, the text data can be conventionally synthesized based on the full name of the organization, the abbreviation of the organization and the alias of the organization as a new training data set. Specifically, the second large language model can also be, but not limited to, the Chinese and English pre-trained large model with 7 billion parameters launched by Baichuan Intelligent Company: baichuan-7B.

[0090] S302. Use the text data to fine-tune and optimize the institution name entity recognition model.

[0091] In step S302, the specific fine-tuning optimization process is the process of fine-tuning and retraining the institution name entity recognition model based on the new training data set.

[0092] S4. Extracting context information of the name of the organization to be proofread from the text to be proofread according to the position of the name of the organization to be proofread in the text to be proofread.

[0093] In the step S4, the context information may be specifically exemplified as the sentence or paragraph to which the name of the organization to be proofread belongs.

[0094] S5. Use the inverted index to perform a similarity search on the name of the organization to be proofread, and obtain the first N candidate organization names retrieved from the organization name knowledge base and arranged in descending order according to similarity, wherein N represents a positive integer greater than or equal to 3, and the candidate organization name is the full name of the organization, the abbreviation of the organization, or the alias of the organization.

[0095] In step S5, the first N candidate institution names are the preliminary recall results of matching the institution name to be proofread in the institution name knowledge base. For example, the value of N is 5.

[0096] S6. Based on the context information of the organization name to be proofread and the structured information of the organizations to which the top N candidate organization names belong, the thinking chain technology based on the large language model sequentially performs regional classification identification and screening processing, industry classification identification and screening processing, and matching organization identification processing on the top N candidate organization names to obtain a candidate organization name that is screened out from the top N candidate organization names and best matches the organization name to be proofread.

[0097] In step S6, the Chain-of-thought (CoT) technology is an improved prompt strategy for improving the performance of large language models in complex reasoning tasks, such as arithmetic reasoning, common sense reasoning and symbolic reasoning. It does not simply construct prompts with input-output pairs like traditional prompt strategies, but combines intermediate reasoning steps that can introduce the final output into the prompt. In short, the Chain-of-thought is a discrete prompt learning, more specifically, it is context learning under a large language model (that is, without training, adding examples to the front of the current sample input, allowing the model to input these texts at a time for output, and then completing the task). Compared with the previous traditional context learning (that is, by taking x1, y1, x2, y2, ..., xtest as input to let the large language model complete the output ytest), the Chain-of-thought has more intermediate derivation prompts. Therefore, for the name of the organization to be proofread, the Chain-of-thought and context semantic understanding of the large language model can be used to gradually screen the matching organization information from the dimensions of region, industry and name. Specifically, the task of determining the matching relationship between the name of the organization to be proofread and the first N candidate organization names is divided into the following three cascaded subtasks by combining the thinking chain technology of the large language model, and the following relevant information is identified through the prompt construction technology: regional classification identification (i.e., subtask 1), industry classification identification (i.e., subtask 2), and matching candidate organization identification (i.e., subtask 3); the aforementioned three subtasks are cascaded identification, firstly, through subtask 1 and subtask 2, the candidate organization names are screened in the two dimensions of region and industry, and then the final specific matching candidate organization name is determined through subtask 3. For example: the regions where the candidate organizations are located include Chengdu and Suining, the industries to which the candidate organizations belong include medical and media, and the organization names of the candidate organizations include Chengdu Municipal Health Commission and Sichuan Provincial Party Committee Propaganda Department, then the prompt of subtask 1 is "Which region is the extracted organization in Chengdu and Suining?", the prompt of subtask 2 is "Which industry is the extracted organization in medical and media?", the prompt of subtask 3 is "Which one of the candidate organizations is the extracted organization?", and so on.

[0098] S7. Determine whether there is a name difference between the name of the organization to be proofread and the name of one of the candidate organizations.

[0099] In step S7, the differences between the full name and the abbreviation of the organization, the full name and the alias of the organization, and the abbreviation and the alias of the organization are ignored.

[0100] S8. If yes, output proofreading suggestions for the organization name to be proofread based on the candidate organization name.

[0101] In step S8, the proofreading suggestion specifically includes but is not limited to a standard expression method based on the name of the candidate organization, the error category of the organization name to be proofread (for example, it is subdivided into area name error, vector name error and grid level name error, etc.), error information (for example, incorrect area name, vector name and grid level name, etc.) and error location. In order to achieve the purpose of automatic proofreading and updating, preferably, after outputting the proofreading suggestion for the organization name to be proofread based on the name of the candidate organization, the method further includes: modifying the organization name to be proofread in the text to be proofread according to the proofreading suggestion to obtain a proofread text. In addition, if it is determined that there is no name difference between the organization name to be proofread and the name of the candidate organization, there is no need to give the proofreading suggestion.

[0102] Therefore, based on the organization name proofreading method described in the aforementioned steps S1 to S8, a new organization name proofreading scheme with the collaboration of large and small models is provided, that is, after constructing the organization name knowledge base, an inverted index is first established based on the full name, abbreviation and alias of all the organization structured information in the knowledge base, and then the text to be proofread is input into the pre-trained organization name entity recognition model, and the organization name to be proofread and its context information are output, and then the inverted index is used to perform similarity search on the organization name to be proofread to obtain multiple candidate organization names, and according to the context information and the structured information of the organization to which the candidate organization name belongs, a candidate organization name that best matches the organization name to be proofread is screened out based on the thinking chain technology of the large language model, and finally the difference between the two names is compared and specific proofreading suggestions are given, so that by utilizing the processing speed characteristics of the small model to quickly locate the suspected erroneous organization name, and utilizing the precise semantic recognition capability of the large model and combining the context semantics to accurately determine the error of the organization name, the proofreading of the organization name in the real scene can be completed efficiently and accurately, and thus can cope with complex and changeable changes in organization names, which is convenient for practical application and promotion.

[0103] like Figure 2 As shown, the second aspect of this embodiment provides a virtual device for implementing the institution name proofreading method described in the first aspect, including a knowledge base construction unit, an inverted index establishment unit, a name to be proofread identification unit, a context extraction unit, a name similarity retrieval unit, a name screening and matching unit, a name difference judgment unit and a proofreading suggestion output unit;

[0104] The knowledge base construction unit is used to construct an institution name knowledge base, wherein the institution name knowledge base records the institution structured information of all institutions and is aggregated and associated with the full name of the institution as the primary key, and the institution structured information includes the full name of the institution, the abbreviation of the institution, the alias of the institution, the region where the institution is located, and the industry to which the institution belongs;

[0105] The inverted index building unit is communicatively connected to the knowledge base building unit, and is used to build an inverted index at a word segmentation granularity and / or a character granularity according to the full name, abbreviation and alias of all the structured information of the organization in the organization name knowledge base;

[0106] The to-be-proofread name recognition unit is used to input the to-be-proofread text into a pre-trained entity recognition model for identifying the full name, abbreviation and / or alias of an institution, and output the to-be-proofread institution name;

[0107] The context extraction unit is communicatively connected to the name identification unit to be proofread, and is used to extract context information of the name of the organization to be proofread from the text to be proofread according to the position of the name of the organization to be proofread in the text to be proofread;

[0108] The name similarity retrieval unit is respectively connected to the inverted index establishment unit and the to-be-proofread name identification unit for performing similarity retrieval on the to-be-proofread institution name using the inverted index, and obtains the first N candidate institution names retrieved from the institution name knowledge base and arranged in descending order according to similarity, wherein N represents a positive integer greater than or equal to 3, and the candidate institution name is the full name of the institution, the abbreviation of the institution, or the alias of the institution;

[0109] The name screening and matching unit is respectively connected to the context extraction unit and the name similarity retrieval unit in communication, and is used to perform regional classification identification screening processing, industry classification identification screening processing and matching organization identification processing on the first N candidate organization names in sequence based on the context information of the organization name to be proofread and the structured information of the organizations to which the first N candidate organization names belong, based on the thinking chain technology of the large language model, to obtain a candidate organization name that is screened out from the first N candidate organization names and is the most matching with the organization name to be proofread;

[0110] The name difference judgment unit is communicatively connected to the name screening and matching unit, and is used to judge whether there is a name difference between the name of the organization to be proofread and the name of one of the candidate organizations;

[0111] The proofreading suggestion output unit is communicatively connected to the name difference judgment unit, and is used to output proofreading suggestions for the name of the organization to be proofread based on the candidate organization name when it is determined that there is a name difference between the name of the organization to be proofread and the name of the candidate organization.

[0112] The working process, working details and technical effects of the aforementioned device provided in the second aspect of this embodiment can be found in the institution name proofreading method described in the first aspect, and will not be described in detail here.

[0113] like Figure 3 As shown, the third aspect of this embodiment provides a computer device for executing the institution name proofreading method as described in the first aspect, including a memory, a processor and a transceiver that are sequentially connected in communication, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the institution name proofreading method as described in the first aspect. For example, the memory may include, but is not limited to, a random access memory (Random-Access Memory, RAM), a read-only memory (Read-Only Memory, ROM), a flash memory (Flash Memory), a first-in-first-out memory (First Input First Output, FIFO) and / or a first-in-last-out memory (First Input Last Output, FILO), etc.; the processor may include, but is not limited to, a microprocessor of the STM32F105 series. In addition, the computer device may also include, but is not limited to, a power module, a display screen and other necessary components.

[0114] The working process, working details and technical effects of the aforementioned computer device provided in the third aspect of this embodiment can be found in the institution name proofreading method described in the first aspect, and will not be described in detail here.

[0115] The fourth aspect of this embodiment provides a computer-readable storage medium storing instructions including the institution name proofreading method as described in the first aspect, that is, the computer-readable storage medium stores instructions, and when the instructions are run on a computer, the institution name proofreading method as described in the first aspect is executed. The computer-readable storage medium refers to a carrier for storing data, which may include but is not limited to computer-readable storage media such as floppy disks, optical disks, hard disks, flash memory, USB flash drives and / or memory sticks, and the computer may be a general-purpose computer, a special-purpose computer, a computer network or other programmable devices.

[0116] The working process, working details and technical effects of the aforementioned computer-readable storage medium provided in the fourth aspect of this embodiment can be referred to the institution name proofreading method described in the first aspect, and will not be repeated here.

[0117] In a fifth aspect, the present embodiment provides a computer program product, including a computer program or an instruction, wherein the computer program or the instruction, when executed by a computer, implements the institution name proofreading method as described in the first aspect. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.

[0118] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for checking an institution name, characterized in that: include: The institution name knowledge base is constructed, specifically including: crawling network data related to the institution from the institution information disclosure website according to the predetermined target correction institution scope; constructing a training data set containing the full name, abbreviation and alias of the institution based on the CLUENER2020 data set; fine-tuning the roberta-base-chinese entity recognition model based on the training data set to obtain an institution name entity recognition model for identifying the full name, abbreviation and / or alias of the institution; using the first language model, constructing an institution association attribute prompt model for identifying the region where the institution is located and / or the industry required by the institution; using the institution name entity recognition model and the institution association attribute prompt model, The full name, abbreviation, alias, region and industry of the institution are identified, and the full name of the institution is used as the primary key for aggregation and association, so as to obtain the initial structured information of the institution containing the full name of the institution, the abbreviation of the institution, the alias of the institution, the region and industry of the institution; the initial structured information of each institution is pushed to the human-computer interaction interface for manual merging, manual correction and manual confirmation, so as to obtain the structured information of all the institutions, which is aggregated and associated with the full name of the institution as the primary key and contains the full name of the institution, the abbreviation of the institution, the alias of the institution, the region and industry of the institution; the structured information of all the institutions is recorded in the knowledge base to obtain the institution name knowledge base; According to the full names, abbreviations and aliases of all the structured information of the institutions in the institution name knowledge base, an inverted index is established at a word segmentation granularity and / or a character granularity; Input the text to be proofread into a pre-trained entity recognition model for identifying the full name, abbreviation and / or alias of an institution, and output the name of the institution to be proofread; Extracting context information of the name of the organization to be proofread from the text to be proofread according to the position of the name of the organization to be proofread in the text to be proofread; Using the inverted index to perform a similarity search on the name of the institution to be proofread, obtaining the top N candidate institution names retrieved from the institution name knowledge base and arranged in descending order according to similarity, wherein N represents a positive integer greater than or equal to 3, and the candidate institution name is the full name of the institution, the abbreviation of the institution, or the alias of the institution; According to the context information of the organization name to be proofread and the structured information of the organizations to which the first N candidate organization names belong, the first N candidate organization names are sequentially subjected to regional classification identification screening processing, industry classification identification screening processing and matching organization identification processing based on the thought chain technology of the large language model, so as to obtain a candidate organization name that is screened out from the first N candidate organization names and is the most matching with the organization name to be proofread; Determine whether there is a name difference between the name of the institution to be proofread and the name of one of the candidate institutions; If so, a proofreading suggestion for the organization name to be proofread is output based on the candidate organization name.

2. The institution name proofreading method according to claim 1, characterized in that: After the institution name knowledge base is constructed, the method further includes: Real-time monitoring of whether there is network refresh data related to the institution on the institution information disclosure website, and if so, crawling the network refresh data from the institution information disclosure website; Using the organization name entity recognition model and the organization association attribute prompt model, identify and obtain the updated organization structured initial information from the network refresh data; Pushing the updated initial structured information of the organization to the human-computer interaction interface for manual merging, manual correction and manual confirmation to obtain the updated structured information of the organization; The institution name knowledge base is updated and maintained according to the updated structured information of the institution.

3. The institution name proofreading method according to claim 1, characterized in that: After the institution name knowledge base is constructed, the method further includes: Using a second language model, synthesize text data with different domain attributes, different length attributes and / or rich diversity according to the full name, abbreviation and alias of the structured information of the institution in the institution name knowledge base; The text data is used to fine-tune and optimize the institution name entity recognition model.

4. The institution name proofreading method according to claim 1, characterized in that: According to the full name, abbreviation and alias of all the structured information of the organization in the organization name knowledge base, an inverted index is established at word segmentation granularity and / or character granularity, including: Using the full-text parser ngram pairs The full name, abbreviation and alias of all the structured information of the organization in the organization name knowledge base conduct Parsing at word segmentation granularity and / or character granularity to obtain parsing results; According to the analysis results, an inverted index of the search and data analysis engine Elasticsearch is established.

5. The institution name proofreading method according to claim 1, characterized in that: After outputting a proofreading suggestion for the to-be-proofreading institution name according to the candidate institution name, the method further includes: The name of the organization to be proofread in the text to be proofread is modified according to the proofreading suggestion to obtain a proofread text.

6. An institution name proofreading device, characterized in that: It includes a knowledge base construction unit, an inverted index establishment unit, a name recognition unit to be proofread, a context extraction unit, a name similarity retrieval unit, a name screening and matching unit, a name difference judgment unit and a proofreading suggestion output unit; The knowledge base construction unit is used to construct an institution name knowledge base, specifically including: crawling network data related to the institution from the institution information disclosure website according to the predetermined target correction institution scope; constructing a training data set containing the full name, abbreviation and alias of the institution based on the CLUENER2020 data set; fine-tuning the roberta-base-chinese entity recognition model based on the training data set to obtain an institution name entity recognition model for identifying the full name, abbreviation and / or alias of the institution; using the first language model, constructing an institution association attribute prompt model for identifying the region where the institution is located and / or the industry required by the institution; using the institution name entity recognition model and the institution association attribute prompt model, The full name, abbreviation, nickname, region and industry of the institution are identified in the network data, and the full name is used as the primary key for aggregation and association, so as to obtain the structured initial information of the institution including the full name, abbreviation, nickname, region and industry; the structured initial information of each institution is pushed to the human-computer interaction interface for manual merging, manual correction and manual confirmation, so as to obtain the structured information of all the institutions, which is aggregated and associated with the full name as the primary key and includes the full name, abbreviation, nickname, region and industry; the structured information of all the institutions is recorded in the knowledge base to obtain the institution name knowledge base; The inverted index building unit is communicatively connected to the knowledge base building unit, and is used to build an inverted index at a word segmentation granularity and / or a character granularity according to the full name, abbreviation and alias of all the structured information of the organization in the organization name knowledge base; The to-be-proofread name recognition unit is used to input the to-be-proofread text into a pre-trained entity recognition model for identifying the full name, abbreviation and / or alias of an institution, and output the to-be-proofread institution name; The context extraction unit is communicatively connected to the name identification unit to be proofread, and is used to extract context information of the name of the organization to be proofread from the text to be proofread according to the position of the name of the organization to be proofread in the text to be proofread; The name similarity retrieval unit is respectively connected to the inverted index establishment unit and the to-be-proofread name identification unit for performing similarity retrieval on the to-be-proofread institution name using the inverted index, and obtains the first N candidate institution names retrieved from the institution name knowledge base and arranged in descending order according to similarity, wherein N represents a positive integer greater than or equal to 3, and the candidate institution name is the full name of the institution, the abbreviation of the institution, or the alias of the institution; The name screening and matching unit is respectively connected to the context extraction unit and the name similarity retrieval unit in communication, and is used to perform regional classification identification screening processing, industry classification identification screening processing and matching organization identification processing on the first N candidate organization names in sequence based on the context information of the organization name to be proofread and the structured information of the organizations to which the first N candidate organization names belong, based on the thinking chain technology of the large language model, to obtain a candidate organization name that is screened out from the first N candidate organization names and is the most matching with the organization name to be proofread; The name difference judgment unit is communicatively connected to the name screening and matching unit, and is used to judge whether there is a name difference between the name of the organization to be proofread and the name of one of the candidate organizations; The proofreading suggestion output unit is communicatively connected to the name difference judgment unit, and is used to output proofreading suggestions for the name of the organization to be proofread based on the candidate organization name when it is determined that there is a name difference between the name of the organization to be proofread and the name of the candidate organization.

7. A computer device, characterized in that: It includes a memory, a processor and a transceiver which are communicatively connected in sequence, wherein the memory is used to store a computer program, the transceiver is used to send and receive messages, and the processor is used to read the computer program to execute the institution name proofreading method as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores instructions, and when the instructions are executed on the computer, the organization name proofreading method as described in any one of claims 1 to 5 is executed.

9. A computer program product comprising a computer program or instructions, characterized in that When the computer program or the instruction is executed by a computer, the organization name proofreading method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Text processing method and device, electronic equipment and medium

    CN115062110A

  • Government affair field multi-stage fusion text error correction method based on knowledge graph

    CN116502628A

  • Character proofreading method and system based on natural language processing and machine learning

    CN117454906A

  • Multi-modal content offer information timeliness error correction method and device, equipment and medium

    CN117709347A

  • Text translation method and device

    CN117709375A