A method and device for entity recognition and information extraction

By using an entity recognition model based on text feature extraction in the field of microorganisms, combined with knowledge from single classification and multi-classification fields, the problem of overfitting and poor generalization ability of the information extraction model is solved, and more accurate entity recognition and relationships are achieved. Extraction.

CN114912452BActive Publication Date: 2024-10-29ALIBABA GROUP HOLDING LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110169790.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-07
Publication Date
2024-10-29
Estimated Expiration
2041-02-07

AI Technical Summary

Technical Problem

In the field of microorganisms, information extraction models are prone to overfitting, poor generalization ability, and low prediction accuracy due to insufficient annotated data.

Method used

Using text feature extraction encoders based on single classification fields and multi-classification fields, the entity recognition model is trained to identify entities and entity relationship data in the target text, and the self-attention mechanism is used to extract contextual features of words to reduce dependence on annotation data. .

Benefits of technology

It improves the prediction performance of the entity recognition model, enhances the accuracy of text feature extraction, reduces the requirements for the quantity and quality of annotated data, and is suitable for processing structured and unstructured data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114912452B_ABST
    Figure CN114912452B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a method and device for entity recognition and information extraction. The method includes: based on a first text corresponding to a single-category field and a second text corresponding to a multi-category field, training an encoder for text feature extraction in a single-category field; using the encoder to extract text features of words in a sample text of the single-category field; training an entity recognition model based on the entity recognition results marked by the sample text and the text features of the words in the sample text; based on the obtained entity recognition model, identifying words as entities in the target text of the single-category field and the relationship data between at least two entities. It does not rely on large-scale annotated data, and there are no special requirements for the quality of the annotated data. When the number of annotations of the first text is determined, the scheme of the present application can improve the accuracy of the encoder in extracting features.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and specifically to an entity recognition method and device, an information extraction method and device, a computer device, and a computer-readable storage medium. Background Art

[0002] Information Extraction (IE) is a structured processing of the information contained in the original text, and the output is a fixed-format information set. Information extraction has important application value in various professional fields. Take the field of microbiology as an example. The massive amount of data and literature in this field contains a lot of knowledge. If this knowledge can be structured, it will not only be beneficial to computer storage, but also facilitate downstream retrieval, question-answering and many other applications.

[0003] Pre-trained models are usually used to extract information from texts, but there is a problem of insufficient labeled data for samples collected in the microbial field, which makes the information extraction model prone to overfitting, poor generalization ability, and low prediction accuracy. Summary of the invention

[0004] In view of the above problems, the present application is proposed to provide an image processing method, an image search method, an object search method, a computer device, and a computer-readable storage medium that overcome the above problems or at least partially solve the above problems.

[0005] According to one aspect of the present application, there is provided an entity recognition method, comprising:

[0006] Based on the first text corresponding to the single-category field and the second text corresponding to the multi-category field, an encoder for text feature extraction in the single-category field is trained;

[0007] Extracting text features of words in sample text of the single-category domain using the encoder;

[0008] Training an entity recognition model according to entity recognition results of the sample text tags and text features of words in the sample text;

[0009] Based on the obtained entity recognition model, words as entities in the target text of the single-category field and relationship data between at least two entities are identified.

[0010] According to another aspect of the present application, a method for processing an entity recognition model is provided, comprising:

[0011] Based on the first text corresponding to the single-category field and the second text corresponding to the multi-category field, an encoder corresponding to the single-category field for text feature extraction is trained;

[0012] Extracting text features of words in sample text of the single-category domain using the encoder;

[0013] An entity recognition model is trained according to the entity recognition results of the sample text tags and the text features of the words in the sample text. The entity recognition model is used to recognize the words as entities in the target text of the single-category field and the relationship data between at least two entities.

[0014] According to another aspect of the present application, there is provided an information extraction method, comprising:

[0015] Get the target text;

[0016] Based on the entity recognition model, words as entities in the target text of the single-category domain and relationship data between at least two entities are identified; text features of words in the sample text based on which the entity recognition model is trained are extracted using an encoder, and the encoder is trained based on a first text corresponding to the single-category domain and a second text corresponding to the multi-category domain;

[0017] Organizing the entities identified corresponding to the text segment and the relationship data between the entities into structured data as the information extraction result corresponding to the text segment;

[0018] According to the positions of the multiple text segments, the information extraction results corresponding to the text segments are spliced ​​into the information extraction result corresponding to the target text.

[0019] According to another aspect of the present application, there is provided an information retrieval method, comprising:

[0020] receiving a search request for at least one target entity;

[0021] Retrieving the relationship data between the target entity and other entities; wherein entities in multiple texts in a single-category domain and relationship data between at least two entities are preset based on entity recognition model recognition, and the text features of words in the sample text based on which the entity recognition model is trained are extracted using an encoder, and the encoder is trained based on a first text corresponding to the single-category domain and a second text corresponding to the multi-category domain;

[0022] The relationship data is provided as a search result.

[0023] According to another aspect of the present application, a method for identifying microbial information is provided, comprising:

[0024] Based on the abstracts of professional articles corresponding to the microbiology field and the second text corresponding to the multi-classification field, an encoder for text feature extraction corresponding to the microbiology field is trained;

[0025] Extracting text features of words in sample text in the microbiology field using the encoder;

[0026] training a microbial information recognition model according to the microbial information recognition result of the sample text mark and the text features of the words in the sample text;

[0027] Based on the obtained microbial information recognition model, the microbial information in the target text in the microbial field and the relationship data between at least two types of microbial information are identified.

[0028] According to another aspect of the present application, a method for processing a microorganism identification model is provided, comprising:

[0029] Based on the abstracts of professional articles corresponding to the microbiology field and the second text corresponding to the multi-classification field, an encoder for text feature extraction corresponding to the microbiology field is trained;

[0030] Extracting text features of words in sample text in the microbiology field using the encoder;

[0031] According to the microbial information recognition result of the sample text mark and the text features of the words in the sample text, a microbial information recognition model is trained, wherein the microbial information recognition model is used to recognize the microbial information in the target text in the microbial field and the relationship data between at least two microbial information,

[0032] According to another aspect of the present application, a method for extracting information from a microbial text is provided, comprising:

[0033] Get the target text;

[0034] Based on the obtained microbial information recognition model, the microbial information in the target text in the microbial field and the relationship data between at least two types of microbial information are identified; the text features of the words in the sample text based on which the microbial information recognition model is trained are extracted using an encoder, and the encoder is trained based on the abstracts of professional articles corresponding to the microbial field and the second text corresponding to the multi-classification field;

[0035] Organizing the microbial information identified corresponding to the text segment and the relationship data between the microbial information into structured data as the information extraction result corresponding to the text segment;

[0036] According to the positions of the multiple text segments, the information extraction results corresponding to the text segments are spliced ​​into the information extraction result corresponding to the target text.

[0037] According to another aspect of the present application, a method for constructing a microbial information map is provided, comprising:

[0038] Get multiple target texts;

[0039] Based on the microbial information recognition model, the microbial information in the target text of the microbial field and the relationship data between at least two kinds of microbial information are identified; the text features of the words in the sample text based on which the microbial information recognition model is trained are extracted using an encoder, and the encoder is trained based on the abstracts of professional articles corresponding to the microbial field and the second text corresponding to the multi-classification field;

[0040] According to the hierarchical structure relationship between the microbial information identified from the plurality of target texts, the microbial information and the relationship data between at least two types of microbial information are constructed into a microbial information map.

[0041] According to another aspect of the present application, a microbial information retrieval method is provided, comprising:

[0042] receiving a search request for at least one target microorganism information;

[0043] Retrieve the relationship data between the target microorganism information and other microorganism information; wherein the microorganism information in multiple texts in the microorganism field and the relationship data between at least two types of microorganism information identified based on the entity recognition model are preset, and the text features of the words in the sample text based on which the microorganism information recognition model is trained are extracted using an encoder, and the encoder is trained based on the abstracts of professional articles corresponding to the microorganism field and the second text corresponding to the multi-classification field;

[0044] The relationship data is provided as a search result.

[0045] According to another aspect of the present application, a method for interacting with microbial information is provided, comprising:

[0046] receiving questions including target microorganism information;

[0047] Retrieve the relationship data between the target microorganism information and other microorganism information; wherein, microorganism information in multiple texts in the microorganism field and relationship data between at least two types of microorganism information identified based on the entity recognition model are preset, and the text features of words in the sample text based on which the microorganism information recognition model is trained are extracted using an encoder, and the encoder is trained based on abstracts of professional articles corresponding to the microorganism field and a second text corresponding to a multi-classification field;

[0048] Organizing the relationship data between the target microorganism information and other microorganism information into a question answer;

[0049] Provide answers to the questions.

[0050] According to another aspect of the present application, there is provided an electronic device, comprising: a processor; and

[0051] A memory having executable codes stored thereon, which, when executed, causes the processor to execute any of the methods described above.

[0052] According to another aspect of the present application, one or more machine-readable media are provided, on which executable codes are stored. When the executable codes are executed, a processor is enabled to execute any of the above-described methods.

[0053] According to the embodiment of the present application, a first text corresponding to a single classification field and a second text corresponding to a multi-classification field are obtained in advance, and an encoder is trained based on the two texts in advance, and the encoder is used to extract the text features of the words in the sample text of the single classification field, and the entity recognition model is further trained based on the entity recognition results marked by the sample text and the text features of the words in the sample text. Based on the obtained entity recognition model, the entity in the target text of the single classification field and the relationship data between at least two entities can be identified. Since the present application combines the second text with the first text for encoder training, the feature extraction of the second text can be transferred to the training of the encoder, thereby reducing the requirements for the number of annotations of the first text, does not rely on large-scale annotation data, and has no special requirements for the quality of the annotation data. That is to say, based on the scheme design of text feature migration from the multi-classification field to the single classification field in the present application, only a small amount of annotated first text can be used for encoder training, and the ability to extract text features in the single classification field can be obtained. It can be understood that when the number of annotations of the first text is determined, the scheme of the present application can improve the accuracy of the encoder in extracting features, and the entity recognition model further trained accordingly can improve the prediction performance of the entity recognition result.

[0054] This application combines the self-attention mechanism when extracting text features of sample text, that is, paying attention to the data correlation within the text, and extracting the contextual association features of the words in the sample text, so that the text characteristics of the words can be characterized in combination with the text. The encoder has stronger expressive ability, and the extracted text features are more representative than the text features extracted by general encoders, thereby enabling the entity recognition model trained based on text features to perform entity recognition more accurately.

[0055] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0057] Figure 1 A specific example of an entity recognition method of the present application is shown;

[0058] Figure 2 A flow chart of an entity recognition method according to Embodiment 1 of the present application is shown;

[0059] Figure 3 A flowchart of a method for processing an entity recognition model according to Embodiment 2 of the present application is shown;

[0060] Figure 4 A flowchart of an information extraction method according to Embodiment 3 of the present application is shown;

[0061] Figure 5 A flowchart of an information retrieval method according to Embodiment 4 of the present application is shown;

[0062] Figure 6 A flowchart of a method for identifying microbial information according to Embodiment 5 of the present application is shown;

[0063] Figure 7 A flow chart showing a method for processing a microorganism identification model according to Embodiment 6 of the present application is shown;

[0064] Figure 8 A flow chart showing a method for extracting information from microbial text according to Embodiment 7 of the present application is shown;

[0065] Fig. 9 A flow chart showing a method for constructing a microbial information map according to Embodiment 8 of the present application is shown;

