SYSTEM AND METHOD FOR EXTRACTING DATA FROM A SOURCE
Systems and methods are provided for extracting information from a document. An exemplary method includes: receiving a plurality of sample documents; retrieving image information for the sample documents; converting each of the image information associated with the plurality of sample documents into a knowledge graph; determining a plurality of rules applicable for processing the sample documents; retrieving the rules applicable for processing the sample documents; parsing the rules to create a plurality of abstract syntax trees; generating a plurality of rule results for the rules applicable for processing the sample documents; applying the rule results to a probabilistic model to determine accuracy of the rule results; generating a plurality of scores for each of the rules indicating accuracy of the rules; determining whether the scores require updating the probabilistic model; and updating the probabilistic model.
The present disclosure relates to a system and method for extracting data from documents or other sources of data in a structured or semi structured object or spatial entity.
BACKGROUNDOne of the difficult parts of using machine learning for document extraction is dealing with the variation of text and layout within a specific document type. There is a need to mimic the natural language descriptions people often give as instructions for how to find information on a document.
SUMMARYAccording to one aspect of the subject matter described in this disclosure, a method for extracting information from a document is provided. The method includes the following: receiving, using one or more processors, a plurality of sample documents; retrieving, using the one or more processors, image information for the sample documents; generating, using the one or more processors, hierarchical and spatial data of the image information of the sample documents to be used in a knowledge graph, wherein the knowledge graph defines hierarchical and spatial relationships between the sample documents; determining, using the one or more processors, a plurality of rules applicable for processing the sample documents; upon determining the rules applicable for processing the sample documents, retrieving, using the one or more processors, the rules applicable for processing the sample documents; parsing, using the one or more processors, the rules to create a plurality of abstract syntax trees; generating, using the one or more processors, the abstract syntax trees, and the knowledge graph, a plurality of rule results for the rules applicable for processing the sample documents, wherein each of the abstract syntax trees is evaluated on the knowledge graph to produce the rule results; applying, using the one or more processors, the rule results to a probabilistic model to determine accuracy of the rule results; generating, using the one or more processors and the probabilistic model, a plurality of scores for each of the rules indicating accuracy of the rules; determining, using the one or more processors, whether the scores require updating the probabilistic model, and upon determining the probabilistic model requires updating, updating, using the one or more processors, the probabilistic model for later processing.
According to another aspect of the subject matter described in this disclosure, a system for extracting information from a document is provided. The system includes one or more computing device processors. One or more computing device memories are coupled to the one or more computing device processors. The one or more computing device memories store instructions executed by the one or more computing device processors, the instructions are configured to: receive a plurality of sample documents; retrieve image information for the sample documents; generate hierarchical and spatial data of the image information of the sample documents to be used in a knowledge graph, wherein the knowledge graph defines hierarchical and spatial relationships between the sample documents; determine a plurality of rules applicable for processing the sample documents; upon determining the rules applicable for processing the sample documents, retrieve the rules applicable for processing the sample documents; parse the rules to create a plurality of abstract syntax trees; generate, using the abstract syntax trees and the knowledge graph, a plurality of rule results for the rules applicable for processing the sample documents, wherein each of the abstract syntax trees is evaluated on the knowledge graph to produce the rule results; apply the rule results to a probabilistic model to determine accuracy of the rule results; generate, using the probabilistic model, a plurality of scores for each of the rules indicating accuracy of the rules; determine whether the scores require updating the probabilistic model, and upon determining the probabilistic model requires updating, update and save the probabilistic model.
According to another aspect of the subject matter described in this disclosure, a method extracting information from a document is provided. The method includes the following: receiving, using one or more processors, a plurality of sample documents; retrieving, using the one or more processors, image information for the sample documents; generating, using the one or more processors, hierarchical and spatial data of the image information of the sample documents to be used in a knowledge graph, wherein the knowledge graph defines hierarchical and spatial relationships between the sample documents; determining, using the one or more processors, a plurality of rules applicable for processing the sample documents; upon determining the rules applicable for processing the sample documents, retrieving, using the one or more processors, the rules applicable for processing the sample documents; parsing, using the one or more processors, e the rules to create a plurality of abstract syntax trees; generating, using the one or more processors, the abstract syntax trees, and the knowledge graph, a plurality of rule results for the rules applicable for processing the sample documents, wherein each of the abstract syntax trees is evaluated on the knowledge graph to produce the rule results; applying, using the one or more processors, the rule results to a probabilistic model to determine accuracy of the rule results; generating, using the one or more processors and the probabilistic model, a plurality of scores for each of the rules indicating accuracy of the rules; determining, using the one or more processors, whether there is at least one additional sample document or at least one additional rule added by a user; upon determining the user added the least one additional sample document, updating, using the one or more processors, the knowledge graph to reflect changes presented by the at least one additional sample document; upon determining the user added the least one additional rule, updating, using the one or more processors, the abstract index trees to reflect changes presented by the at least one additional rule; updating, using the one or more processors, the updated knowledge graph, and the updated abstract syntax trees, the scores for each of the rules and the at least one additional rule; determining, using the one or more processors, whether the updated scores require updating the probabilistic model, and upon determining the probabilistic model requires updating, updating, using the one or more processors, the probabilistic model.
The disclosure is illustrated by way of example, and not by way of limitation in the figures of the accompanying drawings in which like reference numerals are used to refer to similar elements. The various elements shown in the figures that follow may be optional depending on a given embodiment without departing from the principles provided in this disclosure.
The figures and descriptions provided herein may have been simplified to illustrate aspects that are relevant for a clear understanding of the herein described devices, systems, and methods, while eliminating, for the purpose of clarity, other aspects that may be found in typical similar devices, systems, and methods. Those of ordinary skill may recognize that other elements and/or operations may be desirable and/or necessary to implement the devices, systems, and methods described herein. But because such elements and operations are well known in the art, and because they do not facilitate a better understanding of the present disclosure, a discussion of such elements and operations may not be provided herein. However, the present disclosure is deemed to inherently include all such elements, variations, and modifications to the described aspects that would be known to those of ordinary skill in the art.
The terminology used herein is for the purpose of describing particular example embodiments only and is not intended to be limiting. For example, as used herein, the singular forms “a”, “an” and “the” may be intended to include the plural forms as well, unless the context clearly indicates otherwise. The terms “comprises,” “comprising,” “including,” and “having,” are inclusive and therefore specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. The method steps, processes, and operations described herein are not to be construed as necessarily requiring their performance in the particular order discussed or illustrated, unless specifically identified as an order of performance. It is also to be understood that additional or alternative steps may be employed.
Although the terms first, second, third, etc., may be used herein to describe various elements, components, regions, layers and/or sections, these elements, components, regions, layers and/or sections should not be limited by these terms. These terms may be only used to distinguish one element, component, region, layer or section from another element, component, region, layer or section. That is, terms such as “first,” “second,” and other numerical terms, when used herein, do not imply a sequence or order unless clearly indicated by the context.
The disclosure describes a domain specific, proprietary programming system called the extracting query language (ZQL) programming system for the purpose of describing and mapping data on a document. A web-application based Graphical User Interface (GUI) may be used by users to interact with a document. Also, the GUI may allow users to write rules using a ZQL programming language defined by the ZQL programming system as well as assess results produced by the rules. An artificial intelligence/machine learning statistics process may be used, based on a Naïve Bayesian methodology, for generating probabilistic models which determine the ruleset with the highest probability of accuracy. The ZQL programming system may be implemented using Python. The application programming interfaces (APIs) of the ZQL programming system may be used for the translation of the ZQL programming language for generating rules that may be extensible to any industry standard and integrated into downstream programming processes.
The ZQL programming system may attempt to mimic the natural language descriptions people often give as instructions for how to find information on a document, and to reconcile how both hierarchical and spatial relationships are used dynamically for entity recognition and prediction of data elements in documents.
While disclosure makes references to documents, the ZQL programming system may use other sources of data in place of documents. The other sources of data may be structured or semi structured objects or spatial entities.
The required inputs for the ZQL programming system may be an image (PNG or JPEG) of the relevant pages of a document, as well as a tree-structured knowledge graph of document pages. Users may utilize the simple syntax of the ZQL programming language, which is parsed into an abstract syntax tree and then evaluated on the knowledge graph to produce rule results. A probabilistic model may generate a probability score for the accuracy of a generated rule. Like the rule statement itself, this model can be created from the web-application and the results of it can be evaluated and improved by the end user.
The ZQL programming system may use both hierarchical relationships (e.g., a TABLE contains a CELL) and spatial relationships (e.g. a NUMBER to the left of a WORD, Center, Closest by corner, Closest Euclidean, or the like) to locate data. For instance, the functions “Has Comma,” “Has Numbers,” and “Has Decimal Point” might be appropriate featurization functions for the model if it intends to find currency data. Also, because multiple rules are allowed (and encouraged) for each data, the ZQL programming system may be trained for new document types or templates of the same document type. Similarly, one can easily adapt to spatial noise which comes from the optical character recognition (OCR) and knowledge graph processes. Additionally, the probabilistic model may be an integrated Bayesian model used to score and “promote” the most effective rules both in the development of potentially competing rules, as well as existing rules at runtime, allowing these rules to dynamically adapt to each instance of a document being processed.
The code building process may take the most recent code in the master branch of the source control repository. It instantiates several Lambda services. One, the back-end, does the parsing and execution of the ZQL programming language, as well as the probabilistic inference. The other, the front-end may serve the JavaScript framework which runs in the browser that displays the document and the results of the rules' execution.
When training a new document type, one may go to the URL for the instantiated ZQL instance, select the specific document type, and the data one would like to start with and load a random document. Once the value on the page(s) of the document are found, one may type an appropriate ZQL rule into the provided text-area. While sculpting this rule one can iterate by parsing and executing the rule and seeing the text on the page that is selected. When the rule is satisfactory, it can be saved.
Next, one may choose another random document while seeing the previous rules that were written and the text they capture in the application. This process may continue, where more rules are written, until it is determined the existing rules may be sufficient. Now one may run the “comparison” process which executes every rule on every document in the sample set. The resulting coverage score may determine what percentage of the sample set has its correct value retrieved by one of the rules.
From here, more rules can be specifically crafted for the remaining “uncovered” documents in the sample set. The comparison process can be re-run. If the coverage score is sufficient, probabilistic functions may be selected and saved, and the probabilistic model can be created. Once this has been done, on each new document load, not only may all the existing rules be executed, but their probability score (as well as their resultant text) may be displayed.
The pipeline application of the rules (and probabilistic selection) is aided by the fact that the rules are applied to the pages of the document in parallel. So, for example, if there are 7 rules applied to a 10-page document, 70 different co-routines may be executed at the same time, and the ensuing application only takes the duration of one application.
Moreover, the GUI tool may be an educational device for learning the ZQL programming language. As the trainer increases their skill with writing concise rules for extracting data, they can expand, prune, and continually improve their ruleset. With it, they can get immediate feedback for the shape of their probabilistic model. The ZQL programming system may include an iterative process of growing a ZQL ruleset on a document sample, and improving the probabilistic model followed by a pipeline application of the extraction process to achieve its desired accuracy.
The ZQL programming system allows for rule creation to be done in its own domain specific language. A myriad of special functions for locating and specifying the data on the document may be already available to the trainer (rule-writer) that are simply strung together using the simple ZQL programming language syntax.
In the event of the system being used for a vastly different type of document or industry, the ZQL programming language syntax of the rules can remain the same, with new functions added easily without extensive changes to ZQL programming language's syntax. In this way, the ZQL programming system is adaptable and a starting place for large data extraction jobs.
Because the ZQL programming system may contain both a domain language and an application for development, it could be used in any field where text needs to be extracted from images of physical documents. The ZQL programming system may be implemented so that people who have no prior programming experience can write meaningful rules within minutes.
In some embodiments, the ZQL programming system may include Python data structures (sets, lists, dictionaries, tuples). In some embodiments, the ZQL programming system may use an abstract syntax tree defining the dictionary/JSON (JavaScript Object Notation) representation of a rule and executing that against the dictionary/JSON representation of the knowledge graph of the document(s).
In some embodiments, if there are blocks of sequential, prose-like, text in a document, a recurrent neural network may be used to parse and retrieve the desired text from the document.
The example interface 100 may include a window 108 for a user to visualize an abstract syntax tree RS1 associated with a rule RS2 with the result of executing rule RS2 shown in window 109. Note that the result shown in window 109 corresponds to a field 120 in document 102. The rule RS2 was created using the ZQL programming language syntax of the ZQL programming system. Moreover, the example interface 100 may include window 114 displaying the syntax of rule RS2 being actively developed by the user. The user may reference window 116 to select the appropriate functions for constructing rule RS2. In some cases, the user may add additional functions to the ZQL programming system via window 116 and saving these additional functions via button 117. The functions listed in window 116 are in accordance with the ZQL programming language. When the user has determined the rule RS2 is complete, the user may parse and submit rule RS2 for processing via buttons 118a and 118b producing abstract syntax tree AST1. Afterwards, the abstract syntax tree AST1 may be posted in window 108 and its results posted in window 109, respectively. The user may also save any updates to rule RS2 via button 118c.
During the comparison process, the example interface 100 may display the resulting coverage scores 111, 113 for each of the existing rules RS3 and RS4. The coverage scores 111, 113 may determine what percentage of the sample set has its correct value retrieved by one of the rules. Note that example interface 110 may allow a user to not display the coverage scores 111, 113 via clicking link 122. The existing rules RS3 and RS4 may be previously stored rules which are later retrieved for processing or may be existing rules that are being actively developed.
The method includes parsing, using the one or more processors, the rules to create a plurality of abstract syntax trees, as shown at block 212. Next, at block 214, the method includes generating, using the one or more processors, the abstract syntax trees, and the knowledge graph, a plurality of rule results for the rules applicable for processing the sample documents. Each of the abstract syntax trees is evaluated on the knowledge graph to produce the rule results. Next, at block 216, the method includes applying, using the one or more processors, the rule results to a probabilistic model to determine accuracy of the rule results. Next, at block 218, the method includes generating, using the one or more processors and the probabilistic model, a plurality of scores for each of the rules indicating accuracy of the rules, and at block 220 the method includes determining, using the one or more processors, whether the scores require updating the probabilistic model. At block 222, the method includes upon determining the scores are sufficient, updating, using the one or more processors, the probabilistic model.
At block 312, the method includes parsing, using the one or more processors, the rules to create a plurality of abstract syntax trees. Next, at block 314, the method includes generating, using the one or more processors, the abstract syntax trees, and the knowledge graph, a plurality of rule results for the rules applicable for processing the sample documents, wherein each of the abstract syntax trees is evaluated on the knowledge graph to produce the rule results. Next, at block 316, the method includes applying, using the one or more processors, the rule results to a probabilistic model to determine accuracy of the rule results, and at block 318 the method includes generating, using the one or more processors and the probabilistic model, a plurality of scores for each of the rules indicating accuracy of the rules.
At block 320, the method includes determining, using the one or more processors, whether there is at least one additional sample document or at least one additional rule added by a user. Next, at block 322, the method includes upon determining the user added the least one additional sample document, updating, using the one or more processors, the knowledge graph to reflect changes presented by the at least one additional sample document. Next, at block 324, the method includes upon determining the user added the least one additional rule, updating, using the one or more processors, the abstract index trees to reflect changes presented by the at least one additional rule. Next, at block 326, the method includes updating, using the one or more processors, the updated knowledge graph, and the updated abstract syntax trees, the scores for each of the rules and the at least one additional rule. Next, at block 328, the method includes determining, using the one or more processors, whether the updated scores require updating the probabilistic model. At block 330, the method includes upon determining the probabilistic model requires updating, updating, using the one or more processors, the probabilistic model.
The computing system 400 can be an individual computer system 401A or an arrangement of distributed computer systems. The computer system 401A includes one or more ZQL programming modules 402 that are configured to perform various tasks of the ZQL programming system described herein. To perform these various tasks, ZQL programming module(s) 402 executes independently, or in coordination with, one or more processors 404, which is (or are) connected to one or more storage media 406. The processor(s) 404 is (or are) also connected to a network interface 408 to allow the computer system 401A to communicate over a data network 410 with one or more additional computer systems and/or computing systems, such as 401B, 401C, and/or 401D (note that computer systems 401B, 401C and/or 401D may or may not share the same architecture as computer system 401A, and may be located in different physical locations, e.g., computer systems 401A and 401B may be on a ship underway on the ocean, while in communication with one or more computer systems such as 401C and/or 401D that are located in one or more data centers on shore, other ships, and/or located in varying countries on different continents). Note that data network 410 may be a cloud service, a private network, it may use portions of public networks, it may include remote storage and/or applications processing capabilities (e.g., cloud computing).
A processor can include a microprocessor, microcontroller, processor module or subsystem, programmable integrated circuit, programmable gate array, or another control or computing device.
The storage media 406 can be implemented as one or more computer-readable or machine-readable storage media. Note that while in the example embodiment of
Note that the instructions or methods discussed above can be provided on one computer-readable or machine-readable storage medium, or alternatively, can be provided on multiple computer-readable or machine-readable storage media distributed in a large system having possibly plural nodes and/or non-transitory storage means. Such computer-readable or machine-readable storage medium or media is (are) considered to be part of an article (or article of manufacture). An article or article of manufacture can refer to any manufactured single component or multiple components. The storage medium or media can be located either in the machine running the machine-readable instructions or located at a remote site from which machine-readable instructions can be downloaded over a network for execution.
It should be appreciated that computer system 401A is one example of a computing system, and that computer system 401A may have more or fewer components than shown, may combine additional components not depicted in the example embodiment of
It should also be appreciated that while no user input/output peripherals are illustrated with respect to computer systems 401A, 401B, 401C, and 401D, many embodiments of computing system 400 include computing systems with keyboards, touch screens, displays, etc. Some computing systems in use in computing system 400 may be desktop workstations, laptops, tablet computers, smartphones, server computers, etc. Some computing systems in use in computing system 400 may include human visual interfaces such as virtual and augmented reality interfaces, brain chip interfaces, or other technology computing and bleeding edge interaction mechanisms.
Further, the steps in the processing methods described herein may be implemented by running one or more functional modules in an information processing apparatus such as general-purpose processors or application specific chips, such as ASICs, FPGAs, PLDs, or other appropriate devices. These modules, combinations of these modules, and/or their combination with general hardware are included within the scope of protection of the disclosure.
In some embodiments, a computing system is provided that comprises at least one processor, at least one memory, and one or more programs stored in the at least one memory, wherein the programs comprise instructions, which when executed by the at least one processor, are configured to perform any method disclosed herein.
In some embodiments, a computer readable storage medium is provided, which has stored therein one or more programs, the one or more programs comprising instructions, which when executed by a processor, cause the processor to perform any method disclosed herein.
In some embodiments, a computing system is provided that comprises at least one processor, at least one memory, and one or more programs stored in the at least one memory; and means for performing any method disclosed herein.
In some embodiments, an information processing apparatus for use in a computing system is provided, and that includes means for performing any method disclosed herein.
In some embodiments, a graphics processing unit is provided, and that includes means for performing any method disclosed herein.
In some embodiments, the ZQL programming system may include industry standard available libraries and packages used in open source frameworks. In some embodiments, the ZQL programming system may include Data Frames, formed using industry standard available libraries and packages, to store the tabular data of the results of multiple rules on multiple pages.
The disclosure describes a ZQL programming system that may allow for the codification of human intuition and domain expertise about complicated documents and where to find data on them. The ZQL programming language allows for rule development that is as close to natural language as possible and so it's easy to learn and begin encoding the knowledge of how to find the data. Also, the ZQL programming system may utilize a probabilistic model that is configurable (simply, by non-programmers) so that the user can encode their “common sense” as to what the data should look like. In this way, people and organizations with little technical expertise can use their common sense and understanding of the documents to quickly train a system that can run extraction pipelines on enormous document sets.
Reference in the specification to “one implementation” or “an implementation” means that a particular feature, structure, or characteristic described in connection with the implementation is included in at least one implementation of the disclosure. The appearances of the phrase “in one implementation,” “in some implementations,” “in one instance,” “in some instances,” “in one case,” “in some cases,” “in one embodiment,” or “in some embodiments” in various places in the specification are not necessarily all referring to the same implementation or embodiment. In some embodiments, the terms “signal,” “data,” and/or “information” may be used interchangeably. In some embodiments, signals refer to non-transitory signals.
Finally, the above descriptions of the implementations of the present disclosure have been presented for the purposes of illustration and description. It is not intended to be exhaustive or to limit the present disclosure to the precise form disclosed. Many modifications and variations are possible in light of the above teaching. It is intended that the scope of the present disclosure be limited not by this detailed description, but rather by the claims of this application. As will be understood by those familiar with the art, the present disclosure may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. Accordingly, the present disclosure is intended to be illustrative, but not limiting, of the scope of the present disclosure, which is set forth in the following claims.
Claims
1. A method for extracting information from documents, comprising:
- receiving, using one or more processors, a plurality of sample documents;
- retrieving, using the one or more processors, image information for the sample documents;
- generating, using the one or more processors, hierarchical and spatial data of the image information of the sample documents to be used in a knowledge graph, wherein the knowledge graph defines hierarchical and spatial relationships between the sample documents;
- determining, using the one or more processors, a plurality of rules applicable for processing the sample documents;
- upon determining the rules applicable for processing the sample documents, retrieving, using the one or more processors, the rules applicable for processing the sample documents;
- parsing, using the one or more processors, the rules to create a plurality of abstract syntax trees;
- generating, using the one or more processors, the abstract syntax trees, and the knowledge graph, a plurality of rule results for the rules applicable for processing the sample documents, wherein each of the abstract syntax trees is evaluated on the knowledge graph to produce the rule results;
- applying, using the one or more processors, the rule results to a probabilistic model to determine accuracy of the rule results;
- generating, using the one or more processors and the probabilistic model, a plurality of scores for each of the rules indicating accuracy of the rules;
- determining, using the one or more processors, whether the scores require updating the probabilistic model, and
- upon determining the probabilistic model requires updating, updating, using the one or more processors, the probabilistic model.
2. The method of claim 1, wherein retrieving the image information comprises performing an optical character recognition (OCR) operation on the sample documents.
3. The method of claim 1, retrieving the image information comprises adapting to spatial noise introduced by an optical character recognition (OCR) operation on the sample documents.
4. The method of claim 1, wherein converting each of the image information comprises determining spatial and textual information of the sample documents to produce the knowledge graph.
5. The method of claim 1, wherein converting each of the image information comprises adapting to spatial noise introduced by the knowledge graph.
6. The method of claim 1, wherein determining the plurality of rules applicable for processing comprises determine whether the plurality of rules are existing rules or rules under development.
7. The method of claim 6, wherein the plurality of rules are formed using a domain specific language.
8. The method of claim 1, wherein parsing each of the rules comprises utilizing a recurrent neural network to parse each of the rules.
9. The method of claim 1, wherein applying the rule results to the probabilistic model comprises utilizing a Naïve Bayesian methodology to assess the rule results.
10. The method of claim 1, wherein applying the rule results to the probabilistic model comprises allowing the plurality of rules to dynamically adapt to each instance of at least one of the sample documents being processed.
11. The method of claim 1, wherein determining whether the scores require updating comprises identifying the rules having top scores.
12. The method of claim 1, wherein determining whether the scores require updating comprises determining whether the probabilistic model comprises a specific shape.
13. The method of claim 1, wherein determining whether the scores are sufficient comprises iteratively growing the plurality of rules to improve the probabilistic model.
14. A system for extracting information from a document, the system comprising
- one or more computing device processors; and
- one or more computing device memories, coupled to the one or more computing device processors, the one or more computing device memories storing instructions executed by the one or more computing device processors, wherein the instructions are configured to: receive a plurality of sample documents; retrieve image information for the sample documents; generate hierarchical and spatial data of the image information of the sample documents to be used in a knowledge graph, wherein the knowledge graph defines hierarchical and spatial relationships between the sample documents; determine a plurality of rules applicable for processing the sample documents; upon determining the rules applicable for processing the sample documents, retrieve the rules applicable for processing the sample documents; parse the rules to create a plurality of abstract syntax trees; generate, using the abstract syntax trees and the knowledge graph, a plurality of rule results for the rules applicable for processing the sample documents, wherein each of the abstract syntax trees is evaluated on the knowledge graph to produce the rule results; apply the rule results to a probabilistic model to determine accuracy of the rule results; generate, using the probabilistic model, a plurality of scores for each of the rules indicating accuracy of the rules; determine whether the scores require updating the probabilistic model; and upon determining the probabilistic model requires updating, update the probabilistic model.
15. The system of claim 14, wherein the instructions are further configured to provide a user interface for displaying the rules that have executed.
16. The system of claim 14, wherein the instructions are further configured to provide a user interface for displaying details of at least one of the sample documents.
17. The system of claim 14, wherein the instructions are further configured to provide a user interface for allowing a user to input at least one of the sample documents.
18. The system of claim 14, wherein the instructions are further configured to provide a user interface for displaying details of at least one of the rules that is actively being developed.
19. The system of claim 14, wherein the instructions are further configured to provide a user interface for displaying details of the scores for the plurality of rules.
20. A method for extraction information from documents comprising:
- receiving, using one or more processors, a plurality of sample documents;
- retrieving, using the one or more processors, image information for the sample documents;
- generating, using the one or more processors, hierarchical and spatial data of the image information of the sample documents to be used in a knowledge graph, wherein the knowledge graph defines hierarchical and spatial relationships between the sample documents;
- determining, using the one or more processors, a plurality of rules applicable for processing the sample documents;
- upon determining the rules applicable for processing the sample documents, retrieving, using the one or more processors, the rules applicable for processing the sample documents;
- parsing, using the one or more processors, the rules to create a plurality of abstract syntax trees;
- generating, using the one or more processors, the abstract syntax trees, and the knowledge graph, a plurality of rule results for the rules applicable for processing the sample documents, wherein each of the abstract syntax trees is evaluated on the knowledge graph to produce the rule results;
- applying, using the one or more processors, the rule results to a probabilistic model to determine accuracy of the rule results;
- generating, using the one or more processors and the probabilistic model, a plurality of scores for each of the rules indicating accuracy of the rules;
- determining, using the one or more processors, whether there is at least one additional sample document or at least one additional rule added by a user;
- upon determining the user added the least one additional sample document, updating, using the one or more processors, the knowledge graph to reflect changes presented by the at least one additional sample document;
- upon determining the user added the least one additional rule, updating, using the one or more processors, the abstract index trees to reflect changes presented by the at least one additional rule;
- updating, using the one or more processors, the updated knowledge graph, and the updated abstract syntax trees, the scores for each of the rules and the at least one additional rule;
- determining, using the one or more processors, whether the updated scores require updating the probabilistic model, and
- upon determining the probabilistic model requires updating, updating, using the one or more processors, the probabilistic model.
Type: Application
Filed: Feb 11, 2022
Publication Date: Aug 17, 2023
Inventor: Boaz Reisman (Swarthmore, PA)
Application Number: 17/669,481