A text information processing method, device, equipment and storage medium
By constructing comprehensive training samples and using the initial entity type recognition model and entity relationship extraction model, medical text information is annotated and trained, which solves the problem of incomplete training samples in the existing technology and improves the recognition and recognition of the knowledge extraction model. Extraction accuracy enables more accurate structured processing of medical text information.
Patent Information
- Application Number
- CN202110923275.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-12
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-08-12
AI Technical Summary
In the existing technology, the comprehensiveness of training samples in medical text information processing affects the accuracy of the knowledge extraction model, causing the model to be deficient in identifying entity types and extracting relationships.
By constructing comprehensive training samples, including standard entity types, attribute entity types and value entity types, using the initial entity type recognition model and entity relationship extraction model, the original training text information is annotated and trained to generate a more comprehensive first training samples, thereby improving the accuracy of entity type recognition and relationship extraction.
The accuracy of the knowledge extraction model is improved, enabling the model to more accurately identify and extract entity types and relationships in medical texts, and enhancing the structured representation ability of unstructured text information.
Smart Images

Figure CN113553840B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of medical text technology, and more specifically, to a text information processing method, apparatus, device and storage medium. Background Art
[0002] With the rapid development of medical information technology, medical staff generally use electronic medical records to record important information during the patient's diagnosis and treatment process. Since the information in electronic medical records (which can be called medical text information) is mostly stored in an unstructured form, it is difficult to be directly used in scenarios such as scientific research.
[0003] Currently, unstructured medical text information can be processed through a pre-trained knowledge extraction model to obtain structured information, which includes entities in the medical text information and the relationships between entities.
[0004] Among them, the comprehensiveness of the training samples used to train the knowledge extraction model will directly affect the accuracy of the knowledge extraction model. Therefore, how to construct comprehensive training samples is a technical problem that needs to be solved urgently. Summary of the invention
[0005] The purpose of this application is to provide a text information processing method, device, equipment and storage medium to address the deficiencies in the above-mentioned prior art, which can improve the accuracy of the knowledge extraction model based on the construction of comprehensive training samples.
[0006] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0007] In a first aspect, an embodiment of the present application provides a text information processing method, wherein an initial knowledge extraction model includes an initial entity type recognition model and an initial entity relationship extraction model, and the method includes:
[0008] According to the correspondence between entity types and entity names, the original training text information is annotated to obtain a first training sample, wherein the entity types include: a standard entity type, an attribute entity type, and a value entity type, wherein the attribute entity type and the value entity type are respectively used to characterize the features of the standard entity type, and the first training sample includes: the original training text information and the entity type corresponding to each entity name in the original training text information;
[0009] Inputting the first training sample into the initial entity type recognition model to train and obtain an entity type recognition model;
[0010] The first training sample is labeled according to the correspondence between entity types to obtain a second training sample, wherein the correspondence between entity types includes: a pointing relationship between a subject entity type and an object entity type, and the second training sample includes: the original training text information, and a correspondence between entity names corresponding to the entity types in the original training text information;
[0011] The second training sample is input into the initial entity relationship extraction model to obtain an entity relationship extraction model through training.
[0012] Optionally, the labeling the first training sample according to the correspondence between entity types to obtain the second training sample includes:
[0013] The first training sample is labeled according to the correspondence between the entity types and the strength information between the entity names corresponding to the entity types in the first training sample to obtain a second training sample.
[0014] Optionally, the labeling of original training text information according to the correspondence between entity types and entity names to obtain a first training sample includes:
[0015] According to the correspondence between entity types and entity names, the original training text information is labeled to obtain an initial first training sample;
[0016] If an entity name in the original training text information includes multiple sub-entity names, the entity types corresponding to the sub-entity names in the initial first training sample are deleted to obtain the first training sample.
[0017] Optionally, the method further comprises:
[0018] Input the target text information into the entity type recognition model, and output an entity set, wherein the entity set includes: an entity name contained in the target text information and an entity type corresponding to the entity name, wherein the entity type includes a standard entity type, an attribute entity type, and a value entity type;
[0019] The target text information and the entity set are input into the entity relationship extraction model, and an entity name pair is output. The entity name pair includes a subject entity name and an object entity name, and the subject entity name points to the object entity name.
[0020] Optionally, the step of inputting the target text information and the entity set into the entity relationship extraction model and outputting entity name pairs includes:
[0021] The target text information and the entity set are input into the entity relationship extraction model, and the entity name pairs and the strength information between the entity names contained in the entity name pairs are output. The entity name pairs include a subject entity name and an object entity name, and the subject entity name points to the object entity name.
[0022] Optionally, after inputting the target text information and the entity set into the entity relationship extraction model and outputting entity name pairs, the method further includes:
[0023] According to the entity name pair, a knowledge graph is constructed, and the subject entity name and the customer entity name in the entity name pair are respectively used as nodes in the knowledge graph, and the relationship between the subject entity name and the object entity name is used as an edge in the knowledge graph.
[0024] Optionally, after constructing the knowledge graph according to the entity name pairs, the method further includes:
[0025] According to the knowledge acquisition instruction input by the user, the corresponding entity name is obtained from the database storing the graph data corresponding to the knowledge graph;
[0026] The entity name is displayed in the knowledge graph according to the display status corresponding to the entity name.
[0027] Optionally, after inputting the target text information into the entity type recognition model and outputting the entity set, the method further includes:
[0028] Performing statistical operations on the entity set to obtain statistical results, wherein the statistical results include: the frequency of occurrence of each entity name and / or the frequency of occurrence of each entity type in the entity set;
[0029] The contents belonging to the same dimension in the statistical results are sorted respectively to obtain sorting results.
[0030] In a second aspect, an embodiment of the present application further provides a text information processing device, wherein the initial knowledge extraction model includes an initial entity type recognition model and an initial entity relationship extraction model, and the device includes:
[0031] A first annotation module is used to annotate the original training text information according to the correspondence between the entity type and the entity name to obtain a first training sample, wherein the entity type includes: a standard entity type, an attribute entity type and a value entity type, wherein the attribute entity type and the value entity type are respectively used to characterize the features of the standard entity type, and the first training sample includes: the original training text information and the entity type corresponding to each entity name in the original training text information;
[0032] A first training module, used for inputting the first training sample into the initial entity type recognition model to train and obtain an entity type recognition model;
[0033] A second annotation module is used to annotate the first training sample according to the correspondence between entity types to obtain a second training sample, wherein the correspondence between the entity types includes: a pointing relationship between a subject entity type and an object entity type, and the second training sample includes: the original training text information, and a correspondence between entity names corresponding to the entity types in the original training text information;
[0034] The second training module is used to input the second training sample into the initial entity relationship extraction model to obtain the entity relationship extraction model through training.
[0035] Optionally, the second labeling module is specifically used to label the first training sample according to the correspondence between the entity types and the strength information between the entity names corresponding to each entity type in the first training sample to obtain the second training sample.
[0036] Optionally, the first labeling module is specifically used to label the original training text information according to the correspondence between the entity type and the entity name to obtain an initial first training sample; if an entity name in the original training text information includes multiple sub-entity names, then the entity type corresponding to each of the sub-entity names in the initial first training sample is deleted to obtain the first training sample.
[0037] Optionally, the device further comprises:
[0038] A first output module is used to input the target text information into the entity type recognition model and output an entity set, wherein the entity set includes: an entity name contained in the target text information and an entity type corresponding to the entity name, wherein the entity type includes a standard entity type, an attribute entity type and a value entity type;
[0039] The second output module is used to input the target text information and the entity set into the entity relationship extraction model, and output an entity name pair, wherein the entity name pair includes a subject entity name and an object entity name, and the subject entity name points to the object entity name.
[0040] Optionally, the second output module is specifically used to input the target text information and the entity set into the entity relationship extraction model, and output the entity name pairs and the strength information between the entity names contained in the entity name pairs, wherein the entity name pairs include a subject entity name and an object entity name, and the subject entity name points to the object entity name.
[0041] Optionally, the device further comprises:
[0042] A construction module is used to construct a knowledge graph based on the entity name pair, taking the subject entity name and the customer entity name in the entity name pair as nodes in the knowledge graph respectively, and taking the relationship between the subject entity name and the object entity name as an edge in the knowledge graph.
[0043] Optionally, the device further comprises:
[0044] An acquisition module, used to acquire corresponding entity names from a database storing graph data corresponding to the knowledge graph according to a knowledge acquisition instruction input by a user;
[0045] A display module is used to display the entity name in the knowledge graph according to the display state corresponding to the entity name.
[0046] Optionally, the device further comprises:
[0047] The statistical module is used to perform statistical operations on the entity set to obtain statistical results, which include: the frequency of occurrence of each entity name and / or the frequency of occurrence of each entity type in the entity set; and sort the contents belonging to the same dimension in the statistical results to obtain sorting results.
[0048] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the text information processing method of the first aspect above.
[0049] In a fourth aspect, an embodiment of the present application provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the text information processing method of the first aspect are executed.
[0050] The beneficial effects of this application are:
[0051] The embodiment of the present application provides a text information processing method, apparatus, device and storage medium, wherein the initial knowledge extraction model includes an initial entity type recognition model and an initial entity relationship extraction model, wherein the method includes: annotating original training text information according to the correspondence between entity types and entity names to obtain a first training sample, wherein the entity types include: a standard entity type, an attribute entity type and a value entity type, wherein the attribute entity type and the value entity type are respectively used to characterize the characteristics of a quasi-entity type, and the first training sample includes: the original training text information and the entity types corresponding to the entity names in the original training text information; inputting the first training sample into the initial entity type recognition model to obtain an entity type recognition model through training; annotating the first training sample according to the correspondence between entity types to obtain a second training sample, wherein the correspondence between the entity types includes: a pointing relationship between a subject entity type and an object entity type, and the second training sample includes: the original training text information and the correspondence between the entity names corresponding to the entity types in the original training text information; inputting the second training sample into the initial entity relationship extraction model to obtain an entity relationship extraction model through training.
[0052] By adopting the text information processing method provided in the embodiment of the present application, the original training text information is annotated by adding attribute entity types and value entity types. Not only can the entity names corresponding to the standard entity types be identified from the original training text information, but also the entity names corresponding to the attribute entity types and the entity names corresponding to the value entity types can be identified from the original training text information. The first training sample constructed in this way can more comprehensively reflect the content contained in the original training text information. On the premise that the first training sample is comprehensive, the accuracy of the entity type recognition model trained using the first training sample will be improved, thereby improving the accuracy of the knowledge extraction model containing the entity type recognition model. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0054] Figure 1 A schematic diagram of the structure of an initial knowledge extraction model provided in an embodiment of the present application;
[0055] Figure 2 A schematic diagram of the structure of a knowledge extraction model provided in an embodiment of the present application;
[0056] Figure 3 A flowchart of a text information processing method provided in an embodiment of the present application;
[0057] Figure 4 A flowchart of another text information processing method provided in an embodiment of the present application;
[0058] Figure 5 A flowchart of another text information processing method provided in an embodiment of the present application;
[0059] Figure 6 A schematic diagram of converting unstructured target text information into structured graph data provided in an embodiment of the present application;
[0060] Figure 7 A schematic diagram of the structure of a knowledge graph provided in an embodiment of the present application;
[0061] Figure 8 A flowchart of another text information processing method provided in an embodiment of the present application;
[0062] Fig. 9 A flowchart of another text information processing method provided in an embodiment of the present application;
[0063] Fig.10 A structural diagram of a text information processing device provided in an embodiment of the present application;
[0064] Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0065] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments.
[0066] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.
[0067] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0068] Before explaining the embodiments of the present application in detail, some terms appearing in the embodiments of the present application are first explained.
[0069] Entity type: covers the main concepts involved in medical texts. The following mainly introduces 11 entity types, which can be divided into standard entity types, attribute entity types and value entity types. Among them, the standard entity types mainly include: human body parts (including various organs of the nine major systems of the human body, generally referring to the biological subjects of concern, including human tissues and cells); patient subjects (objects suffering from diseases, generally referring to the objects described in medical texts); clinical manifestations (objective symptoms and subjective abnormal sensations of the patient subject, which can also refer to the objective manifestations of the patient's body parts, etc.); project examination (the name of the diagnostic project, the purpose is to assist doctors in making judgments on the patient's disease, including imaging examinations, physical and chemical examinations conducted in the laboratory, etc.); disease diagnosis (diseases defined in medicine and the judgments made by doctors on etiology, pathophysiology, classification and staging in clinical work); treatment methods (therapeutic means are used to intervene in the patient's health status, with the aim of alleviating and eliminating the patient's disease and abnormal symptoms, including surgery and medical devices for therapeutic purposes, etc.); drug names (generally refers to the generic names of all drugs used to prevent, treat and diagnose patient diseases); location (used to describe specific location information that other entities may potentially involve); time (used to describe the moment and time period when an event occurs). Attribute entity type: a general term that qualitatively describes all potential attributes of a standard entity type. Value entity type: refers to the specific experimental or observational conclusion of an attribute of a standard entity type, which can be any of a numerical value, a text description, etc. It should be noted that this application does not limit the specific content contained in the standard entity type.
[0070] Entity name: It can be understood as a specific subordinate description of the entity category. For example, the entity name corresponding to the entity type "human body part" may include the names of the organs of the nine major systems of the human body, such as the right upper limb, shoulder and neck, etc. The entity name corresponding to the entity type "clinical manifestation" may include numbness, pain, etc. The entity name corresponding to the entity type "attribute entity type" may include body temperature, boundary, etc. The entity name corresponding to the entity type "value entity type" may include specific numerical values of size (such as 0.8×0.6cm), clarity, etc.
[0071] Secondly, the application scenario of this application is introduced. The application scenario can be specifically a scenario of extracting indicator information required for clinical research from electronic medical records, wherein the information in the electronic medical records is medical text information stored in an unstructured form, and such medical text information is difficult to be directly used for clinical research, so it is necessary to convert the unstructured medical text information into structured graph data.
[0072] Specifically, the initial knowledge extraction model can be trained according to the constructed training samples to obtain the knowledge extraction model. Figure 1 This is a schematic diagram of the structure of an initial knowledge extraction model provided in an embodiment of the present application. Figure 1 As shown, the initial knowledge extraction model 100 may include an initial entity type recognition model 101 and an initial entity relationship extraction model 102. Optionally, the initial entity type recognition model 101 and the initial entity relationship extraction model 102 may be trained as a whole, and when the training stop condition is met, the entity type recognition model and the entity relationship extraction model are obtained. The initial entity type recognition model 101 and the initial entity relationship extraction model 102 may also be trained separately to obtain the entity type recognition model and the entity relationship extraction model, which is not limited in the present application.
[0073] Figure 1 It is a structural diagram for training an initial entity type recognition model 101 and an initial entity relationship extraction model 102 separately. The initial entity type recognition model 101 is a deep neural network model based on BERT (Bidirectional Encoder Representation from Transformers) and CRF (Conditional Random Fields) decoder. Specifically, the first training sample 1011 for training the initial entity type recognition model 101 can be constructed in the following embodiment, and the initial entity type recognition model 101 is trained according to the first training sample 1011 to obtain an entity recognition model; the initial entity relationship extraction model 102 is a deep neural network based on BERT. Specifically, the first training sample 1011 can be labeled in the following embodiment to obtain a second training sample 1021, and the initial entity relationship extraction model 102 is trained according to the second training sample 1021 to obtain an entity relationship extraction model.
[0074] Then comes the process of applying the knowledge extraction model obtained through the above training. Figure 2 A schematic diagram of a knowledge extraction model provided in an embodiment of the present application is shown in FIG. Figure 2As shown, the knowledge extraction model 200 may include an entity type recognition model 201 and an entity relationship extraction model 202. The target text information 2011 is input into the entity type recognition model 201. The entity type recognition model 201 may output the entity names contained in the target text information 2011 and an entity set of entity types corresponding to the entity names. The entity names may include entity names corresponding to "attribute entity types", i.e., attribute entity names, and entity names corresponding to "value entity types", i.e., value entity names. The entity set output by the entity type recognition model 201 and the target text information 2011 are input into the entity relationship extraction model 202. The entity relationship extraction model 202 may output entity name pairs 2021. The entity name pairs 2021 include standard entity names, attribute entity names and / or value entity names, as well as the pointing relationships between them. The knowledge extraction model may convert unstructured medical text information into structured graph data (entity name pairs).
[0075] The text information processing method mentioned in this application is illustrated as follows with reference to the accompanying drawings. Figure 3 A flowchart of a text information processing method provided in an embodiment of the present application is shown in FIG. Figure 3 Said method may include:
[0076] S301. Annotate original training text information according to the correspondence between entity types and entity names to obtain a first training sample. The entity types include: standard entity types, attribute entity types, and value entity types.
[0077] Among them, the attribute entity type and the value entity type are used to characterize the characteristics of the standard entity type respectively.
[0078] Specifically, medical text information is a kind of content described in natural language, which is equivalent to unstructured data. Unstructured data is difficult to be directly used in different clinical research tasks or statistical analysis tasks. Therefore, it is first necessary to train a model that can convert unstructured data into structured data. This model can be called a knowledge extraction model. The following mainly explains how to obtain the knowledge extraction model.
[0079] The original training text information is a medical text information, which can be extracted from a medical-related corpus. It should be noted that this application does not limit the number of extracted medical texts. An entity type framework can be set in advance, and the entity type framework includes multiple entity types. There is a corresponding relationship between each entity type and the entity name. The entity type in the entity framework can be updated according to the actual clinical research task. For example, assuming that a certain clinical research task includes the entity category of "microorganism", and the entity category framework does not have this entity category, then the entity category of "microorganism" can be added to the entity type framework. Assuming that a certain clinical research task does not usually involve the entity category of "drug name", and the entity category exists in the entity category framework, then the entity category of "drug name" can be deleted from the entity framework. In other words, the entity framework is extensible and can be dynamically adjusted according to the actual clinical research task requirements.
[0080] The entity categories included in this entity framework include standard entity types, attribute entity types and value entity types, and there is a certain correlation between these three entity types. The attribute entity type is used to characterize the characteristics of the standard entity type, that is, the entity name (attribute entity name) corresponding to the attribute entity type is equivalent to the attribute of the entity name (standard entity name) corresponding to the standard entity type; the value entity type is used to characterize the characteristics of the standard entity type, which refers to a specific manifestation of the attribute entity type, that is, the entity name (value entity name) corresponding to the value entity type is equivalent to the specific manifestation of the entity name (attribute entity name) corresponding to the attribute entity type, which can also be understood as the entity name (value entity name) corresponding to the value entity type is equivalent to the attribute of the entity name (standard entity name) corresponding to the standard entity type.
[0081] For example, assuming that the original training text information includes the content "the patient has a fever, and the peak temperature is 38°C", then according to the correspondence between the entity category and the entity name, the corresponding entity types "patient subject", "attribute entity type", and "value entity type" can be respectively labeled on the entity names "patient", "peak temperature", and "38°C". Of course, they can also be labeled in abbreviated ways, such as "suffer from", "belong to", and "value". The method of labeling other contents in the original training text information can refer to the above description, and finally a first training sample can be obtained. The first training sample can include the original training text information and the entity types corresponding to each entity name in the original training text information.
[0082] In an achievable embodiment, the original training text information can be segmented according to a dictionary matching module to obtain multiple entity names, and then each entity name is labeled to obtain a first training sample. The labeling process can refer to the above description, wherein the dictionary matching module includes an entity dictionary, and the entity dictionary includes multiple entity names of standardized terms. The original training text information is segmented according to the dictionary matching module, which can improve the accuracy of word segmentation and thereby improve the accuracy of the first training sample.
[0083] S302: Input the first training sample into the initial entity type recognition model to obtain the entity type recognition model through training.
[0084] Here, a scenario in which the initial entity type recognition model and the initial entity relationship extraction model are trained separately is used to illustrate. The original training text information in the first training sample obtained above is used as the input of the initial entity type recognition model, and the entity type corresponding to each entity name in the original training text information in the first training sample is used as the output of the initial entity type recognition model to train the initial entity type recognition model. When the training stop condition is met, the entity type recognition model can be trained.
[0085] S303: label the first training sample according to the correspondence between entity types to obtain a second training sample, wherein the correspondence between entity types includes: a pointing relationship between a subject entity type and an object entity type.
[0086] Among them, the corresponding relationship between entity types can be pre-stored in the entity relationship framework, which mainly includes the constraint table of the relationship and the direction table of the relationship. The entity types of the corresponding relationship are stored in the constraint table of the relationship. For example, there is a corresponding relationship between "patient subject" and "attribute entity type", so "patient subject" and "attribute entity type" can be associated and stored in the constraint table of the relationship. For different entity features that are not associated and stored in the constraint table of the relationship, it is considered that there is no corresponding relationship between them. The direction table of the relationship stores the pointing relationship between entity types. Continuing with the above example, the relationship between "patient subject" and "attribute entity type" starts from "patient subject" and points to "attribute entity type", that is, "patient subject" is the subject entity type, and "attribute entity type" is the object entity type. If the direction is opposite, "patient subject" is the object entity type, and "attribute entity type" is the subject entity type. The pointing relationship between entity types is unique, and there cannot be loops in the pointing relationship between all entity types. For example, a "patient subject" takes a certain "drug name", and this "drug name" is used to alleviate a certain "clinical manifestation". This "clinical manifestation" occurs in a certain "patient subject", and there is a loop in the pointing relationship between its entity types, that is, there cannot be loops in the pointing relationship between the entity types pre-set in the entity relationship framework.
[0087] According to the correspondence between entity types and the correspondence between entity types and entity names, the correspondence between entity names can be obtained. Based on the correspondence between entity names, the first training sample can be labeled, that is, the entity names with corresponding relationships in the original training text information of the first training sample can be associated. Since the correspondence between entity types includes attribute entity types, the correspondence between value entity types and standard entity types, and the correspondence between attribute entity types and value entity types, the attribute entity names, value entity names, and standard entity names in the original training text information of the first training sample can be associated, and finally the second training sample can be obtained. The second training sample may include the original training text information and the correspondence between the entity names in the original training text information, wherein the entity names may include standard entity names, attribute entity names, and value entity names.
[0088] S304: Input the second training sample into the initial entity relationship extraction model to obtain the entity relationship extraction model through training.
[0089] Among them, the original training text information in the second training sample obtained above and the entity types corresponding to the entity names in the original training text information are used as the input of the initial entity relationship extraction model, and the correspondence between the entity names corresponding to the entity types in the original training text information in the second training sample is used as the output of the initial entity relationship extraction model to train the initial entity relationship extraction model. When the training stop condition is met, the entity relationship extraction model can be trained.
[0090] To sum up, in the text information processing method provided by the present application, by adding attribute entity types and value entity types, the original training text information is annotated, so that not only the entity names corresponding to the standard entity types can be identified from the original training text information, but also the entity names corresponding to the attribute entity types and the entity names corresponding to the value entity types can be identified from the original training text information. In this way, the first training sample constructed can more comprehensively reflect the content contained in the original training text information. On the premise that the first training sample is comprehensive, the accuracy of the entity type recognition model trained using the first training sample will be improved, thereby improving the accuracy of the knowledge extraction model containing the entity type recognition model.
[0091] Optionally, the above-mentioned labeling the first training sample according to the correspondence between entity types to obtain the second training sample includes: labeling the first training sample according to the correspondence between entity types and the strength information between entity names corresponding to each entity type in the first training sample to obtain the second training sample.
[0092] Among them, the entity relationship framework mentioned above includes not only the constraint table of the relationship and the direction table of the relationship, but also the type of entity relationship. The type of relationship is equivalent to the strength information between the entity names corresponding to each entity type. Different entity names correspond to specific semantics. For example, assuming that there is a corresponding relationship between "patient subject" and "clinical manifestation", the semantic relationship between the corresponding entity names can be uniformly expressed as: the patient may have a certain clinical manifestation to a certain extent, and the type of relationship occurrence can refer to the strength of the clinical manifestation, which can include: no manifestation, mild manifestation, moderate manifestation, severe manifestation and other different degrees. For another example, there is a corresponding relationship between "treatment method" and "disease diagnosis", and the semantic relationship between the corresponding entity names can be uniformly expressed as: to what extent a certain treatment method can alleviate or treat a certain disease diagnosis, and "to what extent" can correspond to multiple levels of strength information.
[0093] After determining the entity names with corresponding relationships in the original training text information according to the corresponding relationship between entity types, the semantic strength information between the entity names with corresponding relationships can be identified. Specifically, the strength information can be divided into positive semantics, negative semantics and uncertain semantics. Continuing with the above example, assuming that the relationship between the entity names corresponding to "patient subject" and "clinical manifestation" in the original training text is: the patient has a certain clinical manifestation, which is a positive semantics, then the strength information between "patient subject" and "clinical manifestation" is positive. For mild manifestations or moderate manifestations, which can all be classified as positive semantics, "patient subject" and "clinical manifestation" are mapped to positive semantic relationships, but the real semantic meaning is: the patient has clinical manifestations, and the semantics between the entity names corresponding to each entity type can be clearly expressed by the representation of strength information. It should be noted that this application does not limit the degree of division, that is, the entity relationship framework is extensible, and the type of entity relationship can be dynamically adjusted according to the actual clinical research task requirements.
[0094] In a feasible embodiment, the strength information between the entity names corresponding to each entity type in the first training sample can be revised based on a regular expression, which can improve the accuracy of the second training sample.
[0095] It can be seen that using strength information to represent the type of entity relationship greatly simplifies the work of constructing the second training sample, while retaining the associated semantic relationship between entity names, which can improve the efficiency of training the initial entity relationship extraction model.
[0096] Figure 4 A flowchart of another text information processing method provided in an embodiment of the present application. Figure 4 As shown, optionally, the original training text information is annotated according to the correspondence between the entity type and the entity name to obtain the first training sample, including:
[0097] S401: annotate original training text information according to the correspondence between entity types and entity names to obtain an initial first training sample.
[0098] S402: If an entity name in the original training text information includes multiple sub-entity names, delete the entity types corresponding to the sub-entity names in the initial first training sample to obtain the first training sample.
[0099] The original training text information can be segmented according to the entity dictionary in the entity matching module mentioned above to obtain multiple entity names included in the original training text information, and then the original training text information can be labeled according to the correspondence between the entity type and the entity name to obtain the initial first training sample, wherein the specific labeling method can refer to the corresponding part description above and will not be explained here.
[0100] In an achievable embodiment, entity names of all granularities in the original training text information are labeled. If there is an overlapping relationship between the entity names, the corresponding entity type can be labeled for the entity name of each granularity. This labeling method can be called nested labeling. For example, assuming that there is an entity name "prostatic hyperplasia" in the original training text information, the entity name "prostatic hyperplasia" includes multiple sub-entity names, such as "prostate" and "hyperplasia", where the entity type corresponding to the entity name "prostatic hyperplasia" is "disease diagnosis", the entity type corresponding to the sub-entity name "prostate" is "body part", and the entity type corresponding to the sub-entity name "hyperplasia" is "clinical manifestations", then the entity type "disease diagnosis" corresponding to "prostatic hyperplasia" includes two entity types: "body part" and "clinical manifestations".
[0101] In another feasible embodiment, based on the longest match principle, the entity type labeled with the entity name with the longest characters can be retained, and the entity types labeled with the sub-entity names included in the entity name can be deleted. Continuing with the above example, the entity type corresponding to the entity name "prostate hyperplasia" can be retained as "disease diagnosis", and the entity type "body part" corresponding to the sub-entity name "prostate" and the entity type "clinical manifestation" corresponding to the sub-entity name "hyperplasia" can be deleted, thereby obtaining the first training sample; it is also possible to segment the original training text information according to the entity dictionary in the above-mentioned entity matching module to obtain multiple entity names included in the original training text information, first detect whether there is an overlapping relationship between the entity names, and if there is an overlapping relationship, only save the entity name corresponding to the longest character, and then obtain the first training sample based on the corresponding relationship between each entity name and the entity type.
[0102] The following mainly explains the process of applying the entity type recognition model and the entity relationship extraction model.
[0103] Figure 5 A flowchart of another text information processing method provided in an embodiment of the present application.
[0104] like Figure 5 As shown, the method may also include:
[0105] S501. Input the target text information into an entity type recognition model and output an entity set, which includes: entity names contained in the target text information and entity types corresponding to the entity names, and the entity types include standard entity types, attribute entity types and value entity types.
[0106] The target text information is a kind of medical text information, and its content is equivalent to unstructured data. Figure 2 , the target text information can be input into the entity type recognition model 201 in the knowledge extraction model 200. The entity type recognition model 201 can recognize the attribute entity name and value entity name in the target text information, that is, the entity set output by the entity type recognition model may include the entity name contained in the target text information. The entity name may include the entity name corresponding to the "standard entity type", such as "patient"; the entity name corresponding to the "attribute entity type", such as "thermal peak" and "size"; the entity name corresponding to the "value entity type", such as "38℃" and "0.8×0.6cm".
[0107] S502: Input the target text information and the entity set into the entity relationship extraction model, and output an entity name pair, wherein the entity name pair includes a subject entity name and an object entity name, and the subject entity name points to the object entity name.
[0108] Among them, the target text information and the entity set output by the entity type recognition model can be simultaneously input into the entity relationship extraction model in the knowledge extraction model. The entity relationship extraction model can first identify the entity name as the subject according to the target text information and the entity names contained in the target text information in the entity set and the entity types corresponding to the entity names, and then identify the entity name as the object. The entity names with corresponding relationships can be combined into an entity name pair. The entity name as the subject in the entity name pair can be called the subject entity name, and the entity name as the object can be called the object entity name. The subject-object entity name points to the object entity name, wherein the subject-object entity and the object entity name contain standard entity names, attribute entity names, and value entity names.
[0109] It can be seen that the entity type recognition model trained by the first training sample can identify various entity names contained in the target text information, such as standard entity names, attribute entity names, and value entity names. The entity relationship extraction model trained by the second training sample can then extract entity name pairs with existing relationships, that is, the pointing relationship between standard entity names, attribute entity names, and value entity names. In this way, the entity names contained in the target text information can be extracted more comprehensively, so that the final structured graph data is more matched with the unstructured target text information, or in other words, the final structured graph data can more comprehensively reflect the content in the unstructured target text information. Figure 6 A schematic diagram of converting unstructured target text information into structured graph data provided in an embodiment of the present application, wherein the unstructured target text information is specifically as follows Figure 6 As shown, the content in the circular box of the unstructured graph data is the standard entity name in the unstructured target text information, such as fever, cough, etc., the content in the diamond box is the attribute entity name in the unstructured target text information, such as heat peak, vomitus, etc., and the content in the square box is the value entity name in the unstructured target text information, such as 38.2℃, clear, etc.
[0110] Optionally, the target text information and the entity set are input into the entity relationship extraction model, and the entity name pairs are output, including:
[0111] The target text information and the entity set are input into the entity relationship extraction model, and the entity name pairs and the strength information between the entity names contained in the entity name pairs are output. The entity name pairs include a subject entity name and an object entity name, and the subject entity name points to the object entity name.
[0112] Among them, after the entity type recognition model outputs the entity set, the entity set and the target text information can be input into the entity relationship extraction model trained using the second training sample marked with the strength information between the entity names corresponding to the entity type. The entity relationship extraction model can output the entity name pairs with corresponding relationships contained in the target text information, as well as the strength information between the entity name pairs. The strength information can indicate the semantics between the entity name pairs.
[0113] Optionally, after the target text information and the entity set are input into the entity relationship extraction model and the entity name pairs are output, the method further includes: constructing a knowledge graph based on the entity name pairs, using the subject entity name and the customer entity name in the entity name pairs as nodes in the knowledge graph respectively, and using the relationship between the subject entity name and the object entity name as an edge in the knowledge graph.
[0114] Among them, the entity name pair can be called graph data, that is, the graph data includes entity names and the corresponding relationship between entity names, and the graph data can be stored in an associated database. The knowledge graph is composed of nodes and edges. The nodes in the knowledge graph are entity names identified by the entity type recognition model, that is, entity names in the graph data. Each node can also be associated with the entity type corresponding to the entity name and the location information of the entity name in the target text information. The edge in the knowledge graph is the entity name pair with a corresponding relationship extracted by the entity relationship extraction model. The direction of the edge points from the subject entity name in the entity name pair to the object entity name, that is, the corresponding relationship between the entity names in the graph data. In other words, after the entity relationship extraction model outputs multiple entity name pairs, they can be stored in the database in the form of graph data, and the subject entity name and object entity name contained in each entity name pair in the graph data are extracted from the database. Each subject entity name and each object entity name are used as nodes of the knowledge graph, and the relationship between each subject entity name and each object entity name can be used as an edge of the knowledge graph.
[0115] In another feasible embodiment, the strength information between the entity names contained in the entity name pair can also be added to the edge of the knowledge graph. Figure 7 As shown, Figure 7 A schematic diagram of the structure of a knowledge graph provided in an embodiment of the present application, from Figure 7 It can be seen that if the strength information between the patient and the fever is yes, it means that the patient has a fever, and the peak temperature is shown as 38.2℃.
[0116] Optionally, when displaying the knowledge graph, it can be displayed according to a preset display state. For example, the display size of each node shape in the knowledge graph can be determined according to the number of times each entity name appears in the entity pair. The more times the entity name appears in the entity pair, the larger the corresponding node shape is displayed. Figure 7 As described, the node shape corresponding to the entity name "patient" is displayed as the largest; entity names belonging to the same entity type can also be displayed in the same color display state. It should be noted that this application does not limit the specific display state of the knowledge graph.
[0117] Figure 8 A flowchart of another text information processing method provided in an embodiment of the present application is shown below. Figure 8 As shown, after constructing the knowledge graph according to the entity name pairs, the method further includes:
[0118] S801. According to the knowledge acquisition instruction input by the user, the corresponding entity name is obtained from the database storing the graph data corresponding to the knowledge graph.
[0119] The graph data corresponding to the knowledge graph is pre-stored in an associated database. After receiving the knowledge acquisition instruction input by the user, the graph data matching the knowledge acquisition instruction can be obtained from the database, and the graph data includes entity names. For example, the user can search for indicator information that meets the requirements in the database. Assuming that the knowledge acquisition instruction input by the user includes the content "what clinical manifestations did the patient have", the entity name corresponding to the clinical manifestation can be obtained from the knowledge graph.
[0120] S802. Display the entity name in the knowledge graph according to the display status corresponding to the entity name.
[0121] The knowledge graph can be displayed in a visual way on the interface, such as Figure 7 As described above, the display status of the entity name can be set in advance based on the entity type as a dimension. For example, the entity name corresponding to the "attribute entity type" can be represented by a yellow display parameter, that is, the related nodes are displayed in yellow; the entity name corresponding to the "value entity type" can be represented by a blue display parameter, that is, the related nodes are displayed in blue. This allows users to conveniently and intuitively understand the information they want to view.
[0122] Fig. 9 A flowchart of another text information processing method provided in an embodiment of the present application is shown below. Fig. 9 As shown, after the target text information is input into the entity type recognition model and the entity set is output, the method further includes:
[0123] S901. Perform statistical operations on an entity set to obtain statistical results, where the statistical results include: the frequency of occurrence of each entity name and / or the frequency of occurrence of each entity type in the entity set.
[0124] S902: Sort the contents belonging to the same dimension in the statistical results respectively to obtain sorting results.
[0125] Among them, after the entity type recognition model outputs the entity set, the entity set can be input into the entity consistency detection module. The entity consistency detection module can perform statistical analysis on the information in the entity set. Specifically, the number of times each entity name appears and the number of times each entity type appears in the entity set can be counted. For example, the entity set specifically includes 4 entity categories (body parts, clinical manifestations, attribute entity characteristics, and value entity characteristics), among which body parts and clinical manifestations belong to the same dimension, that is, they both belong to standard entity features. The number of times the body parts and clinical manifestations appear can be sorted to obtain the sorting results, so that users can understand the information in the entity set in real time.
[0126] Fig.10The following is a schematic diagram of the structure of a text information processing device provided in an embodiment of the present application. Fig.10 As shown, the device comprises:
[0127] The first annotation module 1001 is used to annotate the original training text information according to the correspondence between the entity type and the entity name to obtain a first training sample, wherein the entity type includes: a standard entity type, an attribute entity type, and a value entity type;
[0128] A first training module 1002 is used to input a first training sample into an initial entity type recognition model to obtain an entity type recognition model through training;
[0129] The second labeling module 1003 is used to label the first training sample according to the corresponding relationship between entity types to obtain a second training sample, wherein the corresponding relationship between entity types includes: a pointing relationship between a subject entity type and an object entity type;
[0130] The second training module 1004 is used to input the second training sample into the initial entity relationship extraction model to obtain the entity relationship extraction model through training.
[0131] Optionally, the second labeling module 1003 is specifically configured to label the first training sample according to the correspondence between entity types and the strength information between entity names corresponding to each entity type in the first training sample to obtain a second training sample.
[0132] Optionally, the first labeling module 1001 is specifically used to label the original training text information according to the correspondence between the entity type and the entity name to obtain an initial first training sample; if an entity name in the original training text information includes multiple sub-entity names, the entity type corresponding to each sub-entity name in the initial first training sample is deleted to obtain the first training sample.
[0133] Optionally, the device further comprises:
[0134] A first output module is used to input the target text information into the entity type recognition model and output an entity set, wherein the entity set includes: entity names contained in the target text information and entity types corresponding to the entity names, wherein the entity types include standard entity types, attribute entity types and value entity types;
[0135] The second output module is used to input the target text information and entity set into the entity relationship extraction model, and output entity name pairs, the entity name pairs include a subject entity name and an object entity name, and the subject entity name points to the object entity name.
[0136] Optionally, the second output module is specifically used to input the target text information and entity set into the entity relationship extraction model, and output entity name pairs and strength information between the entity names contained in the entity name pairs. The entity name pairs include a subject entity name and an object entity name, and the subject entity name points to the object entity name.
[0137] Optionally, the device further comprises:
[0138] The construction module is used to construct a knowledge graph based on entity name pairs, and use the subject entity name and the customer entity name in the entity name pair as nodes in the knowledge graph, and use the relationship between the subject entity name and the object entity name as an edge in the knowledge graph.
[0139] Optionally, the device further comprises:
[0140] An acquisition module is used to obtain the corresponding entity name from the database storing the graph data corresponding to the knowledge graph according to the knowledge acquisition instruction input by the user;
[0141] The display module is used to display the entity name in the knowledge graph according to the display status corresponding to the entity name.
[0142] Optionally, the device further comprises:
[0143] The statistical module is used to perform statistical operations on the entity set to obtain statistical results, which include: the frequency of occurrence of each entity name and / or the frequency of occurrence of each entity type in the entity set; sorting the contents belonging to the same dimension in the statistical results to obtain sorting results.
[0144] The above-mentioned device is used to execute the method provided by the aforementioned embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0145] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more microprocessors, or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0146] Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Fig.11 As shown, the electronic device may include: a processor 1101, a storage medium 1102 and a bus 1103, the storage medium 1102 stores machine-readable instructions executable by the processor 1101, when the electronic device is running, the processor 1101 communicates with the storage medium 1102 via the bus 1103, and the processor 1101 executes the machine-readable instructions to perform the steps of the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.
[0147] Optionally, the present application further provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the above method embodiment are executed.
[0148] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.
[0149] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0150] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0151] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.
[0152] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0153] The above description is only the preferred embodiment of the present application, and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application. It should be noted that similar numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. The above description is only the preferred embodiment of the present application, and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A text information processing method, characterized in that: The initial knowledge extraction model includes an initial entity type recognition model and an initial entity relationship extraction model. The method includes: According to the correspondence between entity types and entity names, the original training text information is annotated to obtain a first training sample, wherein the entity types include: a standard entity type, an attribute entity type, and a value entity type, wherein the attribute entity type and the value entity type are respectively used to characterize the features of the standard entity type, and the first training sample includes: the original training text information and the entity type corresponding to each entity name in the original training text information; Inputting the first training sample into the initial entity type recognition model to train and obtain an entity type recognition model; The first training sample is labeled according to the correspondence between entity types to obtain a second training sample, wherein the correspondence between entity types includes: a pointing relationship between a subject entity type and an object entity type, and the second training sample includes: the original training text information, and a correspondence between entity names corresponding to the entity types in the original training text information; Inputting the second training sample into the initial entity relationship extraction model to obtain an entity relationship extraction model through training; The step of labeling the first training sample according to the correspondence between entity types to obtain the second training sample includes: According to the correspondence between the entity types and the strength information between the entity names corresponding to the entity types in the first training sample, the first training sample is labeled to obtain a second training sample; The method further comprises: Input the target text information into the entity type recognition model, and output an entity set, wherein the entity set includes: an entity name contained in the target text information and an entity type corresponding to the entity name, wherein the entity type includes a standard entity type, an attribute entity type, and a value entity type; The target text information and the entity set are input into the entity relationship extraction model, and an entity name pair is output. The entity name pair includes a subject entity name and an object entity name, and the subject entity name points to the object entity name.
2. The method according to claim 1, characterized in that The method of labeling the original training text information according to the correspondence between the entity type and the entity name to obtain the first training sample includes: According to the correspondence between entity types and entity names, the original training text information is labeled to obtain an initial first training sample; If an entity name in the original training text information includes multiple sub-entity names, the entity types corresponding to the sub-entity names in the initial first training sample are deleted to obtain the first training sample.
3. The method according to claim 1, characterized in that The step of inputting the target text information and the entity set into the entity relationship extraction model and outputting entity name pairs comprises: The target text information and the entity set are input into the entity relationship extraction model, and the entity name pairs and the strength information between the entity names contained in the entity name pairs are output. The entity name pairs include a subject entity name and an object entity name, and the subject entity name points to the object entity name.
4. The method according to claim 3, characterized in that After inputting the target text information and the entity set into the entity relationship extraction model and outputting entity name pairs, the method further includes: According to the entity name pair, a knowledge graph is constructed, the subject entity name and the object entity name in the entity name pair are respectively used as nodes in the knowledge graph, and the relationship between the subject entity name and the object entity name is used as an edge in the knowledge graph.
5. The method according to claim 4, characterized in that After constructing the knowledge graph according to the entity name pairs, the method further includes: According to the knowledge acquisition instruction input by the user, the corresponding entity name is obtained from the database storing the graph data corresponding to the knowledge graph; The entity name is displayed in the knowledge graph according to the display status corresponding to the entity name.
6. The method according to claim 3, characterized in that After inputting the target text information into the entity type recognition model and outputting the entity set, the method further includes: Performing statistical operations on the entity set to obtain statistical results, wherein the statistical results include: the frequency of occurrence of each entity name and / or the frequency of occurrence of each entity type in the entity set; The contents belonging to the same dimension in the statistical results are sorted respectively to obtain sorting results.
7. A text information processing device, characterized in that: The initial knowledge extraction model includes an initial entity type recognition model and an initial entity relationship extraction model, and the device includes: A first annotation module is used to annotate the original training text information according to the correspondence between the entity type and the entity name to obtain a first training sample, wherein the entity type includes: a standard entity type, an attribute entity type and a value entity type, wherein the attribute entity type and the value entity type are respectively used to characterize the features of the standard entity type, and the first training sample includes: the original training text information and the entity type corresponding to each entity name in the original training text information; A first training module, used for inputting the first training sample into the initial entity type recognition model to train and obtain an entity type recognition model; A second annotation module is used to annotate the first training sample according to the correspondence between entity types to obtain a second training sample, wherein the correspondence between the entity types includes: a pointing relationship between a subject entity type and an object entity type, and the second training sample includes: the original training text information, and a correspondence between entity names corresponding to the entity types in the original training text information; A second training module, used for inputting the second training sample into the initial entity relationship extraction model to obtain an entity relationship extraction model through training; The second marking module is specifically used for: According to the correspondence between the entity types and the strength information between the entity names corresponding to the entity types in the first training sample, the first training sample is labeled to obtain a second training sample; The second training module is further used for: Input the target text information into the entity type recognition model, and output an entity set, wherein the entity set includes: an entity name contained in the target text information and an entity type corresponding to the entity name, wherein the entity type includes a standard entity type, an attribute entity type, and a value entity type; The target text information and the entity set are input into the entity relationship extraction model, and an entity name pair is output. The entity name pair includes a subject entity name and an object entity name, and the subject entity name points to the object entity name.
8. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the text information processing method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the steps of the text information processing method according to any one of claims 1 to 6 are executed.