[0066] Fig.10 A flowchart of a microbial information retrieval method according to Embodiment 9 of the present application is shown;

[0067] Fig.11 A flow chart showing an interactive method of microbial information according to Embodiment 10 of the present application is shown;

[0068] Fig.12 A structural block diagram of an entity identification device according to Embodiment 11 of the present application is shown;

[0069] Fig.13A structural block diagram of a processing device for an entity recognition model according to Embodiment 12 of the present application is shown;

[0070] Fig.14 A structural block diagram of an information extraction device according to Embodiment 13 of the present application is shown;

[0071] Fig.15 A structural block diagram of an information retrieval device according to Embodiment 14 of the present application is shown;

[0072] Fig.16 A structural block diagram of a device for identifying microorganism information according to Embodiment 15 of the present application is shown;

[0073] Fig.17 A structural block diagram of a processing device for a microorganism identification model according to Embodiment 16 of the present application is shown;

[0074] Fig.18 A structural block diagram of a device for extracting information from microbial text according to Embodiment 17 of the present application is shown;

[0075] Fig.19 A structural block diagram of a device for constructing a microbial information map according to Embodiment 18 of the present application is shown;

[0076] Fig. 20 A structural block diagram of a microorganism information retrieval device according to Embodiment 19 of the present application is shown;

[0077] Fig.21 A structural block diagram of an interactive device for microbial information according to Embodiment 20 of the present application is shown;

[0078] Fig. 22 An exemplary system is shown that can be used to implement the various embodiments described in this disclosure. DETAILED DESCRIPTION

[0079] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0080] The embodiments of the present application provide entity recognition schemes and application schemes of entity recognition in information extraction, model processing, information retrieval, etc. Among them, entities can also be called named entities, and entity recognition is to identify the boundaries and categories of entities. Taking entity recognition in news information as an example, structured information about target information is extracted from unstructured texts such as newspapers, such as names of people, places, names of organizations, time and date, monetary amounts, percentages and other digital expressions. Taking entity recognition in the field of microorganisms as an example, entities can be microorganisms, microbial communities, or other attributes related to microorganisms such as microbial traits and microbial aggregation locations.

[0081] Entity recognition also includes the recognition of relationship data between entities. Relationship data is used to express the connection between entities in the text. For example, the sentence "Changsha is Hunan's fast-growing provincial capital" includes two entities "Changsha" and "Hunan". The relationship data between the two is "capital". The predefined relationship data can be used to express "contains". The result of entity recognition can be expressed in a set style. For example, the above can be expressed as location-location-contains (i.e., location-location-contains relationship). In specific entity recognition, the types of entities to be identified and the relationship data between entities can be defined according to actual needs, and this application does not limit this.

[0082] The object of entity recognition is pre-collected text, which can be structured data, semi-structured data or unstructured data. Structured data and semi-structured data have certain format information, and unstructured data mainly refers to free text (Free Text) with no structural information at all. The entity recognition involved in this application can be performed on any text, or it can be a collection of one or more of the above texts.

[0083] In an embodiment of the present application, an entity recognition model is used to identify entities and entity relationship data in a target text of a single classification field. Taking the microbiology field as an example, an entity recognition model for the microbiology field can be trained to perform entity recognition and extract entity relationship data for papers in the microbiology field.

[0084] The entity recognition model is trained based on the entity recognition results of the sample tags and the text features of the words in the sample text. The text features of the words in the sample text can be obtained based on the trained encoder, which corresponds to the text feature extraction of the single classification field. The text features are used to represent the words in the text, which can be features corresponding to one or more dimensions and can be represented in the form of vectors.

[0085] In the training of the encoder, the embodiment of the present application uses a first text corresponding to a single classification field and a second text corresponding to a multi-classification field. A single classification field is also a single classification field (application field, such as the microbiology field). The first text can be a textbook, professional journal, paper, patent document, reference book, web page content, etc., which is related to the single classification field, or can be a text from the relevant web page content of the single classification field, or a database of the single classification field.

[0086] The multi-classification domain is a plurality of classification domains (a plurality of application domains), and the second text corresponds to the multi-classification domain, including the above-mentioned single classification domain and at least one other single classification domain, for example, it can be derived from a large text corpus such as BookCorpus (book corpus), English Wikipedia (Wikipedia), some public databases, etc. The above text can be obtained by crawling the web page by a web crawler or accessing the database as the training corpus of the encoder.

[0087] By combining the first text and the second text for encoder training, the knowledge or patterns learned in a general field or task can be applied to different but related fields, that is, the feature extraction of the second text can be transferred to the training of the encoder, thereby reducing the requirements for the number of annotations of the first text, not relying on large-scale annotation data, and there are no special requirements for the quality of the annotation data. In other words, based on the design of the scheme for migrating text features from a multi-classification field to a single-classification field in this application, only a small amount of annotated first text can be used for encoder training to obtain the ability to extract text features in a single-classification field. It can be understood that when the number of annotations of the first text is determined, the scheme of the present application can improve the accuracy of the encoder in extracting features, and the entity recognition model further trained on this basis can improve the predictive performance of the entity recognition results.

[0088] The words involved in this application can be a single word or a phrase constituting an entity name, that is, it can include multiple words.

[0089] The solution of the present application can be applied to entity recognition in various scenarios, for example, it can be applied to text recognition in the field of microbiology and medicine, and can be further applied to text information extraction, construction of databases or knowledge graphs, retrieval or question-and-answer based on the extraction results, and other applications in the field; for example, a general knowledge graph in the medical field can be extracted, covering various diseases, drugs, medical service processes and other knowledge in the field, and on this basis, knowledge retrieval, knowledge question-and-answer services can be built to provide answers to grassroots doctors or patients through interactive services. The question-and-answer service can be integrated into various online drug shopping, takeout, doctor question-and-answer applications, and compared with retrieval applications, it can directly return the answer instead of returning the web page path, greatly improving the efficiency of acquiring knowledge.

[0090] In an optional embodiment, the first text corresponding to the single classification field may be captured by a web crawler, or the first text corresponding to the single classification field may be acquired by accessing a network database.

[0091] In an optional embodiment, the first text may include the abstract content of professional articles published on professional websites in a single-classification field. When crawling the first text corresponding to the single-classification field through a web crawler, the professional articles published on professional websites in the single-classification field may be crawled through the web crawler, and the abstract content of the professional articles may be extracted as the first text in the single-classification field. For example, for the field of microorganisms, the abstract of the PubMed (public medical) website may be obtained. The website provides biomedical paper search and abstract retrieval, and the web crawler may be called to crawl the paper abstracts on the website.

[0092] The first text and the second text may be obtained or mixed as training corpus for the encoder and preprocessed, including keyword screening, or removing content in the first text that is irrelevant to the single classification field.

[0093] The first text and the second text may be in a standoff format, which may speed up subsequent processing.

[0094] The encoder of the embodiment of the present application may include a bidirectional encoder Bert (Bidirectional Encoder Representations from Transformers), which adopts the self-attention mechanism of the bidirectional Transformer in its implementation, and performs self-attention in both directions, that is, the context information can be fully utilized in the encoding, and the data relevance of the text content is focused on. Accordingly, when the encoder is used to extract the text features of words in the sample text of a single classification field, the contextual association features of the words in the sample text can be extracted, so that the text characteristics of the words can be characterized in combination with the text. The encoder has stronger expressive ability, and the extracted text features are more representative than those extracted by a general encoder, thereby enabling the entity recognition model trained based on text features to perform entity recognition more accurately.

[0095] The above-mentioned Bert encoder can perform two pre-training tasks during training. The first task is to randomly deduct a certain proportion of the masked words, replace them with a mask, and use the encoder to predict the masked words. The second task is to configure the training samples into upper and lower sentences. The lower and upper sentences of the samples with a set proportion are real, and the lower and upper sentences of the remaining samples are irrelevant. The encoder is used to predict the relationship between the two sentences. In addition, the two training tasks can each have a loss function, and the two loss functions are superimposed as the total loss function for optimization.

[0096] The above-mentioned Bert encoder is trained to perform the corresponding language recognition task. Its basic architecture includes an encoding layer composed of multiple encoding components and a decoding layer composed of multiple decoding components. Before the encoding layer, it also includes a selfattention layer and a feedforward neural network layer (feed forward) for focusing on other words in the text before encoding. In practical applications, it can also include an embedding layer, one or more layer norm layers, etc. The embodiment of the present application uses the output result of the encoding layer of the bidirectional encoder. When using the bidirectional encoder to extract the text features of the words in the sample text of the single classification field, the sample text can be input into the bidirectional encoder and the language recognition task corresponding to the bidirectional encoder can be performed. The hidden state data of the words in the sample text in the last layer of the bidirectional encoder is further extracted as the text features corresponding to the words. The text features here are the context features of the words in the sentence after transfer learning on the first text and the second text.

[0097] In one embodiment of the present application, the text features may include at least one of punctuation features, case features, part-of-speech tagging features, and syntactic dependency features. Correspondingly, at least one of the punctuation features, case features, part-of-speech tagging features, and syntactic dependency features of words in sample texts in a single classification field may also be extracted. The punctuation feature indicates whether the word contains the punctuation mark, the case feature describes whether the word starts with an uppercase letter, the part-of-speech tagging feature represents the part of speech of the word, and is the output of the part-of-speech tagging tool on the sentence, and the syntactic dependency feature represents the syntax of the sentence in which the word is located, and is the output of the syntactic analysis tool on the sentence. The above-mentioned fine-grained text features have been experimentally tested to be better adapted to entity recognition and entity relationship extraction tasks in various fields. Of course, in actual applications, the type of text features of words can be set according to demand.

[0098] In the embodiment of the present application, the entity recognition model is divided into an entity recognition layer and a relationship extraction layer, the entity recognition layer is used to recognize words as entities in the target text, and the relationship extraction layer is used to recognize the relationship data between entities. When identifying words as entities in the target text of a single classification field and the relationship data between at least two entities based on the obtained entity recognition model, the words as entities in the target text of a single classification field can be identified based on the entity recognition layer of the entity recognition model; the relationship data between at least two entities can be identified based on the relationship extraction layer of the entity recognition model and the association information of the entities in multiple dimensions.

[0099] The above-mentioned entity recognition model can be implemented using one of multiple types of models, for example, it can be a hidden Markov model (HMM), a maximum entropy hidden Markov model, a bidirectional long short-term memory network (Bi-LSTM), etc. The specific model type can be selected according to actual needs, and this application does not impose any restrictions on this.

[0100] In an optional embodiment, a conditional random field can be used to train the entity recognition layer, and a neural network model (such as a recurrent neural network RNN, a convolutional neural network CNN, etc.) with a multi-head attention mechanism (also known as a multi-head selection mechanism) can be used to train the relationship extraction layer, wherein the log likelihood maximum likelihood estimation can be used to predict the results.

[0101] In the use of hidden Markov model, due to its output independence assumption, it cannot consider the features of the context, which limits the selection of features. Although the improved maximum entropy hidden Markov model solves this problem and can select features arbitrarily, it must be normalized at each node, so it can only find local extreme values. It also brings the problem of labeling bias, that is, all situations that do not appear in the training corpus are ignored. The conditional random field does not normalize at each node, but all features are globally normalized, so the global extreme value can be obtained. Using conditional random fields to train the entity recognition layer can make the entity recognition better combined with the global features of the target text, making the entity recognition results more accurate.

