Weakly supervised and interpretable training of a machine learning based named entity recognition (NER) mechanism
By employing weak supervision and iterative training, and utilizing seeding rules and neural representations to automatically label unstructured text, the problem of large training data requirements and insufficient resources for NER models is solved, achieving efficient NER model training and interpretable predictions.
Patent Information
- Application Number
- CN202210170876.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-02-25
- Filing Date
- 2022-02-24
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-02-24
AI Technical Summary
Existing techniques for training Named Entity Recognition (NER) models, especially in low-resource languages and specific domains, require a large amount of manually annotated data, and remote supervision methods are unavailable in some cases, leading to training difficulties.
We employ a weak supervision mechanism, using a small set of symbol rules (seeding rules) to automatically label unstructured text. By combining neural representations and iterative training, we generate weakly labeled data through bootstrapping and iteratively improve the NER model.
It enables efficient training of NER models in unannotated text, generating interpretable predictions, reducing reliance on manually annotated data, and is suitable for low-resource languages and specific domains.
Smart Images

Figure CN114970529B_ABST
Abstract
Description
Background Technology
[0001] This invention relates to systems and methods for performing named entity recognition (NER) using machine learning techniques and, more specifically, for training named entity recognition (NER) models. Summary of the Invention
[0002] Named Entity Recognition (NER) is a mechanism in which automated processing (e.g., computer-based processing) is applied to unstructured text to identify and classify the occurrence of “named entities” (e.g., people, businesses, locations, etc.) within the unstructured text. For example, in some implementations, NER is a machine learning-based natural language processing mechanism where unstructured natural language sentences are provided as input to a machine learning model, and the output of the machine learning model includes an indication of the assigned category for each “entity” (or potential entity) in the sentence (e.g., the machine learning model determines words or phrases in the sentence that may correspond to proper names, objects, etc.). For example, if the input sentence provided as input states: “John is traveling to London,” the output of a trained NER machine learning model could indicate that “John” is classified as a “person” and “London” as a “location.”
[0003] In some implementations, Named Entity Recognition (NER) is a fundamental task for many downstream information extraction tasks (e.g., relation extraction) and knowledge base construction. For example, supervised training of NER has achieved reliable performance thanks to advances in deep neural models. However, supervised training of NER models requires extensive manual annotation of the data used for training. This can be time-consuming in all cases, but it is particularly challenging in certain domains and / or when training NER models for low-resource languages—where domain expert annotations are difficult to obtain.
[0004] In some implementations, "remote supervision" training is used to automatically generate labeled data from open knowledge bases or dictionaries. Remote supervision makes it possible to generate training data for NER models on a large scale without expensive human intervention. However, all remote supervision methods rely on existing knowledge bases or dictionaries, and in some cases, open knowledge bases are not available (e.g., in the biomedical field, technical documentation, etc.).
[0005] Therefore, in some implementations, the systems and methods described in this paper provide a “weakly supervised” mechanism for training machine learning NER models. In weakly supervised methods, a small set of symbolic rules—referred to in this paper as “seed rules”—is used to label data in unstructured text. In some implementations, the seed rules and their associated labels can be manually provided or defined for a specific task (i.e., the task for which the NER model will be trained). After the seed rules are applied to the unstructured text using the seed rules, the weakly labeled data is used for the initial iterations of training an artificial neural network-based NER model. The unstructured text is also processed to automatically identify multiple latent rules for labeling “named entities”. The automatically identified rules are applied to the unstructured text, and the text / label combinations determined by the rules are compared with those determined by the initial iterations of the NER model. The most successful “rules” are identified using a scoring metric and then applied to the original unstructured text to generate another training dataset. The NER model is then retrained based on data labeled with the new set of selected rules. This training process is repeated iteratively to continue refining and improving the NER model.
[0006] In some implementations, the "weakly supervised" mechanism used to train the NER model employs bootstrapping to generate weakly labeled data with symbolic rules and also automatically trains the NER model to recognize entities with neural representations. For example, in some implementations, the initial seeding rules may include rules such as "located in __" to explicitly identify at least some locations in unstructured text. Furthermore, the NER model can be trained to identify new entities by comparing low-dimensional neural representations (i.e., word embeddings) and iteratively retraining it. The framework described in the example below uses both explicit logical rules and neural representations to iteratively search for new entities in an unlabeled corpus (e.g., unstructured text). Moreover, because the system and method use logical rules to obtain weak labels and identify entities, each system prediction provided by the trained NER model can be traced back to the original logical rules, making the prediction results interpretable.
[0007] In one embodiment, the present invention provides a method for training a machine learning model to perform named entity recognition. All possible entity candidates and all possible rule candidates are automatically identified in an input dataset of unlabeled text. Initial training of the machine learning model is performed by seeding a rule set onto the input dataset to assign labels to entity candidates and using these label assignments as a first training dataset. The trained machine learning model is then applied to the unlabeled text, and a subset of rules from the rule candidates that generates labels that most accurately match the labels assigned by the trained machine learning model are identified. The machine learning model is then retrained using the labels assigned by the identified subset of rules as a second training dataset. The process of iteratively applying the retrained model, identifying the subset of rules that most accurately match the labels assigned by the retrained model, and performing additional retraining of the model is repeated to further refine and improve the performance of the machine learning model for named entity recognition.
[0008] In another embodiment, the present invention provides a system for training a machine learning model to perform named entity recognition. The system includes an electronic processor configured to identify all possible entity candidates and all possible rule candidates in an input dataset of unlabeled text. The electronic processor performs initial training of the machine learning model by seeding a set of rules onto the input dataset to assign labels to entity candidates and using the label assignments as a first training dataset. The electronic processor then applies the trained machine learning model to the unlabeled text and identifies a subset of rules from the rule candidates that produce labels that most accurately match the labels assigned by the trained machine learning model. The electronic processor then retrains the machine learning model using the labels assigned by the identified subset of rules as a second training dataset. The process of iteratively applying the retrained model, identifying the subset of rules that most accurately match the labels assigned by the retrained model, and performing additional retraining of the model is repeated to further refine and improve the performance of the machine learning model for named entity recognition.
[0009] Other aspects of the invention will become clear upon consideration of the detailed description and accompanying drawings. Attached Figure Description
[0010] Figure 1 This is a block diagram of a system for training and using a machine learning-based named entity recognition (NER) mechanism according to one embodiment.
[0011] Figure 2 Is using Figure 1 A schematic diagram of an example of a system training and / or application of the NER mechanism.
[0012] Figure 3It is used for training using automatically generated logical rules. Figure 1 A schematic diagram of the system framework of the NER mechanism in the system.
[0013] Figure 4 It is for use Figure 3 System framework training Figure 2 The flowchart of the NER mechanism. Detailed Implementation
[0014] Before explaining any embodiments of the invention in detail, it should be understood that the invention is not limited in its application to the details of the construction and arrangement of the components set forth in the following description or illustrated in the following drawings. The invention can have other embodiments and can be practiced or implemented in various ways.
[0015] Figure 1 An example of a computer-based system 100 is illustrated, which can be configured to train a Named Entity Recognition (NER) machine learning mechanism, to apply a trained NER mechanism, or both. System 100 includes an electronic processor 101 and a non-transitory computer-readable storage 103. Storage 103 stores data and computer-executable instructions accessed and executed by the electronic processor 101 to provide the functionality of system 100, including, for example, the functionality described herein. The electronic processor 101 is communicatively coupled to a display 105 and a user input device 107 (e.g., a keyboard, mouse, touchscreen, etc.) to provide a user interface for the operating system 100 and for displaying data to the user. The electronic processor 101 is also communicatively coupled to an input / output device 109 (e.g., a wired or wireless communication interface) for communicating with other computer-based systems.
[0016] Figure 2 The diagram illustrates the process of... Figure 1 This is an example of a machine learning model trained and / or applied by system 100. Machine learning model 201 is configured to receive unstructured and unlabeled text as input, including, for example, text statements 203. In response to receiving input text, the machine learning model is configured to output each of a plurality of “spans” of the text from the statement, along with a label assigned to each span. The labels output by machine learning model 201 indicate whether the span has been identified as a named entity, and if so, which category label has been assigned to the span. Figure 2In the example, the machine learning model has already identified three distinct spans 205, 207, and 209 in the input statement 203. The first span 205 has been assigned a "person" label 211 by the machine learning model 201, indicating that the text in the first span 205 has been identified as corresponding to a person's name. The second span 207 has been assigned a "location" label 213 by the machine learning model 201, indicating that the text in the second span 207 has been identified as corresponding to a location name (e.g., building, city, state, country, etc.). Finally, the third span 209 has been assigned a "person" label 213 by the machine learning model 201. NEG "Marked 215. As described in further detail below," NEG "Note 215 indicates that machine learning model 201 has determined that the text in the third span 209 does not correspond to any named entity."
[0017] Each "span" can include a single word from the input statement or a combination of multiple words from the input statement. For example, if the statement "I like running" is provided as input to machine learning model 201, in some implementations, the machine learning model can be configured to produce the following spans as output: [I], [like], [running], [I like], [like running], and [I like running]. Although Figure 2 The specific example shows that machine learning model 201 produces only 3 spans as output, but in other implementations, machine learning model 201 can be configured to output more or fewer signature spans. Similarly, in some implementations, the number of spans produced as output can vary depending on the statement provided as input. In fact, in some implementations, machine learning model 201 can be configured to produce all possible spans in the input statement as output.
[0018] As another example, if the statement "George lives in London" is provided as input 203, then the trained machine learning model 201 can be configured to produce the following combination of spans and labels as output: span Label [George] PER ("person") [Life] [exist] [London] LOC (Location) [George's Life] [George lives in] George lives in London. [Living in] [Living in London] [In London] Table 1.
[0019] Figure 3 The diagram illustrates the training process. Figure 2The machine learning model 201 is an example of a framework for performing named entity recognition and annotation on unstructured text input. Both entity candidate generator 301 and rule candidate generator 303 are applied to an unlabeled training dataset 305. Entity candidate generator 301 is configured to automatically process the input text 305 to identify all possible candidates (e.g., "span") in the input text 305. Similarly, rule candidate generator 303 is configured to automatically generate potential "candidate rules" from unlabeled data that might be used to determine whether a particular "span" is a named entity.
[0020] Entity candidates and rule candidates are provided as input to the iterative NER training module 307. Rule labeler 309 automatically applies a set of labeling rules 311 to each entity candidate and assigns labels to them. As described further below, in the first iteration of the iterative NER training module 307, the labeling rules 311 comprise a basic set of seeding rules 313. The labeled data from rule labeler 309 is then provided as training input to neural NER model 315. Raw unlabeled data 305 is then provided as input to the trained neural NER model 315 to produce “predicted data” output. The predicted data includes the identifiers of one or more spans and the labels assigned to those spans by the trained neural NER model 315 (see, for example, Table 1 above). Rule selector 317 is then configured to score and select the most accurate labeling rule from the set of rule candidates (generated by rule candidate generator 303) by applying rule candidates to the unlabeled data and comparing the result of each rule with the predicted data output by neural NER model 315.
[0021] The set of rule candidates identified by rule selector 317 as the most accurate is then used as the annotation rule 311 for the next iteration. In the next iteration of the NER training module 307, rule annotator 309 applies the selected set of rules to entity candidates to produce a new labeled dataset, and the new labeled dataset is used as training data to retrain the neural NER model 315. The updated neural NER model 315 is then applied to unlabeled data 305 to produce a new prediction dataset, and rule selector 317 identifies the set of rule candidates that produce the most accurate result matching the output of the updated neural NER data 315. In various implementations, this iterative process 307 is repeated until an exit condition is met (e.g., after a defined number of iterations, after an implementation-defined performance metric, or until rule selector 317 converges to a specific set of labeled rules).
[0022] Figure 4 The diagram illustrates the process of... Figure 1 An example of a system application method that uses... Figure 3The framework is used to train machine learning mechanisms (e.g., artificial neural networks) to perform named entity recognition and annotation (e.g., ...). Figure 2 (As illustrated in the example). System 100 begins by applying entity candidate generator 301 to unlabeled data 305 to identify all entity candidates (step 401) and rule candidate generator 303 to unlabeled data to identify all rule candidates (step 403). Next, system 100 applies seeded rule set 213 to entity candidates to label entity candidates (step 405) and uses this “weakly labeled” dataset as training data to train neural NER model 315 (step 407). System 100 then applies the initially trained neural NER model 315 to the original unlabeled data 305 (step 409) to produce a “predicted data” labeled set. Each rule candidate from rule candidate generator 303 is also applied to the original unlabeled data (step 411), and the accuracy of each rule candidate is scored by comparing the results of the rule candidates with the “predicted data” labeled set from the initially trained neural NER model 315 (step 413). The system identifies the best-performing rule candidates (e.g., generating rule candidates that most accurately match the "predicted data" annotation set generated by the neural NER model) (step 415). System 100 then applies this identified best-performing set of rule candidates as new annotation rules to the original unlabeled data (step 417), and retrains the neural NER model using the data annotated with the new annotation rule set as training data (step 407). The retrained neural NER model 315 is then applied to the original unlabeled data to generate a new "predicted data" annotation set (step 409), and each rule candidate is scored again—this time by comparing the annotations generated by each rule candidate with the new predicted data annotation set generated by the retrained neural NER model (step 413).
[0023] After each iteration, system 100 determines whether the target performance of neural NER model 315 has been achieved (step 419). If not, system 100 performs another iteration of retraining for neural NER model 315. However, once system 100 determines that the target performance has been achieved, training is complete (step 421). In some implementations, neural NER model 315 can then be used... Figure 4 The method and different unlabeled datasets were further trained, while in other implementations, the trained neural NER model 315 was ready to use.
[0024] Figure 3The training framework iteratively leverages both explicit logical rules and neural representations to discover new entities from unannotated corpora. Since the framework uses logical rules to obtain "weak" annotations and identify entities, each system prediction can be traced back to the original logical rule, making the prediction results interpretable.
[0025] In some implementations, the rule candidate generator 303 is configured to use rule templates (e.g., atomic rules and composite rules) to extract possible rule candidates from unannotated data 305. An "atomic rule" is a rule that can be used to depict a signal aspect of a candidate entity, while a "composite rule" is a rule that can be used to match multiple aspects of an entity. In some implementations, the atomic rules r ti are atomic matching logic generated from rule templates t i . Each atomic rule is associated with entity annotations. Examples of atomic rule templates include: (1) SurfaceForm (a surface name that matches a given full name of an entity (e.g., if x matches "London", then x is a LOC)); (2) Prefix (matches the prefix of a candidate span (e.g., if x matches "Lon*", then x is a LOC)); (3) Suffix (matches the suffix of a candidate span (e.g., if x matches "*don", then x is a LOC)); (4) PreNgram (matches the left context of a candidate span (e.g., if "located in x ", then x is a LOC)); (4) PostNgram (matches the right context of a candidate span (e.g., if " x town", then x is a LOC)); (5) POStag (matches the part-of-speech pattern of a candidate span); and (6) PreDependency (the parent and sibling of the span on its dependency tree).
[0026] For example, consider the following sentence: "The new company is called AdOn GmbH and is located in Hamburg." If we use the PreNgram rule "the company is called {*}", then we will match the following spans: [AdOn], [AdOn GmbH], [AdOn GmbH and], etc., up to the maximum length of the span. Therefore, using only atomic rules will introduce many "noisy" spans (i.e., spans that are incorrectly identified as "named entities" by the atomic rules).
[0027] A compound rule is a complex of multiple atomic rules connected by logical conjunction "^", logical disjunction "v", or other logical operators, and is formulated as follows: in r 1 , r 2 … r n It is an atomic rule, and It is a logical function that connects atomic rules. Consider again the statement: "The new company is called AdOn GmbH and is located in Hamburg." If we have a compound rule from the template (PreNgram ^POStag) "(The company is called {*}, PROPN)" (where "PROPN" is a part-of-speech tag for a proper noun), then we will have a perfect match for the entity [AdOn GmbH].
[0028] Therefore, in some implementations, for each candidate entity, the rule candidate generator 303 will extract all its rules based on a given rule template. Effective rules may differ for different domains. Therefore, the system may potentially be configured to use different types of rules for different target domains. For example, in some biomedical datasets, prefix and suffix rules are more efficient rule templates than part-of-speech tags. In some implementations, the above... Figure 3 The example shown illustrates a framework that allows users to customize their rule templates based on their datasets and domains.
[0029] As discussed above, rule labeler 309 is configured to receive a set of unlabeled candidate entities (i.e., spans) and a set of labeling rules 311, and apply the labeling rules to the unlabeled spans to obtain weakly labeled data. In some cases, it may be possible that different rules produce different labels for the same candidate entity. Therefore, in some implementations, system 100 is configured to use a majority vote approach to handle rule conflicts. For example, if a candidate entity matches a total of three rules, and two rules label the candidate entity as "location," while the third rule labels the entity as "organization," then system 100 will use majority voting to assign the "location" label to the candidate entity. In some implementations, if an equal number of rules apply each different label to a candidate entity (e.g., a "tie"), then system 100 will be configured to label the candidate entity as "abstain," meaning that the candidate entity will not be assigned a label for training the neural NER model 315.
[0030] As referenced above Figure 2In some implementations, the machine learning model 201 (e.g., neural NER model 315) discussed is configured to produce different sets of spans and labels assigned to each output span as outputs. Given n Statements marked x = [ w 1 , w 2 , … , w n ] , span ,in b i and e i These are the start and end indices, respectively. The span can be represented by two components: content representation. Calculated as a weighted average of all labeled embeddings across the span; and boundary representation. This is connected to the embedding at the beginning and end positions of the span. Specifically: TokenRepr is the embedding layer (which can be non-contextualized or contextualized), BiLSTM is the bidirectional LSTM layer, and SelfAttn is the self-attention layer.
[0031] In some implementations, the neural NER model 315 is configured to use a multilayer perceptron (MLP) to predict up to a fixed length. l Annotation of all spans for each word: in o i This refers to the prediction of the span. As discussed above, in some implementations, negative annotation... NEG It is used as an additional label to indicate invalid spans (e.g., spans that are not named entities in unlabeled data).
[0032] As discussed above, rule candidate generator 303 is configured to generate all candidate rules from unlabeled data using predefined rule templates. Figure 3In some implementations of the learning framework, the system is configured to automatically select new labeling rules from rule candidates using a rule selector 317. In each iteration, the rule selector 317 scores all candidate rules and selects the rule with the highest score as the new labeling rule 311. For example, in some implementations, the system first uses a trained neural NER model 315 (i.e., the “predicted data” label set) to estimate possible labels for all candidate spans, and then scores each candidate rule by comparing the result of each rule with these weakly estimated labels. In some implementations, each candidate rule can be computed using the following equation. r i Rating: in F i It is by rules r i The number of extracted category members (i.e., the span of "correctly" labeled members), and N i It is by rules r i The total number of spans extracted. This method considers both the precision and recall of the rules because... The component is a precision score of the rule, and Components represent the ability of a rule to classify across a wider range. For example, if the rule... r 1 Match 100 instances ( N 1 = 100), and the 80 spans matching this rule were also assigned the same annotation by the neural NER model 315 ( F 1 = 80), then the rule r 1 The score will be F( r 1 =5.06.
[0033] In some implementations, the system is configured to identify the number of definitions for each rule template and each entity category. N The highest-scoring rule is used as the new annotation rule for the next iteration. In some implementations, the system is configured to use the highest-scoring rule for the first iteration. N = 5. In some implementations, the system is also configured to set a threshold for rule precision ( τ =0.8) to prevent low-precision rules from being added to the annotation rule pool. This method allows for the consideration of various patterns, and they are precise enough that all patterns are closely associated with entity categories.
[0034] Therefore, among other things, the systems and methods described in the examples above also provide a mechanism for weakly supervised training of machine learning-based named entity recognition (NER) models, which iteratively scores an automatically generated set of rule candidates against a trained NER model and uses the highest-scoring rule candidate to generate training data labels for subsequent retraining iterations of the NER model. The features and advantages of this invention are set forth in the following claims.
Claims
1. A method for training a machine learning model to perform named entity recognition on unlabeled text data, said machine learning model being configured to receive unlabeled text data as input and produce one or more text spans identified as named entities and category labels assigned to each of the one or more text spans identified as named entities as output, said method comprising: Multiple entity candidates are identified by an electronic processor from an input dataset of unannotated text, each of the multiple entity candidates including a text span from the input dataset; An electronic processor applies a seeding rule set to the input dataset to assign labels to each of the plurality of entity candidates in order to generate a labeled input dataset; The labeled input dataset is used as the first training dataset to train the machine learning model; The trained machine learning model is applied to the unlabeled text of the input dataset to produce a first prediction dataset, the first prediction dataset including one or more text spans from the unlabeled text identified as named entities and category labels assigned to each of the one or more text spans identified as named entities. Multiple rule candidates are automatically generated by an electronic processor from an input dataset of unlabeled text, each of which is generated using a set of rule templates. The multiple rule candidates are applied to the unlabeled text of the input dataset to generate a labeled candidate dataset; From the plurality of rule candidate identifiers, a subset of rules is identified, which, when applied to unlabeled text, assigns labels to entity candidates that most accurately match the labels assigned in the first prediction dataset; as well as The machine learning model is retrained using the annotations assigned by the identified subset of rules as a second training dataset.
2. The method according to claim 1, further comprising: The retrained machine learning model is applied to the unlabeled data in the input dataset to produce a second prediction dataset; A second rule subset is identified from the plurality of rule candidates. When applied to unlabeled text, the second rule subset assigns labels to the entity candidate that most accurately matches the labels assigned in the second prediction dataset. as well as The machine learning model is further retrained using the annotations assigned by the identified subset of the second rules as a third training dataset.
3. The method of claim 1, further comprising iteratively retraining the machine learning model by repeating the following actions. Apply the retrained machine learning model to the unlabeled text of the input dataset; From the plurality of rule candidates, a subsequent subset of rules is identified, which, when applied to unlabeled text, assigns labels to entity candidates that most accurately match the labels assigned by the retrained machine learning model; and Additional iterative retraining of the machine learning model is performed using the labels assigned by the subset of subsequent rules as the subsequent training dataset.
4. The method of claim 1, wherein identifying the plurality of entity candidates by the electronic processor from an input dataset of unannotated text includes identifying the following as entity candidates: The text span of each individual word in the unannotated text; and The text span of each sequence of two or more consecutive adjacent words in unannotated text.
5. The method of claim 1, wherein applying the seeding rule set to the input dataset includes applying a small predefined symbol rule set to the input dataset.
6. The method of claim 1, wherein automatically generating the plurality of rule candidates from an input dataset of unannotated text comprises generating each possible rule defined by each rule template in the rule template set for each of the plurality of entity candidates.
7. The method of claim 1, wherein automatically generating the plurality of rule candidates from an input dataset of unlabeled text comprises generating a plurality of atomic rules and a plurality of combination rules for each of a plurality of category labels, wherein each of the plurality of atomic rules assigns a category label to each entity candidate that satisfies a single matching criterion defined by the atomic rule, and wherein each of the plurality of combination rules assigns a category label to each entity candidate that satisfies a matching criterion defined by different combinations of two or more atomic rules.
8. The method of claim 1, wherein allocating a subset of rules from the plurality of rule candidate identifiers that most accurately matches the assigned labels in the first prediction dataset comprises: A score is assigned to each rule candidate based on the number of rule candidates and entity candidates that have been assigned the same label by the trained machine learning model. as well as The identified subset of rules includes the highest-scoring rule for the number of definitions for each category label across multiple category labels.
9. The method of claim 1, wherein allocating a subset of rules from the plurality of rule candidate identifiers that most accurately matches the assigned labels in the first prediction dataset comprises: At least partially based on The ratio of scores is assigned to each rule candidate, where F i It is the number of rule-based candidates and entity candidates assigned the same label by a trained machine learning model, and among them N i It is the total number of entity candidates that have been assigned the same label by the rule candidate.
10. The method of claim 9, wherein assigning a score to each rule candidate further comprises assigning a score to each rule candidate based on the following formula: in F ( r i ) is assigned to rule candidates r i The rating.
11. A computer-based system for training a machine learning model to perform named entity recognition on unlabeled text data, the machine learning model being configured to receive unlabeled text data as input and produce one or more text spans identified as named entities and category labels assigned to each of the one or more text spans identified as named entities as output, the system comprising an electronic processor configured to: The input dataset of unlabeled text identifies multiple entity candidates, each of which includes a text span from the input dataset; The seeding rule set is applied to the input dataset to assign labels to each of the plurality of entity candidates in order to generate a labeled input dataset; The labeled input dataset is used as the first training dataset to train the machine learning model; The trained machine learning model is applied to the unlabeled text of the input dataset to produce a first prediction dataset, the first prediction dataset including one or more text spans from the unlabeled text identified as named entities and category labels assigned to each of the one or more text spans identified as named entities. Multiple rule candidates are automatically generated from an input dataset of unlabeled text, each of which is generated using a set of rule templates. Apply the multiple rule candidates to the unlabeled text of the input data; From the plurality of rule candidate identifiers, a subset of rules is identified, which, when applied to unlabeled text, assigns labels to entity candidates that most accurately match the labels assigned in the first prediction dataset; as well as The machine learning model is retrained using the annotations assigned by the identified subset of rules as a second training dataset.
12. The system of claim 11, wherein the electronic processor is further configured to: The retrained machine learning model is applied to the unlabeled data in the input dataset to produce a second prediction dataset; From the plurality of rule candidate identifiers, a second rule subset is identified, which, when applied to unlabeled text, assigns labels to entity candidates that most accurately match the labels assigned in the second prediction dataset; and The machine learning model is further retrained using the annotations assigned by the identified subset of the second rules as a third training dataset.
13. The system of claim 11, wherein the electronic processor is further configured to iteratively retrain the machine learning model by repeatedly performing the following: Apply the retrained machine learning model to the unlabeled text of the input dataset; From the plurality of rule candidates, a subsequent subset of rules is identified, which, when applied to unlabeled text, assigns labels to entity candidates that most accurately match the labels assigned by the retrained machine learning model; and Additional iterative retraining of the machine learning model is performed using the labels assigned by the subset of subsequent rules as the subsequent training dataset.
14. The system of claim 11, wherein the electronic processor is configured to identify the plurality of entity candidates from an input dataset of unlabeled text by identifying the following as entity candidates: The text span of each individual word in the unannotated text; and The text span of each sequence of two or more consecutive adjacent words in unannotated text.
15. The system of claim 11, wherein the electronic processor is configured to apply a seeding rule set to the input dataset by applying a small, predefined set of symbolic rules to the input dataset.
16. The system of claim 11, wherein the electronic processor is configured to automatically generate the plurality of rule candidates from an input dataset of unlabeled text by generating each possible rule defined by each rule template in the rule template set for each of the plurality of entity candidates.
17. The system of claim 11, wherein the electronic processor is configured to automatically generate the plurality of rule candidates from an input dataset of unlabeled text by generating a plurality of atomic rules and a plurality of combination rules for each of a plurality of category labels, wherein each of the plurality of atomic rules assigns a category label to each entity candidate that satisfies a single matching criterion defined by the atomic rule, and wherein each of the plurality of combination rules assigns a category label to each entity candidate that satisfies a matching criterion defined by different combinations of two or more atomic rules.
18. The system of claim 11, wherein the electronic processor is configured to allocate a subset of rules from the plurality of rule candidate identifiers that most accurately match the assigned labels in the first prediction dataset by: A score is assigned to each rule candidate based on the number of rule candidates and entity candidates with the same label assigned by the trained machine learning model; and The identified subset of rules includes the highest-scoring rule for the number of definitions for each category label across multiple category labels.
19. The system of claim 11, wherein the electronic processor is configured to operate at least partially based on A score is assigned to each rule candidate based on a ratio, and a subset of rules is allocated from the plurality of rule candidate identifiers that most accurately matches the assigned labels in the first prediction dataset, wherein... F i It is the number of rule-based candidates and entity candidates assigned the same label by a trained machine learning model, and among them N i It is the total number of entity candidates that have been assigned the same label by the rule candidate.
20. The system of claim 19, wherein the electronic processor is further configured to assign a score to each rule candidate by assigning a score to each rule candidate based on the following formula: in F ( r i ) is assigned to rule candidates r i The rating.
Citation Information
Patent Citations
Threat intelligence oriented entity identification method and system
CN109858018A
