Hierarchical entity recognition and semantic modeling framework for information extraction

Generating entity graphs through user-defined entity hierarchies and relationships, combined with machine learning models for entity extraction, solves the problem that existing tools are difficult to adapt to the application of specific documents and professional knowledge, and improves the accuracy and performance of entity extraction.

CN111656453BInactive Publication Date: 2024-09-13KONINKLIJKE PHILIPS NV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201880087730.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2017-12-25
Filing Date
2018-12-24
Publication Date
2024-09-13
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing entity extraction tools have difficulty adapting to specific types of documents and applying clinicians' expertise to machine learning models, resulting in poor extraction performance.

Method used

Through the user-defined entity hierarchy and relationships, the entity graph is generated, the entity graph is used to parse the document, and the machine learning model is combined for entity recognition and training to achieve entity extraction, and the entity recognition definition is improved through the feedback loop.

Benefits of technology

It improves the accuracy and performance of entity extraction, reduces running time, allows clinicians' professional knowledge to be effectively applied to machine learning models, and enhances the ability to extract information from clinical documents.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111656453B_ABST
    Figure CN111656453B_ABST
Patent Text Reader

Abstract

Entities are extracted from documents using a hierarchical entity graph of entities. Entity definitions and entity recognition definitions are customized and provided by a user. Configuration information is used to generate (905) an entity graph, which is then used to parse one or more documents. In some embodiments, the resulting parse tree can be used in conjunction with user feedback to generate one or more training instances of a machine learning model, which is assigned to one or more of the customized nodes as entity recognition definitions. Parsing of the resulting tree can be performed using a lazy parsing method, wherein only portions of interest to the user are identified in the document.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0001] Information extraction (particularly in clinical documents) often requires the collection of key-value pairs of interest to clinicians. To accomplish this task, entity recognition is used to identify keys, and secondly, relationships can be extracted from the identified entities to identify meaningful entities in the document. In conventional methods for extracting meaningful related entities, two methods are generally used: named entity extraction (i.e., NER) and entity relationship extraction (i.e., ER). Existing methods require a set of manually processed (e.g., user-curated) rules or heuristics, often in the form of regular expressions, to identify entities in documents. Regular expressions are useful in many ways because they are quickly created and require little data for running and testing samples, and also because they are concise in terms of generation and presentation. However, when used to identify entities, regular expressions are still limited by their simplicity. On the other hand, machine learning methods are more robust, but face difficulties in determining whether a trained machine model is actually extracting "real" data, and require verification to verify whether a given model is properly identifying entities in a document.

[0002] Furthermore, in clinical documents, some information may be difficult to extract using rule-based or machine learning methods alone. For example, a document may include information about multiple tumors for a patient, but may not include a specific number of tumors. Semantic extraction using rule-based or machine learning methods alone may prove difficult because, semantically, each tumor may be described semantically differently, and any particular rule or trained machine learning model may not be able to identify semantic variations alone.

[0003] Therefore, multiple deficiencies in previous approaches have been identified. In particular, current entity extraction tools cannot be manually processed by users to fit specific types of documents while still being able to utilize machine learning methods. In addition, current methods make it difficult to incorporate clinician knowledge into the extraction task, and clinician expertise and understanding techniques are not properly applied to machine learning solutions. If clinician understanding and expertise are properly applied to or applied in conjunction with machine learning models, performance can be improved, resulting in better results and better performance. Summary of the invention

[0004] The present specification generally relates to a method for parsing a user's document using entity and entity recognition definitions provided by a user. The user can define a hierarchy of entities, each entity having a method for identifying the entity in a document. The entity definitions are compiled and an entity graph is generated for the definitions. The user can then call a parser to identify information from a document, which is generated at runtime based on the entity graph and the identified document. The requested entity and sub-entities of the requested entity are parsed from the document, thereby allowing a substantial runtime reduction by eliminating the requirement to model the entire file based on the entity graph, regardless of whether the user has an interest in all of the represented entities. Subsequent requests for entities from the document may result in already identified entities being provided, and / or may result in additional modeling of the document based on the entity graph. In some embodiments, one or more of the entities (e.g., via their corresponding graph nodes) may be associated with a machine learning model for identifying the entity. The results from the parse tree may be annotated by the user and also used to generate training instances for one or more machine learning models, thereby allowing a feedback loop to improve subsequent calls to entity recognition definitions.

[0005] In some embodiments, a method performed by one or more processors is provided, and the method includes: receiving a configuration file including one or more custom entity definitions, and each custom entity definition includes an entity recognition definition; generating an entity graph based on the custom entity definitions, the entity graph defining relationships between the custom entity definitions; identifying a document of interest; parsing the document of interest using the entity graph to generate a document tree; and providing the document tree to a user. Parsing the document of interest may include: identifying a plurality of tokens in the document of interest; determining a document entity for each of the tokens, wherein the document entity matches one of the custom entity definitions; and generating a document tree based on the document entities, the custom entity definitions, the relationships between the custom entity definitions, and the document of interest, wherein the document tree includes the document entities and the relationships between the document entities.