[0102] Compared with the single-head attention mechanism, the multi-head attention mechanism can focus on information in multiple dimensions, and different heads focus on different dimensions. Using the neural network model with the multi-head attention mechanism to train the relationship extraction layer can enable the relationship extraction to combine the features of multiple dimensions of the target text, making the recognition of entity relationships more accurate.

[0103] When performing entity recognition based on conditional random fields, the features of each word can be input into the softmax classifier. The classification set of the classifier is the label set of the entity type. If the i-th word w in the sentence i The label prediction result is use To represent the transition probability score of the entire sequence, it can be defined as follows:

[0104]

[0105] in, Represents y i-1 to y i The transition probability.

[0106] The classification probability E can be defined as:

[0107]

[0108] Conditional random field score for the entire sequence It can be defined as follows:

[0109]

[0110] The conditional probability P can be defined as follows:

[0111]

[0112] When using a neural network model with a multi-head attention mechanism for entity relationship recognition, the features extracted from the entity are used as input to predict the word w i A microbial entity ending in the word w j The score of the entity existence relation type r at the end is:

[0113] R i,j,r =σ(W r f(H r *Vi+T r *Vj+b r ))

[0114] Among them, W r , H r 、T r , b r is the parameter matrix associated with a specific relation r. f is the activation function RELU, which normalizes the score to probability through σ. Vi represents the feature vector extracted by the neural network for the i-th word in the sentence, and Vj represents the feature vector extracted by the neural network for the j-th word in the sentence.

[0115] When training the above-mentioned entity recognition model as a whole, a multi-task learning method can be adopted, that is, the entity recognition model is divided into multiple layers for parallel training. Taking the division into entity recognition layer and relationship extraction layer as an example, the entity recognition layer and the relationship extraction layer are learned respectively, and finally a mathematical model of the overall complex problem of the entity recognition model is established through the learning results of the entity recognition layer and the relationship extraction layer. Multi-task learning allows multiple tasks to be learned in parallel while their results can influence each other, and utilizes the relevant information between tasks. Through joint learning, both the differences and the connections between tasks are taken into account, so that the trained model takes into account the training accuracy requirements of the entity recognition layer and the relationship extraction layer respectively, and is suitable for model training in a variety of complex application scenarios.

[0116] Correspondingly, in the training of the above-mentioned entity recognition model, each layer is respectively configured with a corresponding loss function, and further according to the loss function determined for each layer, the loss function of the entire entity recognition model is obtained comprehensively, and all parameters of the model are updated using the loss function. Specifically, the loss function of each layer can be summed up as the loss function of the entity recognition model, or the loss function of each layer can be weighted with the corresponding weight coefficient to determine the loss function of the entity recognition model. Taking the example of an entity recognition model including an entity recognition layer for entity recognition and a relationship extraction layer for relationship data recognition, the comprehensive loss function of the entity recognition model can be determined according to the first loss function and the second loss function, and the entity recognition model can be further iteratively trained according to the comprehensive loss function.

[0117] As an example, the first loss function of the entity recognition layer can be defined as follows:

[0118] L ner = -logP(y S |S)

[0119] The second loss function of the relation extraction layer can be defined as follows:

[0120]

[0121] The comprehensive loss function of the entity recognition model can be L = L ner +L rel .

[0122] In an embodiment of the present application, the entities identified according to the above scheme and the relationship data between entities can further establish an entity relationship database for a single classification field. In the entity relationship database, entities and the relationship data between at least two entities are associated and stored to facilitate subsequent data retrieval based on entity or relationship data.

[0123] Accordingly, a search request for at least one target entity may be received through a client or a web page portal; relationship data between the target entity and other entities may be retrieved from an entity relationship database, and the relationship data may be provided as a search result.

[0124] In an optional embodiment, the first text of the target field can also be stored in an entity relationship database, that is, the entity, the relationship data between at least two entities, and the first text of a single classification field are stored in an associated manner in the entity relationship database, and the first text corresponding to the target entity can be provided as a retrieval result at the same time during retrieval.

[0125] The information extraction results consisting of the above-identified entities and the relationship data between entities can be expressed in the form of triples, that is, triples of entity-entity-relationship data. Taking the microbial field as an example, the extracted triples related to microorganisms can be microorganisms-attributes-attribute values. The attributes of microorganisms can be the characteristics information of microorganisms, gathering places, etc. For example, if the text segment is "the gathering places of Escherichia coli include the surrounding areas of sewers", the extracted triples can be Escherichia coli-gathering places-surrounding areas of sewers.

[0126] In actual situations, of course, it can also be a multi-tuple consisting of more than two entities and the relationship data between entities, and this application does not impose any restrictions on this.

[0127] In an optional embodiment of the present application, the above-mentioned structured processing can be performed on the extracted relationship data between entities. Specifically, the relationship data between entities and entities identified corresponding to the text fragment can be organized into structured data as the information extraction result corresponding to the text fragment. The text fragment can be a sentence or a paragraph composed of several sentences. Further, according to the positions of multiple text fragments, the information extraction results corresponding to the text fragments can be spliced ​​into the information extraction results corresponding to the target text. For example, the information extraction results of the text fragments can be directly spliced ​​in sequence according to the order of the text fragments to obtain the information extraction results of the target text.

[0128] The information extraction results of text fragments can be expressed in a sequence-based annotation method, using the code BIO to represent the beginning of the entity, the inside of the entity, and the outside of the entity. For example, Hunan's fast-growing provincial capital Changsha, there are two entities and the relationship data between them Hunan, Changsha, contains, which can be expressed as B-LOC-contains OOO B-LOC-contains using a sequence representation, where B represents the beginning, loc is the entity category place name, contains is the inclusion relationship, and three Os indicate that the word has no relationship with the entity.

[0129] In practical applications, an entity in a text fragment may have relationship data with another entity or with multiple entities. The above sequence labeling method cannot handle the situation where there are overlapping entity relationships. For example, in the sentence "Hunan's fast-growing provincial capital, Changsha is the birthplace of Zeng Guofan", there are two triples: Hunan, Changsha, contains, and Zeng Guofan, Changsha, place_of_birth. In this case, the above sequence labeling method cannot be used to describe the text fragment.

[0130] In an optional embodiment of the present application, for the case where the text segment corresponding to the entity corresponds to the relationship data between one entity and multiple entities, when the entity corresponding to the text segment and the relationship data between the entities are organized as structured data, a multidimensional matrix of the first entity, the second entity, and the relationship data can be constructed as structured data, thereby effectively solving the information representation problem in the case of overlapping entities. For example, in the multidimensional matrix output for the head entity (the first entity), the first dimension is the position of the tail entity (the following entity), and the second dimension is the relationship data between the head entity and the tail entity.

[0131] The above-mentioned structured data representation method allows the model to use a set of codes to express the predicted medical entities and the relationship data between medical entities when outputting entities and the relationship data between entities, which is suitable for situations with overlapping entities.

[0132] It should be noted that the present application scheme can be implemented as an application, service, instance, software-shaped functional module, virtual machine (VM) or container, or can also be implemented as a hardware device (such as a server or terminal device) or hardware chip (such as CPU, GPU or FPGA) with image processing function. It can be implemented by the software party or the platform party that provides computing or storage resources. Taking the platform providing SaaS software as a service (Software-as-a-Service) as an example, the platform can use its own computing resources to provide encoder training, feature extraction of text samples, training of entity recognition models, and identification of entities and entity relationship data. The specific application architecture can be built according to service requirements. For example, the platform can provide services based on text training entity recognition models, services based on submitted target texts, services for information extraction based on multiple texts and creating databases or knowledge graphs, and services based on retrieval requests for target entities to software parties or individuals using platform resources. The corresponding embodiments are embodied in the following embodiments.

[0133] refer to Figure 1 An example of an entity recognition method of the present application is given. As shown in the figure, a second text is collected from an encyclopedia website or a book corpus, and a paper abstract is collected from a microbiology website as the first text. The feature extraction of the second text is transferred to the training of the encoder in the field of microbiology, and the training is obtained by a transformer-based Bert bidirectional encoder. As shown in the figure, after the sentence sentence is input into the Bert encoder, it enters the embedding layer, the self attention layer, the layer norm layer, the feed forward neural network layer, and the layer norm layer. The hidden state data output by the last norm layer is used as the text feature of the word, which can include context-related features, punctuation features, capitalization features, part-of-speech tagging features, syntactic dependency features, etc. Inputting sample text into the encoder can further train the entity recognition model, which includes at least an entity recognition layer and a relationship extraction layer. The entity recognition layer is trained using conditional random fields (using soft max for classification and iterative training based on the loss function through the CRF loss layer), and the relationship extraction layer is trained using a neural network model with a multi-head attention mechanism (using loglikelihood maximum likelihood estimation for result prediction). The trained model can be used for entity recognition of the target text and extraction of entity relationships.

[0134] Reference Figure 2, shows a flow chart of an entity recognition method according to Embodiment 1 of the present application, the method may specifically include the following steps:

[0135] Step 101, based on a first text corresponding to a single-category field and a second text corresponding to a multi-category field, an encoder for extracting text features corresponding to the single-category field is trained;

[0136] Step 102, using the encoder to extract text features of words in the sample text of the single-category field;

[0137] Step 103, training an entity recognition model according to the entity recognition results of the sample text tags and the text features of the words in the sample text;

[0138] Step 104 : Based on the obtained entity recognition model, identify words as entities in the target text of the single-category field and relationship data between at least two entities.

[0139] According to the embodiment of the present application, a first text corresponding to a single classification field and a second text corresponding to a multi-classification field are obtained in advance, and an encoder is trained based on the two texts in advance, and the encoder is used to extract the text features of the words in the sample text of the single classification field, and the entity recognition model is further trained based on the entity recognition results marked by the sample text and the text features of the words in the sample text. Based on the obtained entity recognition model, the entity in the target text of the single classification field and the relationship data between at least two entities can be identified. Since the present application combines the second text with the first text for encoder training, the feature extraction of the second text can be transferred to the training of the encoder, thereby reducing the requirements for the number of annotations of the first text, does not rely on large-scale annotation data, and has no special requirements for the quality of the annotation data. That is to say, based on the scheme design of text feature migration from the multi-classification field to the single classification field in the present application, only a small amount of annotated first text can be used for encoder training, and the ability to extract text features in the single classification field can be obtained. It can be understood that when the number of annotations of the first text is determined, the scheme of the present application can improve the accuracy of the encoder in extracting features, and the entity recognition model further trained accordingly can improve the prediction performance of the entity recognition result.

[0140] In an optional embodiment, the method further includes:

[0141] The first text corresponding to the single classification field is captured by a web crawler, or the first text corresponding to the single classification field is acquired by accessing a web database.

[0142] The method of crawling the first text corresponding to the single-category field by a web crawler includes:

[0143] Professional articles published on professional websites in a single-category field are captured by a web crawler, and abstract contents of the professional articles are extracted as the first text in the single-category field.

[0144] In an optional embodiment, the method further includes:

[0145] The content irrelevant to the single classification field in the first text is removed.

[0146] In an optional embodiment, the encoder includes a bidirectional encoder, and the extracting text features of words in the sample text of the single-category field using the encoder includes:

[0147] Contextual features of words in the sample text are extracted.

[0148] This application combines the self-attention mechanism when extracting text features of sample text, that is, paying attention to the data correlation within the text, and extracting the contextual association features of the words in the sample text, so that the text characteristics of the words can be characterized in combination with the text. The encoder has stronger expressive ability, and the extracted text features are more representative than the text features extracted by general encoders, thereby enabling the entity recognition model trained based on text features to perform entity recognition more accurately.

[0149] In an optional embodiment, the extracting text features of words in the sample text of the single-category field using the encoder includes:

[0150] Inputting the sample text into the bidirectional encoder and performing a language recognition task corresponding to the bidirectional encoder;

[0151] The hidden state data of the words in the sample text at the last layer of the bidirectional encoder are extracted as the text features corresponding to the words.

[0152] In an optional embodiment, the method further includes:

[0153] At least one text feature of the words in the sample text of the single-category field is extracted, including punctuation features, uppercase and lowercase features, part-of-speech tagging features, and syntactic dependency features.

[0154] In an optional embodiment, the training of the entity recognition model according to the entity recognition result of the sample text mark and the text features of the words in the sample text includes:

[0155] Determine a comprehensive loss function of the entity recognition model according to a first loss function corresponding to an entity recognition layer for entity recognition and a second loss function corresponding to a relationship extraction layer for relationship data recognition;

[0156] The entity recognition model is iteratively trained according to the comprehensive loss function.

[0157] In an optional embodiment, the identifying, based on the obtained entity recognition model, words as entities in the target text of the single-category field and relationship data between at least two entities includes:

[0158] Based on the entity recognition layer of the entity recognition model, identifying words as entities in the target text of the single-category domain;

[0159] Based on the relationship extraction layer of the entity recognition model and the association information of the entities in multiple dimensions, the relationship data between the at least two entities are identified.

[0160] In an optional embodiment, the method further includes:

[0161] An entity relationship database of the single-category domain is established according to the identified entities and the relationship data between the entities. In the entity relationship database, entities and the relationship data between at least two entities are associated and stored.

[0162] In an optional embodiment, the method further includes:

[0163] receiving a search request for at least one target entity;

[0164] Relationship data between the target entity and other entities are retrieved from the entity relationship database, and the relationship data are provided as a retrieval result.

[0165] In an optional embodiment, the method further includes:

[0166] The entity-relationship database contains entities, relationship data between at least two entities, and the first text in the single-category field;

[0167] In an optional embodiment, the method further includes:

[0168] At the same time, a first text corresponding to the target entity is provided as a search result.

[0169] In an optional embodiment, the method further includes:

[0170] Organizing the entities identified corresponding to the text segment and the relationship data between the entities into structured data as the information extraction result corresponding to the text segment;

[0171] According to the positions of the multiple text segments, the information extraction results corresponding to the text segments are spliced ​​into the information extraction result corresponding to the target text.

[0172] In an optional embodiment, when the text segment corresponding to the entity corresponds to relationship data between one entity and multiple entities, organizing the entity corresponding to the text segment and the relationship data between the entities identified into structured data includes:

[0173] A multi-dimensional matrix of the first entity, the second entity, and the relationship data is constructed as the structured data.

[0174] Corresponding to the above content, the present application can be applied to the processing of entity models, referring to Figure 3 , shows a flow chart of a method for processing an entity recognition model according to Embodiment 2 of the present application, and the method may specifically include the following steps:

[0175] Step 201, based on a first text corresponding to a single-category field and a second text corresponding to a multi-category field, an encoder for extracting text features corresponding to the single-category field is trained;

[0176] Step 202, using the encoder to extract text features of words in the sample text of the single-category field;

[0177] Step 203, training an entity recognition model based on the entity recognition results of the sample text tags and the text features of the words in the sample text, wherein the entity recognition model is used to recognize the words as entities in the target text of the single-category field and the relationship data between at least two entities.

[0178] According to the embodiment of the present application, a first text corresponding to a single classification field and a second text corresponding to a multi-classification field are obtained in advance, and an encoder is trained based on the two texts in advance, and the encoder is used to extract the text features of the words in the sample text of the single classification field, and the entity recognition model is further trained based on the entity recognition results marked by the sample text and the text features of the words in the sample text. Based on the obtained entity recognition model, the entity in the target text of the single classification field and the relationship data between at least two entities can be identified. Since the present application combines the second text with the first text for encoder training, the feature extraction of the second text can be transferred to the training of the encoder, thereby reducing the requirements for the number of annotations of the first text, does not rely on large-scale annotation data, and has no special requirements for the quality of the annotation data. That is to say, based on the scheme design of text feature migration from the multi-classification field to the single classification field in the present application, only a small amount of annotated first text can be used for encoder training, and the ability to extract text features in the single classification field can be obtained. It can be understood that when the number of annotations of the first text is determined, the scheme of the present application can improve the accuracy of the encoder in extracting features, and the entity recognition model further trained accordingly can improve the prediction performance of the entity recognition result.

[0179] The above scheme can also be further applied to the extraction of text information, refer to Figure 4 , shows a flow chart of an information extraction method according to Embodiment 3 of the present application, which method may specifically include the following steps:

[0180] Step 301, obtaining the target text;

[0181] Step 302, based on the entity recognition model, identifying words as entities in the target text of the single-category domain and relationship data between at least two entities; the text features of the words in the sample text based on which the entity recognition model is trained are extracted using an encoder, and the encoder is trained based on a first text corresponding to the single-category domain and a second text corresponding to the multi-category domain;

[0182] Step 303, organizing the entities identified corresponding to the text segment and the relationship data between the entities into structured data as the information extraction result corresponding to the text segment;

[0183] Step 304: according to the positions of the multiple text segments, the information extraction results corresponding to the text segments are spliced ​​into the information extraction result corresponding to the target text.

[0184] According to the embodiment of the present application, a first text corresponding to a single classification field and a second text corresponding to a multi-classification field are obtained in advance, and an encoder is trained based on the two texts in advance, and the encoder is used to extract the text features of the words in the sample text of the single classification field, and the entity recognition model is further trained based on the entity recognition results marked by the sample text and the text features of the words in the sample text. Based on the obtained entity recognition model, the entity in the target text of the single classification field and the relationship data between at least two entities can be identified. Since the present application combines the second text with the first text for encoder training, the feature extraction of the second text can be transferred to the training of the encoder, thereby reducing the requirements for the number of annotations of the first text, does not rely on large-scale annotation data, and has no special requirements for the quality of the annotation data. That is to say, based on the scheme design of text feature migration from the multi-classification field to the single classification field in the present application, only a small amount of annotated first text can be used for encoder training, and the ability to extract text features in the single classification field can be obtained. It can be understood that when the number of annotations of the first text is determined, the scheme of the present application can improve the accuracy of the encoder in extracting features, and the entity recognition model further trained accordingly can improve the prediction performance of the entity recognition result.

[0185] Based on the information extracted from a large amount of text, an information database can be further created for information retrieval. Figure 5 , shows a flow chart of an information retrieval method according to Embodiment 4 of the present application, which method may specifically include the following steps:

[0186] Step 401, receiving a search request for at least one target entity;

[0187] Step 402, retrieving the relationship data between the target entity and other entities; wherein entities in multiple texts in a single-category domain and relationship data between at least two entities are preset based on entity recognition model recognition, and the text features of words in the sample text based on which the entity recognition model is trained are extracted using an encoder, and the encoder is trained based on a first text corresponding to the single-category domain and a second text corresponding to the multi-category domain;

[0188] Step 403: providing the relationship data as a search result.

[0189] In an optional embodiment, the above method may further include:

[0190] Generate an entity relationship database based on the entities in the multiple texts in the single-category domain identified and the relationship data between at least two entities;

[0191] The retrieving the relationship data between the target entity and other entities comprises:

[0192] Retrieve the relationship data between the target entity and other entities from the entity relationship database.

[0193] According to the embodiment of the present application, a first text corresponding to a single classification field and a second text corresponding to a multi-classification field are obtained in advance, and an encoder is trained based on the two texts in advance, and the encoder is used to extract the text features of the words in the sample text of the single classification field, and the entity recognition model is further trained based on the entity recognition results marked by the sample text and the text features of the words in the sample text. Based on the obtained entity recognition model, the entity in the target text of the single classification field and the relationship data between at least two entities can be identified. Since the present application combines the second text with the first text for encoder training, the feature extraction of the second text can be transferred to the training of the encoder, thereby reducing the requirements for the number of annotations of the first text, does not rely on large-scale annotation data, and has no special requirements for the quality of the annotation data. That is to say, based on the scheme design of text feature migration from the multi-classification field to the single classification field in the present application, only a small amount of annotated first text can be used for encoder training, and the ability to extract text features in the single classification field can be obtained. It can be understood that when the number of annotations of the first text is determined, the scheme of the present application can improve the accuracy of the encoder in extracting features, and the entity recognition model further trained accordingly can improve the prediction performance of the entity recognition result.

[0194] The above embodiment can also be further used in the identification of microbial information, where the microbial information is also the microbial entity, which can be the name of the microorganism, the property information related to the microorganism, the gathering place information, etc. Figure 6 , shows a flow chart of a method for identifying microbial information according to Embodiment 5 of the present application, which method may specifically include the following steps:

[0195] Step 501, based on the abstracts of professional articles corresponding to the microbiology field and the second text corresponding to the multi-classification field, training an encoder corresponding to the microbiology field for text feature extraction;

[0196] Step 502, using the encoder to extract text features of words in the sample text in the microbiology field;

[0197] Step 503, training a microbial information recognition model according to the microbial information recognition result of the sample text mark and the text features of the words in the sample text;

[0198] Step 504: Based on the microbial information recognition model, identify the microbial information in the target text in the microbial field and the relationship data between at least two types of microbial information.

[0199] According to the embodiment of the present application, a first text corresponding to a single classification field and a second text corresponding to a multi-classification field are obtained in advance, and an encoder is trained based on the two texts in advance, and the encoder is used to extract the text features of the words in the sample text of the single classification field, and the entity recognition model is further trained based on the entity recognition results marked by the sample text and the text features of the words in the sample text. Based on the obtained entity recognition model, the entity in the target text of the single classification field and the relationship data between at least two entities can be identified. Since the present application combines the second text with the first text for encoder training, the feature extraction of the second text can be transferred to the training of the encoder, thereby reducing the requirements for the number of annotations of the first text, does not rely on large-scale annotation data, and has no special requirements for the quality of the annotation data. That is to say, based on the scheme design of text feature migration from the multi-classification field to the single classification field in the present application, only a small amount of annotated first text can be used for encoder training, and the ability to extract text features in the single classification field can be obtained. It can be understood that when the number of annotations of the first text is determined, the scheme of the present application can improve the accuracy of the encoder in extracting features, and the entity recognition model further trained accordingly can improve the prediction performance of the entity recognition result.

[0200] The above scheme can also be applied to the creation of microbial identification models in the microbiology field, refer to Figure 7, shows a flow chart of a method for processing a microorganism identification model according to Embodiment 6 of the present application, which method may specifically include the following steps:

[0201] Step 601, based on the abstracts of professional articles corresponding to the microbiology field and the second text corresponding to the multi-classification field, training an encoder corresponding to the microbiology field for text feature extraction;

[0202] Step 602, using the encoder to extract text features of words in the sample text in the microbiology field;

[0203] Step 603: training a microbial information recognition model based on the microbial information recognition result of the sample text mark and the text features of the words in the sample text, wherein the microbial information recognition model is used to recognize the microbial information in the target text of the single classification field and the relationship data between at least two types of microbial information.