[0006] In some implementations, the method may further include: identifying a parser for the document tree; receiving a parsing request from the user; parsing the document tree to identify one or more entities responsive to the parsing request; and providing output indicating the responsive entities to the user. In some of those implementations, only entities responsive to the parsing request may be included in the document tree. In some of those versions, the method may further include the steps of: receiving a second parsing request from the user; parsing the document tree to identify one or more additional entities responsive to the second parsing request; and providing output indicating the additional entities, wherein only the one or more entities and the one or more additional entities are included in the parsed tree.

[0007] In some embodiments, the method may further include the following steps: receiving annotation information associated with the document tree; generating one or more training instances based on the document tree and the annotation information; and updating one or more of the entity recognition definitions based on the training instances. In some embodiments, at least one of the entity recognition definitions may be a machine learning model.

[0008] In some embodiments, parsing the document of interest may include parsing multiple copies of the document of interest in parallel and merging the parsed copies. In some of those embodiments, the parallel parsing and merging may be performed according to a map and reduce paradigm. In some of those embodiments, conflicts between the parsed copies may be resolved by truncating one or more entities that conflict in at least one of the parsed copies. In some of those embodiments, conflicts between the parsed copies may be resolved by expanding a parent entity to include all of one or more child entities of the parent entity.

[0009] In another aspect, a non-transitory computer-readable medium is provided, and the medium includes instructions, which, in response to execution of the instructions by one or more processors, cause the one or more processors to perform the following operations: receive a configuration file, wherein the configuration file includes one or more custom entity definitions, and wherein each custom entity definition includes an entity recognition definition; generate an entity graph based on the custom entity definitions, wherein the entity graph defines relationships between the custom entity definitions; identify a document of interest; parse the document of interest using the entity graph, wherein parsing the document of interest includes: identifying multiple markers in the document of interest; determining a document entity for each of the markers, wherein the document entity matches one of the custom entity definitions; and generate a document tree based on the document entities, the custom entity definitions, the relationships between the custom entity definitions, and the document of interest, wherein the document tree includes the document entities and the relationships between the document entities; and provide the document tree to a user.

[0010] It should be appreciated that all combinations of the foregoing concepts and additional concepts described in greater detail herein are contemplated as part of the subject matter disclosed herein. For example, all combinations of claimed subject matter appearing at the end of this disclosure are contemplated as part of the subject matter disclosed herein. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 is a block diagram of an example environment in which embodiments disclosed herein may be implemented.

[0012] Figure 2 is an illustration of an example entity graph of entities in a hierarchy and the relationships between entities.

[0013] Figure 3 is a sample configuration file for entity and custom entity recognition definitions.

[0014] Figure 4 Illustration of the parallel runner and pattern solver executing sample text.

[0015] Figure 5 Illustrated is a parallel runner solving multiple instances of annotated text from a pattern solver.

[0016] Figure 6 is based on Figure 2 An illustration of the fully annotated text.

[0017] Figure 7 is a graphic representation of a conflict between a parent and a child entity.

[0018] Figure 8 Is a diagram of the entities in the entity graph that are resolved at runtime based on resolver commands.

[0019] Fig. 9 is a flow chart illustrating an example implementation of the method described herein.

[0020] Fig.10 An example architecture of a computing system is illustrated. DETAILED DESCRIPTION

[0021] Extracting meaningful entities from documents, particularly when entities are distributed within the document in a nested manner, can often prove to be a difficult task to automate. In some instances, rule-based systems can be employed, which are easy to provide but often overly restrictive with respect to the entities that can be extracted by any particular rule. For example, while a user may identify a series of rules for extracting entities in a particular domain, the user will often not have or have rules for every possible variation of terms that can describe an entity. Therefore, rule-based approaches often fail to generalize. Machine learning methods can be used as an alternative to extracting entities. However, machine learning methods require "ground truth"; that is, known correct answers that can be used to train and later verify the performance of a machine learning model.

[0022] When used alone, both rule-based systems and machine learning model extraction systems have weaknesses in obtaining semantic-level cognition, except for extracting entities and some relationships between entities. First, with machine learning methods, a large number of annotations are required from the curator to identify entities and verify that the machine learning technology has properly identified the entities. Second, and particularly in non-English documents, the grammar is not completely universal and / or varies between different authors. Therefore, the rules are not always the same for all authors of a particular type of document. Finally, existing methods have difficulties in extracting entities that exist in a nested manner, such as when an entity includes sub-entities and a parent entity can be identified by its constituent sub-components (which themselves can be sub-components of additional entities). Therefore, techniques to address these deficiencies are described herein.