[0204] According to the embodiment of the present application, a first text corresponding to the microbial field and a second text corresponding to the multi-classification field are obtained in advance, and an encoder is trained based on the two texts in advance, and the encoder is used to extract the text features of the words in the sample text of the microbial field, and further based on the microbial information recognition result marked by the sample text and the text features of the words in the sample text. The microbial information recognition model can be trained based on the microbial information recognition model to identify the microbial information in the target text of the microbial field and the relationship data between at least two microbial information. Since the present application combines the second text with the first text for encoder training, the feature extraction of the second text can be transferred to the training of the encoder, thereby reducing the requirements for the number of annotations of the first text, not relying on large-scale annotation data, and there is no special requirement for the quality of the annotation data. That is to say, based on the scheme design of text feature migration to the microbial field in the multi-classification field of the present application, only a small amount of annotated first text can be used for encoder training, and the ability to extract text features in the microbial field can be obtained. It can be understood that when the number of annotations of the first text is determined, the scheme of the present application can improve the accuracy of the encoder to extract features, and the microbial information recognition model further trained on this basis can improve the prediction performance of the microbial information recognition results.

[0205] The identification of microbial information can be further used to extract information from texts in the field of microbiology. Figure 8 , shows a flow chart of a method for extracting information from a microbial text according to Embodiment 7 of the present application, the method may specifically include the following steps: including:

[0206] Step 701, obtaining the target text;

[0207] Step 702, based on the microbial information recognition model, identifying the microbial information in the target text of the single-classification field and the relationship data between at least two types of microbial information; the text features of the words in the sample text based on which the microbial information recognition model is trained are extracted using an encoder, and the encoder is trained based on the abstracts of professional articles corresponding to the microbial field and the second text corresponding to the multi-classification field;

[0208] Step 703, organizing the microbial information identified corresponding to the text segment and the relationship data between the microbial information into structured data as the information extraction result corresponding to the text segment;

[0209] Step 704: according to the positions of the multiple text segments, the information extraction results corresponding to the text segments are spliced ​​into the information extraction result corresponding to the target text.

[0210] According to the embodiment of the present application, a first text corresponding to the microbial field and a second text corresponding to the multi-classification field are obtained in advance, and an encoder is trained based on the two texts in advance, and the encoder is used to extract the text features of the words in the sample text of the microbial field, and further based on the microbial information recognition result marked by the sample text and the text features of the words in the sample text. The microbial information recognition model can be trained based on the microbial information recognition model to identify the microbial information in the target text of the microbial field and the relationship data between at least two microbial information. Since the present application combines the second text with the first text for encoder training, the feature extraction of the second text can be transferred to the training of the encoder, thereby reducing the requirements for the number of annotations of the first text, not relying on large-scale annotation data, and there is no special requirement for the quality of the annotation data. That is to say, based on the scheme design of text feature migration to the microbial field in the multi-classification field of the present application, only a small amount of annotated first text can be used for encoder training, and the ability to extract text features in the microbial field can be obtained. It can be understood that when the number of annotations of the first text is determined, the scheme of the present application can improve the accuracy of the encoder to extract features, and the microbial information recognition model further trained on this basis can improve the prediction performance of the microbial information recognition results.

[0211] Based on the extraction of a large amount of text information in the field of microorganisms, a corresponding microbial information database can be created, or a corresponding microbial information map can be created. Fig. 9 , shows a flow chart of a method for constructing a microbial information map according to Embodiment 8 of the present application, and the method may specifically include the following steps:

[0212] Step 801, obtaining multiple target texts;

[0213] Step 802, based on the microbial information recognition model, identifying the microbial information in the target text of the single-category field and the relationship data between at least two types of microbial information; the text features of the words in the sample text based on which the microbial information recognition model is trained are extracted using an encoder, and the encoder is trained based on the abstracts of professional articles corresponding to the microbial field and the second text corresponding to the multi-category field;

[0214] Step 803: construct the microbial information and the relationship data between at least two types of microbial information into a microbial information map according to the hierarchical structure relationship between the microbial information identified from the plurality of target texts.

[0215] According to the embodiment of the present application, a first text corresponding to the microbial field and a second text corresponding to the multi-classification field are obtained in advance, and an encoder is trained based on the two texts in advance, and the encoder is used to extract the text features of the words in the sample text of the microbial field, and further based on the microbial information recognition result marked by the sample text and the text features of the words in the sample text. The microbial information recognition model can be trained based on the microbial information recognition model to identify the microbial information in the target text of the microbial field and the relationship data between at least two microbial information. Since the present application combines the second text with the first text for encoder training, the feature extraction of the second text can be transferred to the training of the encoder, thereby reducing the requirements for the number of annotations of the first text, not relying on large-scale annotation data, and there is no special requirement for the quality of the annotation data. That is to say, based on the scheme design of text feature migration to the microbial field in the multi-classification field of the present application, only a small amount of annotated first text can be used for encoder training, and the ability to extract text features in the microbial field can be obtained. It can be understood that when the number of annotations of the first text is determined, the scheme of the present application can improve the accuracy of the encoder to extract features, and the microbial information recognition model further trained on this basis can improve the prediction performance of the microbial information recognition results.

[0216] Based on the information extraction of a large number of microbial texts, a corresponding microbial information database can be created, which can be further used for the retrieval of microbial information. Fig.10 , shows a flow chart of a microorganism information retrieval method according to Embodiment 9 of the present application, which method may specifically include the following steps:

[0217] Step 901, receiving a search request for at least one target microorganism information;

[0218] Step 902, retrieving the relationship data between the target microorganism information and other microorganism information; wherein the microorganism information in multiple texts in the microorganism field and the relationship data between at least two types of microorganism information identified based on the entity recognition model are preset, and the text features of the words in the sample text based on which the microorganism information recognition model is trained are extracted using an encoder, and the encoder is trained based on the abstracts of professional articles corresponding to the microorganism field and second texts corresponding to multiple microorganism fields;

[0219] Step 903: providing the relationship data as a search result.

[0220] According to the embodiment of the present application, a first text corresponding to the microbial field and a second text corresponding to the multi-classification field are obtained in advance, and an encoder is trained based on the two texts in advance, and the encoder is used to extract the text features of the words in the sample text of the microbial field, and further based on the microbial information recognition result marked by the sample text and the text features of the words in the sample text. The microbial information recognition model can be trained based on the microbial information recognition model to identify the microbial information in the target text of the microbial field and the relationship data between at least two microbial information. Since the present application combines the second text with the first text for encoder training, the feature extraction of the second text can be transferred to the training of the encoder, thereby reducing the requirements for the number of annotations of the first text, not relying on large-scale annotation data, and there is no special requirement for the quality of the annotation data. That is to say, based on the scheme design of text feature migration to the microbial field in the multi-classification field of the present application, only a small amount of annotated first text can be used for encoder training, and the ability to extract text features in the microbial field can be obtained. It can be understood that when the number of annotations of the first text is determined, the scheme of the present application can improve the accuracy of the encoder to extract features, and the microbial information recognition model further trained on this basis can improve the prediction performance of the microbial information recognition results.

[0221] Based on the information extraction of a large amount of text in the field of microorganisms, a corresponding microbial information database can be created, which can be further used in online question-and-answer interaction of microbial information. Fig.11 , shows a flow chart of a method for interacting with microorganism information according to Embodiment 10 of the present application, which method may specifically include the following steps:

[0222] Step 1001, receiving a question including target microorganism information;

[0223] Step 1002, retrieving the relationship data between the target microorganism information and other microorganism information; wherein the microorganism information in multiple texts in the microorganism field and the relationship data between at least two microorganism information identified based on the entity recognition model are preset, and the text features of the words in the sample text based on which the microorganism information recognition model is trained are extracted using an encoder, and the encoder is trained based on the abstracts of professional articles corresponding to the microorganism field and second texts corresponding to multiple microorganism fields;

[0224] Step 1003, organizing the relationship data between the target microorganism information and other microorganism information into a question answer;

[0225] Step 1004, providing the answer to the question.

[0226] According to the embodiment of the present application, a first text corresponding to the microbial field and a second text corresponding to the multi-classification field are obtained in advance, and an encoder is trained based on the two texts in advance, and the encoder is used to extract the text features of the words in the sample text of the microbial field, and further based on the microbial information recognition result marked by the sample text and the text features of the words in the sample text. The microbial information recognition model can be trained based on the microbial information recognition model to identify the microbial information in the target text of the microbial field and the relationship data between at least two microbial information. Since the present application combines the second text with the first text for encoder training, the feature extraction of the second text can be transferred to the training of the encoder, thereby reducing the requirements for the number of annotations of the first text, not relying on large-scale annotation data, and there is no special requirement for the quality of the annotation data. That is to say, based on the scheme design of text feature migration to the microbial field in the multi-classification field of the present application, only a small amount of annotated first text can be used for encoder training, and the ability to extract text features in the microbial field can be obtained. It can be understood that when the number of annotations of the first text is determined, the scheme of the present application can improve the accuracy of the encoder to extract features, and the microbial information recognition model further trained on this basis can improve the prediction performance of the microbial information recognition results.

[0227] Reference Fig.12 , shows a structural block diagram of an entity recognition device according to Embodiment 11 of the present application, and the device may specifically include:

[0228] An encoder training module 1101 is used to train an encoder corresponding to a single classification field for text feature extraction based on a first text corresponding to a single classification field and a second text corresponding to a multi-classification field;

[0229] A first feature extraction module 1102, configured to extract text features of words in the sample text of the single-category domain using the encoder;

[0230] An entity recognition model training module 1103 is used to train an entity recognition model according to the entity recognition results of the sample text tags and the text features of the words in the sample text;

[0231] The entity recognition module 1104 is used to recognize words as entities and relationship data between at least two entities in the target text of the single-category field based on the obtained entity recognition model.

[0232] In an optional embodiment, the device further includes:

[0233] A text crawling module, used to crawl a first text corresponding to a single-category field through a web crawler, wherein the first text includes abstracts of professional articles published on professional websites in the single-category field;

[0234] Or, a database access module is used to access a network database to obtain a first text corresponding to a single classification field.

[0235] In an optional embodiment, the device further includes:

[0236] The content removal module is used to remove the content irrelevant to the single classification field in the first text.

[0237] In an optional embodiment, the encoder includes a bidirectional encoder, and the first feature extraction module is specifically used to extract context-related features of words in the sample text in the sample text.

[0238] In an optional embodiment, the first feature extraction module includes:

[0239] A task execution submodule, used for inputting the sample text into the bidirectional encoder and executing the language recognition task corresponding to the bidirectional encoder;

[0240] The output extraction submodule is used to extract the hidden state data of the words in the sample text at the last layer of the bidirectional encoder as the text features corresponding to the words.

[0241] In an optional embodiment, the device further includes:

[0242] The second feature extraction module is used to extract at least one text feature of punctuation features, uppercase and lowercase features, part-of-speech tagging features, and syntactic dependency features of words in the sample text of the single-category field.

[0243] In an optional embodiment, the entity recognition module training module includes:

[0244] A loss function determination module, used to determine a comprehensive loss function of the entity recognition model according to a first loss function corresponding to an entity recognition layer for entity recognition and a second loss function corresponding to a relationship extraction layer for relationship data recognition;

[0245] An iterative training module is used to iteratively train the entity recognition model according to the comprehensive loss function.

[0246] In an optional embodiment, the entity recognition module includes:

[0247] A word recognition submodule, used for recognizing words as entities in the target text of the single-category domain based on the entity recognition layer of the entity recognition model;

[0248] The relationship data identification submodule is used to identify the relationship data between the at least two entities based on the relationship extraction layer of the entity recognition model and the association information of the entities in multiple dimensions.

[0249] In an optional embodiment, the device further includes:

[0250] The database creation module is used to establish an entity relationship database of the single classification field according to the identified entities and the relationship data between the entities, in which the entities and the relationship data between at least two entities are associated and stored.

[0251] In an optional embodiment, the device further includes:

[0252] A search request receiving module, used to receive a search request for at least one target entity;

[0253] A retrieval module, used for retrieving the relationship data between the target entity and other entities from the entity relationship database;

[0254] The retrieval result providing module is used to provide the relationship data as the retrieval result.

[0255] In an optional embodiment, the entity in the entity-relationship database, the relationship data between at least two entities, and the first text of the single-category field are stored in association;

[0256] The device also includes:

[0257] The text providing module is used to simultaneously provide a first text corresponding to the target entity as a search result.

[0258] In an optional embodiment, the device further includes:

[0259] A data structuring module, used to organize the entities identified corresponding to the text segment and the relationship data between the entities into structured data as the information extraction result corresponding to the text segment;

[0260] The data splicing module is used to splice the information extraction results corresponding to the text segments into the information extraction results corresponding to the target text according to the positions of the multiple text segments.

[0261] In an optional embodiment, the data structuring module is specifically used to construct a multi-dimensional matrix of the first entity, the second entity, and the relationship data as the structured data.

[0262] According to the embodiment of the present application, a first text corresponding to a single classification field and a second text corresponding to a multi-classification field are obtained in advance, and an encoder is trained based on the two texts in advance, and the encoder is used to extract the text features of the words in the sample text of the single classification field, and the entity recognition model is further trained based on the entity recognition results marked by the sample text and the text features of the words in the sample text. Based on the obtained entity recognition model, the entity in the target text of the single classification field and the relationship data between at least two entities can be identified. Since the present application combines the second text with the first text for encoder training, the feature extraction of the second text can be transferred to the training of the encoder, thereby reducing the requirements for the number of annotations of the first text, does not rely on large-scale annotation data, and has no special requirements for the quality of the annotation data. That is to say, based on the scheme design of text feature migration from the multi-classification field to the single classification field in the present application, only a small amount of annotated first text can be used for encoder training, and the ability to extract text features in the single classification field can be obtained. It can be understood that when the number of annotations of the first text is determined, the scheme of the present application can improve the accuracy of the encoder in extracting features, and the entity recognition model further trained accordingly can improve the prediction performance of the entity recognition result.

[0263] This application combines the self-attention mechanism when extracting text features of sample text, that is, paying attention to the data correlation within the text, and extracting the contextual association features of the words in the sample text, so that the text characteristics of the words can be characterized in combination with the text. The encoder has stronger expressive ability, and the extracted text features are more representative than the text features extracted by general encoders, thereby enabling the entity recognition model trained based on text features to perform entity recognition more accurately.

[0264] Reference Fig.13 , shows a structural block diagram of a processing device for an entity recognition model according to Embodiment 12 of the present application, and the device may specifically include:

[0265] The encoder training module 1201 is used to train an encoder for extracting text features corresponding to a single classification field based on a first text corresponding to a single classification field and a second text corresponding to a multi-classification field;

[0266] A feature extraction module 1202, configured to extract text features of words in the sample text of the single-category domain using the encoder;

[0267] The entity recognition model training module 1203 is used to train an entity recognition model based on the entity recognition results of the sample text tags and the text features of the words in the sample text. The entity recognition model is used to identify the words as entities in the target text of the single-category field and the relationship data between at least two entities.

[0268] According to the embodiment of the present application, a first text corresponding to a single classification field and a second text corresponding to a multi-classification field are obtained in advance, and an encoder is trained based on the two texts in advance, and the encoder is used to extract the text features of the words in the sample text of the single classification field, and the entity recognition model is further trained based on the entity recognition results marked by the sample text and the text features of the words in the sample text. Based on the obtained entity recognition model, the entity in the target text of the single classification field and the relationship data between at least two entities can be identified. Since the present application combines the second text with the first text for encoder training, the feature extraction of the second text can be transferred to the training of the encoder, thereby reducing the requirements for the number of annotations of the first text, does not rely on large-scale annotation data, and has no special requirements for the quality of the annotation data. That is to say, based on the scheme design of text feature migration from the multi-classification field to the single classification field in the present application, only a small amount of annotated first text can be used for encoder training, and the ability to extract text features in the single classification field can be obtained. It can be understood that when the number of annotations of the first text is determined, the scheme of the present application can improve the accuracy of the encoder in extracting features, and the entity recognition model further trained accordingly can improve the prediction performance of the entity recognition result.

[0269] Reference Fig.14 , shows a structural block diagram of an information extraction device according to Embodiment 13 of the present application, and the device may specifically include:

[0270] The text acquisition module 1301 is used to acquire the target text;

[0271] An entity recognition module 1302 is used to recognize words as entities in the target text of the single-category domain and relationship data between at least two entities based on an entity recognition model; text features of words in the sample text based on which the entity recognition model is trained are extracted using an encoder, and the encoder is trained based on a first text corresponding to the single-category domain and a second text corresponding to the multi-category domain;

[0272] A data structuring module 1303, used to organize the entities and the relationship data between the entities identified corresponding to the text segment into structured data as the information extraction result corresponding to the text segment;

[0273] The data splicing module 1304 is used to splice the information extraction results corresponding to the text segments into the information extraction results corresponding to the target text according to the positions of the multiple text segments.

[0274] According to the embodiment of the present application, a first text corresponding to a single classification field and a second text corresponding to a multi-classification field are obtained in advance, and an encoder is trained based on the two texts in advance, and the encoder is used to extract the text features of the words in the sample text of the single classification field, and the entity recognition model is further trained based on the entity recognition results marked by the sample text and the text features of the words in the sample text. Based on the obtained entity recognition model, the entity in the target text of the single classification field and the relationship data between at least two entities can be identified. Since the present application combines the second text with the first text for encoder training, the feature extraction of the second text can be transferred to the training of the encoder, thereby reducing the requirements for the number of annotations of the first text, does not rely on large-scale annotation data, and has no special requirements for the quality of the annotation data. That is to say, based on the scheme design of text feature migration from the multi-classification field to the single classification field in the present application, only a small amount of annotated first text can be used for encoder training, and the ability to extract text features in the single classification field can be obtained. It can be understood that when the number of annotations of the first text is determined, the scheme of the present application can improve the accuracy of the encoder in extracting features, and the entity recognition model further trained accordingly can improve the prediction performance of the entity recognition result.

[0275] Reference Fig.15 , shows a structural block diagram of an information retrieval device according to Embodiment 14 of the present application, and the device may specifically include:

[0276] The search receiving module 1401 is used to receive a search request for at least one target entity;

[0277] A retrieval module 1402 is used to retrieve the relationship data between the target entity and other entities; wherein entities in multiple texts in a single-category domain and relationship data between at least two entities are preset based on entity recognition models, and text features of words in sample texts based on which the entity recognition model is trained are extracted using an encoder, and the encoder is trained based on a first text corresponding to the single-category domain and a second text corresponding to the multi-category domain;

[0278] The search result providing module 1403 is used to provide the relationship data as the search result.

[0279] In an optional embodiment, the above device may further include:

[0280] A database generation module, used to generate an entity relationship database based on the entities in the multiple texts in the single classification field identified and the relationship data between at least two entities;

[0281] The retrieval module is specifically used to retrieve the relationship data between the target entity and other entities from the entity relationship database.

[0282] According to the embodiment of the present application, a first text corresponding to a single classification field and a second text corresponding to a multi-classification field are obtained in advance, and an encoder is trained based on the two texts in advance, and the encoder is used to extract the text features of the words in the sample text of the single classification field, and the entity recognition model is further trained based on the entity recognition results marked by the sample text and the text features of the words in the sample text. Based on the obtained entity recognition model, the entity in the target text of the single classification field and the relationship data between at least two entities can be identified. Since the present application combines the second text with the first text for encoder training, the feature extraction of the second text can be transferred to the training of the encoder, thereby reducing the requirements for the number of annotations of the first text, does not rely on large-scale annotation data, and has no special requirements for the quality of the annotation data. That is to say, based on the scheme design of text feature migration from the multi-classification field to the single classification field in the present application, only a small amount of annotated first text can be used for encoder training, and the ability to extract text features in the single classification field can be obtained. It can be understood that when the number of annotations of the first text is determined, the scheme of the present application can improve the accuracy of the encoder in extracting features, and the entity recognition model further trained accordingly can improve the prediction performance of the entity recognition result.

[0283] Reference Fig.16 , shows a structural block diagram of a device for identifying microbial information according to Embodiment 15 of the present application, and the device may specifically include:

[0284] The encoder training module 1501 is used to train an encoder for text feature extraction corresponding to the microbiology field based on the professional article abstract corresponding to the microbiology field and the second text corresponding to the multi-classification field;

[0285] A feature extraction module 1502 is used to extract text features of words in the sample text of the microbiology field using the encoder;

[0286] A microbial information recognition model training module 1503 is used to train a microbial information recognition model according to the microbial information recognition result of the sample text mark and the text features of the words in the sample text;

[0287] The microbial information recognition module 1504 is used to recognize the microbial information in the target text of the microbial field and the relationship data between at least two types of microbial information based on the obtained microbial information recognition model.

[0288] According to the embodiment of the present application, a first text corresponding to the microbial field and a second text corresponding to the multi-classification field are obtained in advance, and an encoder is trained based on the two texts in advance, and the encoder is used to extract the text features of the words in the sample text of the microbial field, and further based on the microbial information recognition result marked by the sample text and the text features of the words in the sample text. The microbial information recognition model can be trained based on the obtained microbial information recognition model to identify the microbial information in the target text of the microbial field and the relationship data between at least two microbial information. Since the present application combines the second text with the first text for encoder training, the feature extraction of the second text can be transferred to the training of the encoder, thereby reducing the requirements for the number of annotations of the first text, not relying on large-scale annotation data, and there is no special requirement for the quality of the annotation data. That is to say, based on the scheme design of text feature migration to the microbial field in the multi-classification field of the present application, only a small amount of annotated first text can be used for encoder training, and the ability to extract text features in the microbial field can be obtained. It can be understood that when the number of annotations of the first text is determined, the scheme of the present application can improve the accuracy of the encoder to extract features, and the microbial information recognition model further trained on this basis can improve the prediction performance of the microbial information recognition result.

[0289] Reference Fig.17 , shows a structural block diagram of a processing device for a microorganism identification model according to Embodiment 16 of the present application, and the device may specifically include:

[0290] The encoder training module 1601 trains an encoder for text feature extraction corresponding to the microbiology field based on the abstracts of professional articles corresponding to the microbiology field and the second text corresponding to the multi-classification field;

[0291] A feature extraction module 1602 is used to extract text features of words in the sample text of the microbiology field using the encoder;

[0292] The microorganism identification model training module 1603 is used to train a microorganism information identification model according to the microorganism information identification result marked by the sample text and the text features of the words in the sample text. The microorganism information identification model is used to identify the microorganism information in the target text of the single classification field and the relationship data between at least two types of microorganism information.