[0023] Now go to Figure 1 , illustrates an example environment in which the techniques disclosed herein may be implemented. The example environment includes a client device 106 and a semantic application system 110. The client device 106 may be, for example, a standalone voice-activated speaker device, a desktop computing device, a laptop computing device, a tablet computing device, a mobile phone computing device, a computing device of a user's vehicle, and / or a wearable device of a user including a computing device (e.g., a user's watch with a computing device, a user's glasses with a computing device, a virtual or augmented reality computing device). Additional and / or alternative client devices may be provided.

[0024] Although the semantic application system 110 Figure 1 Although illustrated as being separate from the client device 106, in some implementations, all or some aspects of the semantic application system 110 may be implemented by the client device 106. For example, in some implementations, one or more of the components of the semantic application system 110 may be implemented by the client device 106. In the case where one or more (e.g., all) aspects of the semantic application system 110 are implemented by one or more computing devices remote from the client device 106, the client device 106 and those aspects of the semantic application system 110 communicate via one or more networks, such as a wide area network (WAN) (e.g., the Internet).

[0025] Although only one client device 106 is shown in conjunction with the semantic application system 110, in many embodiments, the semantic application system 110 can be remote and can interface with each of multiple client devices of multiple users. For example, the semantic application system 110 can manage communications with each of the multiple devices via different sessions and can manage multiple sessions in parallel. For example, in some embodiments the semantic application system 110 can be implemented as a cloud-based service using a cloud infrastructure (e.g., a server group or cluster of high-performance computers running software suitable for handling a large number of requests from multiple users). For simplicity's sake, many examples herein are described with respect to a single client device 106.

[0026] The semantic application system 110 includes a model configuration engine 112, a semantic modeling engine 120, a model runner 114, a parser 116, and annotator 118. In some implementations, one or more of the components of the semantic application system 110 may be omitted, combined, and / or implemented in a component separate from the semantic application system 110. Furthermore, the semantic application system 110 may include additional engines that are not illustrated herein for the sake of simplicity.

[0027] The semantic application system 110 receives an instance of user input from the client device 106. The user input may include, for example, one or more instances of entity modeling information generated by a user (e.g., a user profile), and / or the user input may include one or more documents to be parsed by the compiled semantic model. In some embodiments, the user input may also include annotations associated with one or more provided documents. In some embodiments, the one or more documents may be obtained from a database of documents (such as the document database 158). For example, the document database 158 may include clinical documents prepared by a clinician after examining a patient, for example to record (one or more) aspects of the patient's clinical status, such as the number of tumors detected, the type of tumor, the size of the tumor, etc.

[0028] Typically, the semantic application system 110 provides an interface to allow a user to submit one or more documents and execute the compiled semantic model based on the previous configuration information provided by the user. The model configuration engine 112 receives the configuration information from the client device 106 and uses the configuration information to generate a hierarchical tree of entity recognition information. During the configuration, which can be facilitated by one or more applications running on the client device 106, the user can define one or more target entities and also define pattern recognition algorithms and / or schemes for each entity. For example, the user can be provided with a graphical user interface that intuitively allows the user to create, drag, drop, and otherwise manipulate nodes corresponding to entities of interest.

[0029] The model configuration engine 112 receives entity definitions and recognition definitions (e.g., recognition schemes and / or algorithms) and creates configuration files to standardize the entity definitions. For example, a user may define entities and / or recognition definitions using one or more interfaces running on the client device 106, and the interface may provide the entity and / or other definitions to the model configuration engine 112, which may then standardize the information into a single configuration file. Thus, the model configuration engine 112 may receive configuration files, graphical user interface ("GUI") inputs, and / or other scripts to create configuration files.

[0030] As described herein, an entity is a semantic unit that is identifiable in one or more documents. An entity is a meaningful text token or a series of tokens associated with a semantic meaning. In some embodiments, an entity can be identified based on the contextual arrangement within a text string. For example, <tumor>( <tumor>) entities can be identified based on one or more contextual markers in the string, such as <size> ( <size>)Entity, <Type>( <type>) entity, and / or placement of other indicators regarding one or more markers in the string that define and / or reference <tumor>.

[0031] The semantic modeling engine 120 receives a configuration file from the model configuration engine 112 and generates a compiled entity graph based on the configuration file. The compiled entity graph is based on custom entity definitions specified by the user via a configuration file, a GUI, and / or other provided scripts. The compiled entity graph defines the relationships between the custom entity definitions and can be used to parse documents of interest. To build the graph, the semantic modeling engine 120 traverses each entity node in the compiled tree from bottom to top and creates graph entities and links for each entity. In addition, for each entity, the semantic modeling engine 120 associates a specified entity recognition definition with each entity, as specified in the configuration file generated and / or provided to the model configuration engine 112.