[0293] According to the embodiment of the present application, a first text corresponding to the microbial field and a second text corresponding to the multi-classification field are obtained in advance, and an encoder is trained based on the two texts in advance, and the encoder is used to extract the text features of the words in the sample text of the microbial field, and further based on the microbial information recognition result marked by the sample text and the text features of the words in the sample text. The microbial information recognition model can be trained based on the obtained microbial information recognition model to identify the microbial information in the target text of the microbial field and the relationship data between at least two microbial information. Since the present application combines the second text with the first text for encoder training, the feature extraction of the second text can be transferred to the training of the encoder, thereby reducing the requirements for the number of annotations of the first text, not relying on large-scale annotation data, and there is no special requirement for the quality of the annotation data. That is to say, based on the scheme design of text feature migration to the microbial field in the multi-classification field of the present application, only a small amount of annotated first text can be used for encoder training, and the ability to extract text features in the microbial field can be obtained. It can be understood that when the number of annotations of the first text is determined, the scheme of the present application can improve the accuracy of the encoder to extract features, and the microbial information recognition model further trained on this basis can improve the prediction performance of the microbial information recognition result.

[0294] Reference Fig.18 , shows a structural block diagram of a device for extracting information from microbial text according to Embodiment 17 of the present application, and the device may specifically include:

[0295] A target text acquisition module 1701 is used to acquire a target text;

[0296] A microbial information recognition module 1702 is used to recognize microbial information in the target text of the single-classification field and relationship data between at least two types of microbial information based on a microbial information recognition model; the text features of words in the sample text based on which the microbial information recognition model is trained are extracted using an encoder, and the encoder is trained based on abstracts of professional articles corresponding to the microbial field and a second text corresponding to the multi-classification field;

[0297] A data structuring module 1703 is used to organize the microbial information identified corresponding to the text segment and the relationship data between the microbial information into structured data as the information extraction result corresponding to the text segment;

[0298] The data splicing module 1704 is used to splice the information extraction results corresponding to the text segments into the information extraction results corresponding to the target text according to the positions of the multiple text segments.

[0299] According to the embodiment of the present application, a first text corresponding to the microbial field and a second text corresponding to the multi-classification field are obtained in advance, and an encoder is trained based on the two texts in advance, and the encoder is used to extract the text features of the words in the sample text of the microbial field, and further based on the microbial information recognition result marked by the sample text and the text features of the words in the sample text. The microbial information recognition model can be trained based on the obtained microbial information recognition model to identify the microbial information in the target text of the microbial field and the relationship data between at least two microbial information. Since the present application combines the second text with the first text for encoder training, the feature extraction of the second text can be transferred to the training of the encoder, thereby reducing the requirements for the number of annotations of the first text, not relying on large-scale annotation data, and there is no special requirement for the quality of the annotation data. That is to say, based on the scheme design of text feature migration to the microbial field in the multi-classification field of the present application, only a small amount of annotated first text can be used for encoder training, and the ability to extract text features in the microbial field can be obtained. It can be understood that when the number of annotations of the first text is determined, the scheme of the present application can improve the accuracy of the encoder to extract features, and the microbial information recognition model further trained on this basis can improve the prediction performance of the microbial information recognition result.

[0300] Reference Fig.19 , shows a structural block diagram of a device for constructing a microbial information map according to Embodiment 18 of the present application, and the device may specifically include:

[0301] A target text acquisition module 1801 is used to acquire multiple target texts;

[0302] The microbial information recognition module 1802 is used to recognize the microbial information in the target text of the single-classification field and the relationship data between at least two types of microbial information based on the microbial information recognition model; the text features of the words in the sample text based on which the microbial information recognition model is trained are extracted using an encoder, and the encoder is trained based on the abstracts of professional articles corresponding to the microbial field and the second text corresponding to the multi-classification field;

[0303] The microbial information graph construction module 1803 is used to construct the microbial information and the relationship data between at least two types of microbial information into a microbial information graph according to the hierarchical structure relationship between the microbial information identified by the multiple target texts.

[0304] According to the embodiment of the present application, a first text corresponding to the microbial field and a second text corresponding to the multi-classification field are obtained in advance, and an encoder is trained based on the two texts in advance, and the encoder is used to extract the text features of the words in the sample text of the microbial field, and further based on the microbial information recognition result marked by the sample text and the text features of the words in the sample text. The microbial information recognition model can be trained based on the obtained microbial information recognition model to identify the microbial information in the target text of the microbial field and the relationship data between at least two microbial information. Since the present application combines the second text with the first text for encoder training, the feature extraction of the second text can be transferred to the training of the encoder, thereby reducing the requirements for the number of annotations of the first text, not relying on large-scale annotation data, and there is no special requirement for the quality of the annotation data. That is to say, based on the scheme design of text feature migration to the microbial field in the multi-classification field of the present application, only a small amount of annotated first text can be used for encoder training, and the ability to extract text features in the microbial field can be obtained. It can be understood that when the number of annotations of the first text is determined, the scheme of the present application can improve the accuracy of the encoder to extract features, and the microbial information recognition model further trained on this basis can improve the prediction performance of the microbial information recognition result.

[0305] Reference Fig. 20 , shows a structural block diagram of a microorganism information retrieval device according to Embodiment 19 of the present application, and the device may specifically include:

[0306] A search request receiving module 1901 is used to receive a search request for at least one target microorganism information;

[0307] A retrieval module 1902 is used to retrieve the relationship data between the target microorganism information and other microorganism information; wherein the microorganism information in multiple texts in the microorganism field and the relationship data between at least two types of microorganism information identified based on the entity recognition model are preset, and the text features of the words in the sample text based on which the microorganism information recognition model is trained are extracted using an encoder, and the encoder is trained based on the abstracts of professional articles corresponding to the microorganism field and the second text corresponding to the multi-classification field;

[0308] The search result providing module 1903 is used to provide the relationship data as the search result.

[0309] According to the embodiment of the present application, a first text corresponding to the microbial field and a second text corresponding to the multi-classification field are obtained in advance, and an encoder is trained based on the two texts in advance, and the encoder is used to extract the text features of the words in the sample text of the microbial field, and further based on the microbial information recognition result marked by the sample text and the text features of the words in the sample text. The microbial information recognition model can be trained based on the obtained microbial information recognition model to identify the microbial information in the target text of the microbial field and the relationship data between at least two microbial information. Since the present application combines the second text with the first text for encoder training, the feature extraction of the second text can be transferred to the training of the encoder, thereby reducing the requirements for the number of annotations of the first text, not relying on large-scale annotation data, and there is no special requirement for the quality of the annotation data. That is to say, based on the scheme design of text feature migration to the microbial field in the multi-classification field of the present application, only a small amount of annotated first text can be used for encoder training, and the ability to extract text features in the microbial field can be obtained. It can be understood that when the number of annotations of the first text is determined, the scheme of the present application can improve the accuracy of the encoder to extract features, and the microbial information recognition model further trained on this basis can improve the prediction performance of the microbial information recognition result.

[0310] Reference Fig.21 , shows a structural block diagram of an interactive device for microbial information according to Embodiment 20 of the present application, and the device may specifically include:

[0311] A question receiving module 2001 is used to receive questions including target microorganism information;

[0312] The data retrieval module 2002 is used to retrieve the relationship data between the target microorganism information and other microorganism information; wherein the microorganism information in multiple texts in the microorganism field and the relationship data between at least two types of microorganism information identified based on the entity recognition model are preset, and the text features of the words in the sample text based on which the microorganism information recognition model is trained are extracted using an encoder, and the encoder is trained based on the abstracts of professional articles corresponding to the microorganism field and the second text corresponding to the multi-classification field;

[0313] An answer organization module 2003 is used to organize the relationship data between the target microorganism information and other microorganism information into a question answer;

[0314] The answer providing module 2004 is used to provide the answer to the question.

[0315] According to the embodiment of the present application, a first text corresponding to the microbial field and a second text corresponding to the multi-classification field are obtained in advance, and an encoder is trained based on the two texts in advance, and the encoder is used to extract the text features of the words in the sample text of the microbial field, and further based on the microbial information recognition result marked by the sample text and the text features of the words in the sample text. The microbial information recognition model can be trained based on the obtained microbial information recognition model to identify the microbial information in the target text of the microbial field and the relationship data between at least two microbial information. Since the present application combines the second text with the first text for encoder training, the feature extraction of the second text can be transferred to the training of the encoder, thereby reducing the requirements for the number of annotations of the first text, not relying on large-scale annotation data, and there is no special requirement for the quality of the annotation data. That is to say, based on the scheme design of text feature migration to the microbial field in the multi-classification field of the present application, only a small amount of annotated first text can be used for encoder training, and the ability to extract text features in the microbial field can be obtained. It can be understood that when the number of annotations of the first text is determined, the scheme of the present application can improve the accuracy of the encoder to extract features, and the microbial information recognition model further trained on this basis can improve the prediction performance of the microbial information recognition result.

[0316] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0317] Embodiments of the present disclosure may be implemented as a system using any suitable hardware, firmware, software, or any combination thereof to perform the desired configuration. Fig. 22 An exemplary system (or device) 2100 that can be used to implement various embodiments described in the present disclosure is schematically illustrated.

[0318] For one embodiment, Fig. 22 An exemplary system 2100 is shown having one or more processors 2102, a system control module (chip set) 2104 coupled to at least one of the processor(s) 2102, a system memory 2106 coupled to the system control module 2104, a non-volatile memory (NVM) / storage device 2108 coupled to the system control module 2104, one or more input / output devices 2110 coupled to the system control module 2104, and a network interface 2112 coupled to the system control module 2104.

[0319] Processor 2102 may include one or more single-core or multi-core processors, and processor 2102 may include any combination of general-purpose processors or special-purpose processors (such as graphics processors, application processors, baseband processors, etc.) In some embodiments, system 2100 can be used as a browser as described in the embodiments of the present application.

[0320] In some embodiments, the system 2100 may include one or more computer-readable media (e.g., system memory 2106 or NVM / storage device 2108) having instructions and one or more processors 2102 that are combined with the one or more computer-readable media and configured to execute the instructions to implement the module to perform the actions described in the present disclosure.

[0321] For one embodiment, the system control module 2104 may include any suitable interface controller to provide any suitable interface to at least one of the processor(s) 2102 and / or any suitable device or component in communication with the system control module 2104 .

[0322] The system control module 2104 may include a memory controller module to provide an interface to the system memory 2106. The memory controller module may be a hardware module, a software module, and / or a firmware module.

[0323] The system memory 2106 may be used, for example, to load and store data and / or instructions for the system 2100. For one embodiment, the system memory 2106 may include any suitable volatile memory, such as a suitable DRAM. In some embodiments, the system memory 2106 may include double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).

[0324] For one embodiment, the system control module 2104 may include one or more input / output controllers to provide an interface to the NVM / storage device 2108 and the input / output device(s) 2110 .

[0325] For example, NVM / storage 2108 may be used to store data and / or instructions. NVM / storage 2108 may include any suitable non-volatile memory (e.g., flash memory) and / or may include any suitable non-volatile storage device(s) (e.g., one or more hard disk drives (HDDs), one or more compact disk (CD) drives, and / or one or more digital versatile disk (DVD) drives).

[0326] NVM / storage device 2108 may include storage resources that are physically part of the device on which system 2100 is installed, or it may be accessible to the device without being part of the device. For example, NVM / storage device 2108 may be accessed via input / output device(s) 2110 over a network.