[0032] In some embodiments, to create an entity node, an entity template is generated by the semantic application 110 and provided to the user via the client device 106. The user may then provide template implementation details, such as an entity name, and / or specify a specific entity recognition definition for a specific entity. For example, the semantic model database 156 may include multiple entity recognition definitions that have been previously defined by the user, and / or may include a standardized library of recognition definitions. These may include, for example, regular expressions, conditional random fields ("CRF"), recurrent neural networks ("RNN"), for example, long short-term memory ("LSTM"), and combined LSTM-CRF. The user may specify a specific recognition definition from the semantic model database 156 for identifying an entity, provide an indication of the definition via the provided template, and also provide additional information that may be used to identify the entity in one or more documents. The template including the user information may then be processed by the model configuration engine 112 and / or the semantic modeling engine 120 to generate an entity graph. The generated graph may then be stored in the semantic model database 156 and / or one or more additional or alternative databases.

[0033] As a working example, a clinical document may include the following text: "Two tumors, one occupied at the right side of the gallbladder inside abdominal cavity sized 1.5x1.5x1.5 cm" and "Another tumor occupiedbetween VII segment of liver and right side kidney sized 2x2x2cm, no thrombusat portal vein". In order to automatically identify and extract meaningful information from a given string, it is necessary for the clinician to first generate a configuration file that includes a hierarchical structure for <tumor>. Reference Figure 2 , provides an example model for the <tumor> entity. Figure 2 The models illustrated in can be defined by a user via one or more mapping (eg, GUI) applications running on the client device 106, can be defined in one or more files, and / or can be generated using one or more alternative methods.

[0034] As illustrated, the root node is the parent node of all other nodes, including <tumor_number> (<tumor_number> ) node, <single_list>(<single_enum> ) nodes, and <cancer_thrombosis>(<cancer_thrombus> ) nodes. On the second level of the tree, the <tumor> nodes and<N_UQT> Nodes are provided as children of the <tumor_number> node, <diameter>( <diameter>) nodes and<seg_inter> The node is a child of the <single_enumeration> node, and <? thrombus> is a child of the <cancer_thrombus> node. The third and fourth levels of the tree are provided in the same way.

[0035] As shown, the entity with the mask <n> 、 and<N_UQT> Define entities for numbers, units, and quantities separately. Typically, <ant>Tags are used to define entities specific to anatomical locations, using <seg>Entities are used to define liver segments. Furthermore, the <tumor> entity defines a tumor, and the <? thrombus> entity defines whether a thrombus exists (hence the question mark, which indicates that the entity may not exist, or as an opposite, may exist). After defining these basic entities, larger entities including subentities can be defined as combinations of those entities. For example, <v>A solid is a volumetric solid and is defined as <n>, that is, a number. Similarly, the <diameter> entity is defined as a number <n>and units Additional defined entities include the definition of tumors being described as being located between segments<seg_inter> entity, a <single_enumeration> entity describing a single tumor, and a <cancer_thrombus> entity describing the entire description of a cancer thrombus.

[0036] against Figure 2 For each of the entities described in, an engine and / or recognition description may be assigned and used to recognize that given entity in a document. Figure 3 , a sample configuration file section is provided and includes a Figure 2 The configuration file may be generated by the semantic modeling engine 120 and / or may be provided by a user via the client device 106. For example, Figure 2 The diagram shown in FIG. 1 may be generated by a user via one or more applications running on the client device 106 and / or by the semantic modeling engine 120 from one or more templates provided to the user, and the semantic modeling engine 120 may generate the diagram in response to being provided with a custom entity definition and a custom entity recognition definition. Figure 3 configuration files.

[0037] Figure 3 The configuration file includes a definition 305 for a <single_enumeration> node, and a further definition 310 for a custom entity recognition definition. In addition, the <single_enumeration> node custom entity definition 305 includes a definition 315 for a child entity <diameter>. The <diameter> entity definition 315 additionally includes a custom entity recognition definition 320. Figure 3 The custom entity recognition definition referenced in can be a custom recognition model, such as a machine learning model (e.g., CNN, LSTM, etc.) stored in one or more databases (such as the semantic model database 156). In some embodiments, the custom entity recognition definition can be personal to the user, and / or can be a publicly available model and / or definition. Other examples of entity recognition definitions are previously mentioned, and can include, for example, regular expressions, conditional random fields, recursive neural networks (such as long short-term memory and combined long short-term memory networks), and / or other methods for entity recognition schemes.

[0038] For example, conditional random fields (CRFs) are a class of sequence modeling methods that, unlike discrete classifiers, take context into account during sequence labeling tasks. CRFs are often used in applications such as speech tagging, shallow parsing, and parts of named entity recognition (NER). Annotated text sequences with labels and specially designed feature templates are required in order to train CRFs for specific sequence labeling tasks. Therefore, task-specific knowledge must be developed to create language feature templates for training. Feedforward neural networks and recurrent neural networks with fixed window sizes can be used for sequence label classification and have achieved great success. Long short-term memory networks (or "LSTMs") are designed to avoid long-term correlation problems, where memory information over long time periods is the default behavior. As a result, they are suitable for learning long-term correlation context features in sequences.

[0039] In some embodiments, one or more entities may be generated based solely on information provided in a configuration file. For example, for a <single_list> entity, a definition is provided. In some embodiments, one or more entities may already be defined, either elsewhere in the configuration file or in a different configuration file. For example, a <single_list> entity definition includes children <v>and <ant>, as a "LOAD" child 325 in the definition, indicating that those entities are defined elsewhere and that the already defined definitions (including identification definitions) need only be loaded into the configuration file. Thus, a user can define an entity once and reuse the entity definition at a later time without having to redefine the entity and its identification definition. For example, one or more databases may include predefined entities and a user may simply specify an identifier of an entity to call the entity in a later configuration.

[0040] As previously described, the configuration file is generated by the model configuration engine 112 and the entity graph is compiled by the semantic modeling engine 120. In doing so, the semantic modeling engine 120 traverses the nodes of the entity graph and generates classes for each of the entities, either by loading existing classes or by creating new classes for new custom entities. Each of the entity classes includes a mask, i.e., Figure 2 The items in that are used by the model runner to replace entity information in the document.

[0041] The model runner 114 then receives an input document (e.g., a clinical review or report) from the client device 106 or obtains the input document from the document database 158, and executes the compiled entity graph to resolve entities from the identified document. The result is a document tree representing the hierarchy of entities identified in the document. In some embodiments, the model runner 114 follows a map-reduce paradigm, utilizing parallel runners 114A to perform mapping and utilizing pattern resolvers 114B to perform reducing. In the mapping step, the parallel runners 114A execute each entity node in the graph in a given layer of the entity graph in parallel (i.e., for each entity in a layer of the graph, parsing a copy of the input document) and marking the identified entities in each copy of the text. Once multiple copies of the input document have been marked, the pattern resolver 114B merges the marked text into a single representation of the input document in which all entities are marked. In addition, the pattern solver 114B resolves potential conflicts between copies of the text, such as when two entities are identified as occurring in the same portion of the text. Once a standard version of the text (in which all entities are labeled) has been determined for one level of the graph, the labeled text is used in the same manner for the entities of the next level. The model runner 114 continues parsing the text until the root node of the entity graph is reached.

[0042] refer to Figure 4 , a diagram of the mapping-reduction of the document is provided. The diagram includes entities defined in the entity graph and includes general entities E1, E2, E3, etc. For each of the entities in the bottom layer of the graph (i.e., E6-E10), a copy of the document is used to scan the document. Therefore, 5 instances of the parallel runner 114A are instantiated (i.e., R1-R5), each of which scans the document for one of the corresponding entities using the assigned custom entity recognition definition for the entity. The result is five annotated strings (S1-S5), each of which includes an annotation for one of the entities. The pattern solver 114B then combines S1-S5 into a single output space as a pattern tree, where any conflicts have been resolved by the pattern solver 114B. When the span of the resulting combined text includes multiple nested entities, the pattern solver 114B adjusts the resulting pattern tree to reflect the hierarchy of the entities in the entity graph.

[0043] refer to Figure 5 , provides an example of a pattern solver 114B using example phrases from a document. The phrase "Another tumor occupies a space between segment VII of the liver and the right kidney with a size of 2x2x2cm, no thrombus in the portal vein" has been identified, and the bottom-level entities have been identified. For example, the "2" in the phrase has been identified as <n>Entities (i.e., numbers), "cm" is recognized as Unit entity, "no thrombus in portal vein" is identified as <? thrombus>, "VII" is identified as <nrom>, and "liver", "kidney", and "portal vein" are identified as <ant>The parallel runner 114A generates each of the same texts and identifies one of the entities in each of the texts. The pattern solver 114B combines the individual texts into a single annotated text. Figure 6 ,The complete example text is illustrated and annotated in the same way as the pattern tree.

[0044] In some embodiments, there may be conflicts when identifying entities. For example, a text string may be recognized as a <diameter> entity and<seg_inter> In some embodiments, a user may define in a configuration file and / or via an interface when generating a configuration file a priority for resolving such conflicts when these entities are in the same layer of the entity graph. For example, a user may define<seg_inter> The priority of <diameter> is "1.0" and the priority of <diameter> is "0.5", which indicates that when both entities are identified for a given string or substring,<seg_inter> Has priority. As part of the <diameter> entity,<seg_inter> The portion of the entity conflict can be cut off from the <diameter> entity to resolve the conflict. In some embodiments, one or more additional methods can be used to resolve such conflicts. For example, a heuristic method can include identifying which of the entities has been associated with overlapping information in past documents and assigning scores to each of the entities. Then, entities with higher scores can be assigned to overlapping texts over lower-scoring entities. In some embodiments, the first entity assigned to a string can be the final entity and any subsequent entities can be cut off, thus retaining the first entity as the "correct" entity for the string.