[0327] The input / output device(s) 2110 may provide an interface for the system 2100 to communicate with any other appropriate device, and the input / output device 2110 may include a communication component, an audio component, a sensor component, etc. The network interface 2112 may provide an interface for the system 2100 to communicate through one or more networks, and the system 2100 may wirelessly communicate with one or more components of a wireless network according to any of one or more wireless network standards and / or protocols, for example, accessing a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G or 5G, or a combination thereof for wireless communication.

[0328] For one embodiment, at least one of the processor(s) 2102 may be packaged together with the logic of one or more controllers (e.g., a memory controller module) of the system control module 2104. For one embodiment, at least one of the processor(s) 2102 may be packaged together with the logic of one or more controllers of the system control module 2104 to form a system-in-package (SiP). For one embodiment, at least one of the processor(s) 2102 may be integrated on the same die with the logic of one or more controllers of the system control module 2104. For one embodiment, at least one of the processor(s) 2102 may be integrated on the same die with the logic of one or more controllers of the system control module 2104 to form a system on chip (SoC).

[0329] In various embodiments, the system 2100 may be, but is not limited to: a browser, a workstation, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.). In various embodiments, the system 2100 may have more or fewer components and / or a different architecture. For example, in some embodiments, the system 2100 includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an application specific integrated circuit (ASIC), and a speaker.

[0330] Wherein, if the display includes a touch panel, the display screen can be implemented as a touch screen display to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor can not only sense the boundary of the touch or slide action, but also identify the duration and pressure associated with the touch or slide operation.

[0331] An embodiment of the present application also provides a non-volatile readable storage medium, which stores one or more modules (programs). When the one or more modules are applied to a terminal device, the terminal device can execute instructions (instructions) of each method step in the embodiment of the present application.

[0332] In one example, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements a method as in an embodiment of the present application when executing the computer program.

[0333] In one example, a computer-readable storage medium is provided, on which a computer program is stored, characterized in that when the program is executed by a processor, one or more methods of the embodiments of the present application are implemented.

[0334] Although certain embodiments are for the purpose of illustration and description, various alternatives, and / or, equivalent implementations, or calculations to achieve the same purpose of the embodiment shown and described implementations do not depart from the scope of the present application. This application is intended to cover any modifications or changes of the embodiments discussed herein. Therefore, it is apparent that the embodiments described herein are limited only by the claims and their equivalents.

Claims

1. An entity recognition method, characterized in that: include: Based on the first text corresponding to the single-category field and the second text corresponding to the multi-category field, an encoder for text feature extraction in the single-category field is trained; Extracting text features of words in sample text of the single-category domain using the encoder; Training an entity recognition model according to entity recognition results of the sample text tags and text features of words in the sample text; Based on the obtained entity recognition model, words as entities in the target text of the single-category field and relationship data between at least two entities are identified.

2. The method according to claim 1, characterized in that Also includes: Capturing a first text corresponding to a single-category field by a web crawler, wherein the first text includes abstracts of professional articles published on a professional website in the single-category field; Or, access a network database to obtain the first text corresponding to a single classification field.

3. The method according to claim 1, characterized in that Also includes: The content irrelevant to the single classification field in the first text is removed.

4. The method according to claim 1, characterized in that: The encoder includes a bidirectional encoder, and the extracting text features of words in the sample text of the single classification field using the encoder includes: Contextual features of words in the sample text are extracted.

5. The method according to claim 4, characterized in that The step of extracting text features of words in the sample text of the single-category field using the encoder includes: Inputting the sample text into the bidirectional encoder and performing a language recognition task corresponding to the bidirectional encoder; The hidden state data of the words in the sample text at the last layer of the bidirectional encoder are extracted as the text features corresponding to the words.

6. The method according to claim 1, characterized in that The method further comprises: At least one text feature of the words in the sample text of the single-category field is extracted, including punctuation features, uppercase and lowercase features, part-of-speech tagging features, and syntactic dependency features.

7. The method according to claim 1, characterized in that The training of the entity recognition model according to the entity recognition result of the sample text mark and the text features of the words in the sample text includes: Determine a comprehensive loss function of the entity recognition model according to a first loss function corresponding to an entity recognition layer for entity recognition and a second loss function corresponding to a relationship extraction layer for relationship data recognition; The entity recognition model is iteratively trained according to the comprehensive loss function.

8. The method according to claim 1, characterized in that The step of identifying words as entities in the target text of the single-category field and relationship data between at least two entities based on the obtained entity recognition model includes: Based on the entity recognition layer of the entity recognition model, identifying words as entities in the target text of the single-category domain; Based on the relationship extraction layer of the entity recognition model and the association information of the entities in multiple dimensions, the relationship data between the at least two entities are identified.

9. The method according to claim 1, characterized in that: Also includes: An entity relationship database of the single-category domain is established according to the identified entities and the relationship data between the entities. In the entity relationship database, entities and the relationship data between at least two entities are associated and stored.

10. The method according to claim 9, characterized in that Also includes: receiving a search request for at least one target entity; Relationship data between the target entity and other entities are retrieved from the entity relationship database, and the relationship data are provided as a retrieval result.

11. The method according to claim 10, characterized in that The entity-relationship database contains entities, relationship data between at least two entities, and the first text in the single-category field; The method further comprises: At the same time, a first text corresponding to the target entity is provided as a search result.

12. The method according to claim 1, characterized in that The method further comprises: Organizing the entities identified corresponding to the text segment and the relationship data between the entities into structured data as the information extraction result corresponding to the text segment; According to the positions of the multiple text segments, the information extraction results corresponding to the text segments are spliced ​​into the information extraction result corresponding to the target text.

13. The method according to claim 12, characterized in that When the text segment corresponding to the entity corresponds to relationship data between one entity and multiple entities, organizing the entity corresponding to the text segment and the relationship data between the entities identified into structured data includes: A multi-dimensional matrix of the first entity, the second entity, and the relationship data is constructed as the structured data.

14. A method for processing an entity recognition model, characterized in that: include: Based on the first text corresponding to the single-category field and the second text corresponding to the multi-category field, an encoder corresponding to the single-category field for text feature extraction is trained; Extracting text features of words in sample text of the single-category domain using the encoder; An entity recognition model is trained according to the entity recognition results of the sample text tags and the text features of the words in the sample text. The entity recognition model is used to recognize the words as entities in the target text of the single-category field and the relationship data between at least two entities.

15. An information extraction method, characterized in that: include: Get the target text; Based on the entity recognition model, identify the words as entities in the target text of the single-category domain and the relationship data between at least two entities; The text features of words in the sample text used for training the entity recognition model are extracted using an encoder, wherein the encoder is trained based on a first text corresponding to a single-classification field and a second text corresponding to a multi-classification field; Organizing the entities identified corresponding to the text segment and the relationship data between the entities into structured data as the information extraction result corresponding to the text segment; According to the positions of the multiple text segments, the information extraction results corresponding to the text segments are spliced ​​into the information extraction result corresponding to the target text.

16. An information retrieval method, characterized in that: include: receiving a search request for at least one target entity; Retrieving the relationship data between the target entity and other entities; wherein entities in multiple texts in a single-category domain and relationship data between at least two entities are preset based on entity recognition model recognition, and the text features of words in the sample text based on which the entity recognition model is trained are extracted using an encoder, and the encoder is trained based on a first text corresponding to the single-category domain and a second text corresponding to the multi-category domain; The relationship data is provided as a search result.

17. The method according to claim 16, characterized in that Also includes: Generate an entity relationship database based on the entities in the multiple texts in the single-category domain identified and the relationship data between at least two entities; The retrieving the relationship data between the target entity and other entities comprises: Retrieve the relationship data between the target entity and other entities from the entity relationship database.

18. A method for identifying microbial information, characterized in that: include: Based on the abstracts of professional articles corresponding to the microbiology field and the second text corresponding to the multi-classification field, an encoder for text feature extraction corresponding to the microbiology field is trained; Extracting text features of words in sample text in the microbiology field using the encoder; training a microbial information recognition model according to the microbial information recognition result of the sample text mark and the text features of the words in the sample text; Based on the obtained microbial information recognition model, the microbial information in the target text in the microbial field and the relationship data between at least two types of microbial information are identified.

19. A method for processing a microorganism identification model, characterized in that: include: Based on the abstracts of professional articles corresponding to the microbiology field and the second text corresponding to the multi-classification field, an encoder for text feature extraction corresponding to the microbiology field is trained; Extracting text features of words in sample text in the field of microbiology using the encoder; A microbial information recognition model is trained based on the microbial information recognition results of the sample text markers and the text features of the words in the sample text. The microbial information recognition model is used to recognize the microbial information in the target text in the microbial field and the relationship data between at least two types of microbial information.

20. A method for extracting information from microbial text, characterized in that: include: Get the target text; Based on the obtained microbial information recognition model, the microbial information in the target text in the microbial field and the relationship data between at least two types of microbial information are identified; the text features of the words in the sample text based on which the microbial information recognition model is trained are extracted using an encoder, and the encoder is trained based on the abstracts of professional articles corresponding to the microbial field and the second text corresponding to the multi-classification field; Organizing the microbial information identified corresponding to the text segment and the relationship data between the microbial information into structured data as the information extraction result corresponding to the text segment; According to the positions of the multiple text segments, the information extraction results corresponding to the text segments are spliced ​​into the information extraction result corresponding to the target text.

21. A method for constructing a microbial information map, characterized in that: include: Get multiple target texts; Based on the microbial information recognition model, identifying the microbial information in the target text in the microbial field and the relationship data between at least two microbial information; The text features of words in the sample text used for training the microbial information recognition model are extracted using an encoder, wherein the encoder is trained based on abstracts of professional articles corresponding to the microbial field and a second text corresponding to a multi-classification field; According to the hierarchical structure relationship between the microbial information identified from the plurality of target texts, the microbial information and the relationship data between at least two types of microbial information are constructed into a microbial information map.

22. A microbial information retrieval method, characterized in that: include: receiving a search request for at least one target microorganism information; Retrieve the relationship data between the target microorganism information and other microorganism information; wherein the microorganism information in multiple texts in the microorganism field and the relationship data between at least two types of microorganism information identified based on the entity recognition model are preset, and the text features of the words in the sample text based on which the microorganism information recognition model is trained are extracted using an encoder, and the encoder is trained based on the abstracts of professional articles corresponding to the microorganism field and the second text corresponding to the multi-classification field; The relationship data is provided as a search result.

23. An interactive method for microbial information, characterized in that: include: receiving questions including target microorganism information; Retrieve the relationship data between the target microorganism information and other microorganism information; wherein, microorganism information in multiple texts in the microorganism field and relationship data between at least two types of microorganism information identified based on the entity recognition model are preset, and the text features of words in the sample text based on which the microorganism information recognition model is trained are extracted using an encoder, and the encoder is trained based on abstracts of professional articles corresponding to the microorganism field and a second text corresponding to a multi-classification field; Organizing the relationship data between the target microorganism information and other microorganism information into a question answer; Provide answers to the questions.

24. An electronic device, characterized in that: include: processor; and A memory having executable codes stored thereon, which, when executed, causes the processor to perform the method according to any one of claims 1 to 23.

25. One or more machine-readable media having executable codes stored thereon, which, when executed, cause a processor to perform the method according to any one of claims 1 to 23.

Citation Information

Patent Citations

  • Event trigger word extraction method and system based on auto-encoder fusion document information

    CN110135457A

  • Implicit sentence-to-sentenceintersentence relationship analysis method based on single classifier multi-task network

    CN110263159A