[0045] In some implementations, conflicts may exist between layers of the entity graph. Figure 7 , provides an illustration of two different identifications of a string, one with one parent entity and one with three child entities. For example, an entity may include <ant>entity,<seg_inter> solid, and <diameter> solid, such as Figure 7 The <single_list> entity has been identified as spanning the <ant>Part of the entity,<seg_inter> The entire entity, and the portion of the <diameter> entity. The pattern solver 114B may rescale the boundaries of the <single_list> to include <ant>entity and the entirety of the <diameter> entity to preserve the hierarchical relationship between these entities and prevent unnecessary truncation of any information in the resulting schema tree.

[0046] The parser 116 allows the user additional functionality when processing the document tree generated by the model runner 114. In some embodiments, the parser 116 provides one or more operators (e.g., predefined functions that can be called) to allow the user to iterate, query, and / or otherwise perform information extracted from the document via one or more applications running on the client device 106. For example, once the model runner 114 has executed the model and created a document tree for a given document, the document tree can be stored in one or more databases. When the user is interested in utilizing the marked entities in the document via an application running on the client device 106, the parser 116 can provide an interface (such as an API) to the client device 106 to allow meaningful information to be extracted from the document tree.

[0047] In some embodiments, the model runner 114 operates via a lazy design paradigm. Only information about the portion of the entity graph to be executed is provided from the parser to the model runner 114. Thus, only a specific portion of the entity graph can be executed, while the rest of the graph remains in a static graph representation, such as that generated by the model configuration engine 112.

[0048] For example, refer to Figure 8 , provides an example of a model runner 114 that executes a lazy approach. The parser 116 may provide a "get next <single_enumeration>" command, which indicates that the application utilizing the parser 116 is only interested in <single_enumeration>. When executing this command, the model runner 114 only accesses the portion of the tree that includes the child entities of the <single_enumeration> entity, without accessing other portions of the pattern tree (i.e., entities and relationships illustrated with dashed lines). Any other nodes of the pattern tree remain unparsed, thus preventing unnecessary computation time when building the entire tree at runtime. When additional entities are requested by the parser 16, the model runner 114 may then utilize the parallel runner 114A and the pattern solver 114B to parse and identify the entities requested later. The semantic model may be stored in the semantic model database 156 as a partially parsed tree, subsequently accessed when additional entities are requested, and the new tree may then be stored in its location in the database 156.

[0049] The annotator 118 allows for ground truth annotations to be output from the semantic application system 110. Since one or more of the entity recognition definitions may be machine learning models (as described herein), the annotations provided via the annotator 118 may be used to verify that the model underlying the recognition algorithm is recognizing entities with acceptable accuracy. For example, a user may program the output from the semantic application system 110 with corrections to entity recognitions via the annotator 118. The resulting corrections may be used to further train one or more of the machine learning models used as entity recognition definitions, and / or may be used to verify future results from one or more models utilized in entity recognitions.

[0050] For example, refer to Figure 3 , the <diameter> entity is created using the custom entity recognition definition "machine_learning_model_1", which can be a machine learning model that has been trained based on previous training data. Once the model runner 114 recognizes the <diameter> entity and the parser 116 provides the entity to the user, the user can identify that the <diameter> entity is incorrect (or alternatively, confirm that the entity is correctly identified). The user can annotate the results using the annotator 118, and one or more components can update "machine_learning_model_1" to reflect the real information provided by the user. Therefore, the annotated results can be used as a training instance for the machine learning model, and / or can be used in the future to verify that the entity identified as <diameter> is "correct". In some embodiments, multiple machine learning models can be updated based on a single annotation. For example, the <diameter> entity can be a child entity of one or more other entities, and the machine learning model associated with the parent entity can also be updated and / or retrained based on the user annotation of the results.

[0051] refer to Fig. 9 A flow chart illustrating an example implementation of the methods described herein is provided. In some implementations, additional steps may be included and / or one or more steps may be omitted.

[0052] At step 900, a configuration file is received. The configuration file may be provided by a component that shares one or more characteristics with the device 106. The configuration file may include one or more custom entity definitions and definitions of methods for identifying entities in text. For example, a user may define entities using one or more tools executed on the device 106 and assign a recognition algorithm to each of the entities.

[0053] At step 905, an entity graph is generated based on the custom entity definitions in the configuration file. The entity graph determines how custom entities are related based on the configuration file, such as when an entity includes other entities. For example, a "volume" entity may include three "number" entities and one "unit" entity. Based on the custom entity definitions, an entity graph is generated that reflects the relationships between the entities.

[0054] At step 910, a document of interest is identified. The document of interest may be provided by device 106, and / or one or more components may identify a document stored in one or more databases. The document of interest may be, for example, a text document and include one or more strings that the user is interested in parsing to identify a custom entity, as defined in a configuration file.

[0055] At step 915, a plurality of tokens are identified in the document of interest. The tokens may be text strings of varying lengths and may be identified based on one or more tokenizing techniques. At step 920, for each of the tokens, a document entity is determined. The document entity is determined based on a custom entity definition in a configuration file and a custom recognition definition provided in the configuration file. At step 925, a document tree is generated based on the identified document entities. The document tree includes the tokens identified in the document, each token being labeled with a custom entity as described in the configuration file.

[0056] At step 930, the document tree is provided to the user. The document tree can then be used by the parser to extract entities from the document and provide the user with entity information from the document. For example, the user can extract all "tumor" entities from the document using the parser.

[0057] Fig.10 1010 is a block diagram of an example computing device 1010 that can optionally be used to perform one or more aspects of the techniques described herein. In some implementations, one or more of the device 106, the semantic application system 110, and / or other component(s) can include one or more components of the example computing device 1010.

[0058] The computing device 1010 typically includes at least one processor 1014 that communicates with a number of peripheral devices via a bus subsystem 1012. These peripheral devices may include: a storage subsystem 1024, including, for example, a memory subsystem 1025 and a file storage subsystem 1026; a user interface output device 1020; a user interface input device 1022; and a network interface subsystem 1016. The input devices and output devices allow interaction with a user of the computing device 1010. The network interface subsystem 1016 provides an interface to an external network and is coupled to corresponding interface devices in other computing devices.

[0059] User interface input devices 1022 may include: a keyboard; a pointing device, such as a mouse, a trackball, a touchpad, or a graphics tablet; a scanner; a touch screen incorporated into a display; an audio input device, such as a voice recognition system, a microphone; and / or other types of input devices. In general, the use of the term "input device" is intended to include all possible types of devices and methods for inputting information into computing device 1010 or on a communication network.

[0060] User interface output device 1020 may include a display subsystem, a printer, a fax machine, or a non-visual display such as an audio output device. The display subsystem may include a cathode ray tube (CRT), a flat panel device such as a liquid crystal display (LCD), a projection device, or some other mechanisms for producing visible images. The display subsystem may also provide a non-visual display, such as via an audio output device. Typically, the use of the term "output device" is intended to include all possible types of devices and methods for outputting information from computing device 1010 to a user or another machine or computing device.

[0061] Storage subsystem 1024 stores programming and data structures that provide the functionality of some or all of the modules described herein.For example, storage subsystem 1024 may include logic to perform selected aspects of the method(s) described herein.

[0062] These software modules are typically executed by processor 1014 alone or in combination with other processors. The memory 1025 used in the storage subsystem 1024 may include multiple memories, including a main random access memory (RAM) 1030 for storage of instructions and data during program execution and a read-only memory (ROM) 1032 in which fixed instructions are stored. The file storage subsystem 1026 can provide persistent storage for program and data files, and can include a hard drive, a floppy disk drive together with associated removable media, a CD-ROM drive, an optical drive, or a removable media box. Modules implementing the functionality of a particular embodiment can be stored in the storage subsystem 1024 by the file storage subsystem 1026, or in other machines accessible by (one or more) processors 1014.

[0063] The bus subsystem 1012 provides a mechanism for the various components and subsystems of the computing device 1010 to communicate with each other as intended. Although the bus subsystem 1012 is shown schematically as a single bus, alternative implementations of the bus subsystem may use multiple busses.

[0064] The computing device 1010 can be of varying types, including a workstation, a server, a computing cluster, a blade server, a server farm, or any other data processing system or computing device. Due to the ever-changing nature of computers and networks, for purposes of illustrating some embodiments, Fig.10 The description of computing device 1010 depicted in FIG. 1 is intended only as a specific example. Fig.10 Many other configurations of computing device 1010 are possible with more or fewer components than the computing device depicted.< / ant> < / ant> < / ant> < / ant> < / nrom> < / n> < / ant> < / v> < / n> < / n> < / v> < / seg> < / ant> < / n> < / diameter> < / type> < / size> < / tumor>

Claims

1. A method implemented by one or more processors, comprising: Receiving (900) a configuration file, wherein the configuration file includes one or more custom entity definitions and one or more entity identification definitions, each entity identification definition corresponding to a custom entity definition of the one or more custom entity definitions; generating (905) an entity graph based on the custom entity definitions, wherein the entity graph defines relationships between the custom entity definitions; Identifying (910) documents of interest; The document of interest is parsed using the entity graph, wherein parsing the document of interest comprises: identifying (915) a plurality of tokens in the document of interest, for each of the tokens, determining (920) a document entity based on one of the custom entity definitions and one of the entity identification definitions that corresponds to the one of the custom entity definitions, and generating (925) a document tree based on the document entities, the custom entity definitions, the relationships between the custom entity definitions, and the document of interest, wherein the document tree includes the document entities and the relationships between the document entities; and The document tree is provided (930) to a user.

2. The method according to claim 1, further comprising: identifying a parser (116) for the document tree; Receiving a parsing request from the user; parsing the document tree to identify one or more entities responsive to the resolution request; and An output indicative of a responsive entity is provided to the user.

3. The method according to claim 2, wherein: Only the entities that respond to the resolution request are included in the document tree.

4. The method according to claim 3, further comprising: receiving a second parsing request from the user; parsing the document tree to identify one or more additional entities responsive to the second resolution request; and An output is provided indicating the additional entity, wherein only the one or more entities and the one or more additional entities are included in the document tree.

5. The method according to claim 1, further comprising: receiving annotation information associated with the document tree; generating one or more training instances based on the document tree and the annotation information; and One or more of the entity recognition definitions are updated based on the training examples.

6. The method according to claim 1, wherein: At least one of the entity recognition definitions is a machine learning model.

7. The method according to claim 1, wherein: Parsing the document of interest includes parsing multiple copies of the document of interest in parallel and merging the parsed copies.

8. The method according to claim 7, wherein: The parallel parsing and the merging are performed according to a map and reduce paradigm.

9. The method according to claim 7, wherein: The conflicts between the resolved copies are resolved by truncating one or more entities that conflict in at least one of the resolved copies.

10. The method according to claim 7, wherein: Conflicts between resolved copies are resolved by expanding a parent entity to include all of the one or more child entities of the parent entity.

11. At least one non-transitory computer-readable medium comprising instructions that, in response to execution of the instructions by one or more processors, cause the one or more processors to: A configuration file is received (900), wherein: The configuration file includes one or more custom entity definitions and one or more entity identification definitions, each entity identification definition corresponding to one of the one or more custom entity definitions; generating (905) an entity graph based on the custom entity definitions, wherein the entity graph defines relationships between the custom entity definitions; Identifying (910) documents of interest; The document of interest is parsed using the entity graph, wherein parsing the document of interest comprises: identifying (915) a plurality of tokens in the document of interest, for each of the tokens, determining (920) a document entity based on one of the custom entity definitions and one of the entity identification definitions that corresponds to the one of the custom entity definitions, and generating (925) a document tree based on the document entities, the custom entity definitions, the relationships between the custom entity definitions, and the document of interest, wherein the document tree includes the document entities and the relationships between the document entities; and The document tree is provided (930) to a user.

12. The non-transitory computer readable medium of claim 11 , further comprising: identifying a parser (116) for the document tree; Receiving a parsing request from the user; parsing the document tree to identify one or more entities responsive to the resolution request; and An output indicative of a responsive entity is provided to the user.

13. The non-transitory computer readable medium of claim 12, wherein: Only the entities that respond to the resolution request are included in the document tree.

14. The non-transitory computer readable medium of claim 13, further comprising: receiving a second parsing request from the user; parsing the document tree to identify one or more additional entities responsive to the second resolution request; and An output is provided indicating the additional entity, wherein only the one or more entities and the one or more additional entities are included in the document tree.

15. The non-transitory computer readable medium of claim 11, further comprising: receiving annotation information associated with the document tree; generating one or more training instances based on the document tree and the annotation information; and One or more of the entity recognition definitions are updated based on the training examples.

16. The non-transitory computer readable medium of claim 11, wherein: At least one of the entity recognition definitions is a machine learning model.

17. The non-transitory computer readable medium of claim 11, wherein: Parsing the document of interest includes parsing multiple copies of the document of interest in parallel and merging the parsed copies.

18. The non-transitory computer readable medium of claim 17, wherein: The parallel parsing and the merging are performed according to a map and reduce paradigm.

19. The non-transitory computer readable medium of claim 17, wherein: The conflicts between the resolved copies are resolved by truncating one or more entities that conflict in at least one of the resolved copies.

20. A system comprising one or more processors and a memory capable of being coupled to the one or more processors, wherein: The memory stores instructions that, in response to execution of the instructions by one or more processors, cause the one or more processors to perform the following operations: Receiving (900) a configuration file, wherein the configuration file includes one or more custom entity definitions and one or more entity identification definitions, each entity identification definition corresponding to a custom entity definition of the one or more custom entity definitions; generating (905) an entity graph based on the custom entity definitions, wherein the entity graph defines relationships between the custom entity definitions; Identifying (910) documents of interest; The document of interest is parsed using the entity graph, wherein parsing the document of interest comprises: identifying (915) a plurality of tokens in the document of interest, for each of the tokens, determining (920) a document entity based on one of the custom entity definitions and one of the entity identification definitions that corresponds to the one of the custom entity definitions, and generating (925) a document tree based on the document entities, the custom entity definitions, the relationships between the custom entity definitions, and the document of interest, wherein the document tree includes the document entities and the relationships between the document entities; and The document tree is provided (930) to a user.