Generating machine learning models for document extraction

By generating and fine-tuning machine learning models, the problem of inaccurate data extraction in electronic document processing is solved, and high-accuracy extraction of specific document types is achieved, which is suitable for business and financial departments.

CN118779368APending Publication Date: 2024-10-15SNOWFLAKE INC
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410429661.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-09-22
Filing Date
2024-04-10
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing machine learning models are difficult to guarantee accurate results in electronic document processing, resulting in inaccurate data extraction.

Method used

Generate and fine-tune machine learning models, use the user interface for training and evaluation, and dynamically adjust the model to improve extraction accuracy for specific document types, such as bank statements, driver's licenses, and more.

Benefits of technology

It significantly improves the accuracy of information extraction from electronic documents, meets users' data extraction needs, and is suitable for commercial and financial departments and other fields.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779368A_ABST
    Figure CN118779368A_ABST
Patent Text Reader

Abstract

The invention relates to generating a machine learning model for document extraction. Systems and methods for generating a machine learning (ML) model for extracting information from one or more electronic documents, where the ML model may serve as a data object that may be part of a database command or as part of a continuously running document information extraction process (e.g., a document information extraction pipeline).
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate generally to electronic document processing and, more particularly, to generating a machine learning (ML) model for extracting information from one or more electronic documents, wherein the ML model can be used as a data object, which can be part of a database command or as part of a continuously running document information extraction process (e.g., a document information extraction pipeline). background

[0002] Individuals use various types of electronic documents (also referred to herein as "documents"), including scanned handwritten documents, scanned forms, large documents (reports), word processing documents (e.g., DOCX documents), postscript documents (e.g., PDF documents), etc. In addition, documents may sometimes be in the form of images (e.g., pictures of pages). A given user may want to process these and other document types and extract data points from the documents using a document process, such as a process based on a machine learning (ML) model. For example, a given user can set up a document processing pipeline that is configured to ingest (e.g., continuously ingest) multiple documents of various types and process each document using one or more ML models to extract data points of interest to the given user. BRIEF DESCRIPTION OF THE DRAWINGS

[0003] The present disclosure will be more fully understood from the detailed description given below and the accompanying drawings of various embodiments of the present disclosure.

[0004] Figure 1 An example computing environment is shown that includes a network-based database system in communication with a cloud storage platform in accordance with some embodiments.

[0005] Figure 2 is a diagram illustrating components of a compute service manager according to some embodiments.

[0006] Figure 3 is a diagram illustrating components of an execution platform according to some embodiments.

[0007] Figure 4 is a flow chart of an example method for generating a machine learning (ML) model for extracting information from one or more electronic documents, according to some embodiments.

[0008] Figure 5 is a flow diagram of an example user workflow for generating a machine learning (ML) model for extracting information from one or more electronic documents, according to some embodiments.

[0009] Figure 6An example user interface for adding (eg, creating) a new project for an ML model for document information extraction is shown in accordance with some embodiments.

[0010] Figure 7 An example user interface for uploading one or more electronic documents to a project associated with an ML model for document information extraction is shown in accordance with some embodiments.

[0011] Figure 8-Figure 11 An example user interface is shown that presents an electronic document, presents data points, presents questions associated with the data points, presents extracted values ​​associated with the data points, presents confidence scores, receives user feedback, and begins a training process for an ML model in accordance with some embodiments.

[0012] Fig.12 A diagrammatic representation of a machine in the form of a computer system within which a set of instructions may be executed, causing the machine to perform any one or more of the methodologies discussed herein, is shown according to some embodiments. Detailed Description

[0013] Reference will now be made in detail to specific embodiments for implementing the subject matter of the present invention. Examples of these specific embodiments are shown in the accompanying drawings, and specific details are outlined in the following description to provide a thorough understanding of the subject matter. It should be understood that these examples are not intended to limit the scope of the claims to the embodiments shown. On the contrary, they are intended to cover substitutions, modifications, and equivalents that may be included within the scope of this disclosure.

[0014] Typically, ML models are not guaranteed to generate accurate results, which in the context of document processing can lead to inaccurate data extraction. To mitigate / address this issue, users who wish to achieve a high level of accuracy during document data extraction can use training to adjust or fine-tune the ML model to achieve better accuracy, for example, with respect to specific documents (e.g., bank statements, driver's licenses, health insurance cards, payrolls, etc.).

[0015] Various embodiments described herein provide systems, methods, devices, instructions, etc. for generating a machine learning (ML) model for extracting information from one or more electronic documents, wherein the ML model can be used as a data object, which can be part of a database command or as part of a continuously running document information extraction process (e.g., a document information extraction pipeline). Using various embodiments, an ML model (e.g., a fine-tuned version of a base ML model) can be generated (e.g., via a project), and the generated ML model can be exposed as a data object, which can be used as a database function (e.g., a SQL function or command), and a user (e.g., a data engineer) can use the database function to create a document information extraction pipeline (e.g., its output can be stored in one or more tables or staging areas (stages) of a data platform).

[0016] For some embodiments, a user with contextual and domain knowledge about electronic documents, such as a business user (e.g., in a finance department responsible for checking expense reports and receipts) or a domain expert user, can train an ML model for extracting information from one or more types of electronic documents (e.g., bank statements, identification cards (e.g., driver's licenses, passports), bills, etc.). The user can use the various embodiments described herein to improve the accuracy of the ML model so that the information extracted by the ML model from the electronic documents meets the user's expectations. For example, a user (e.g., a business user) can log in to the data platform and launch a user interface (e.g., a training user interface) to explore the ML model, train the ML model, or both.

[0017] At the start, the user can create a new project or select an existing project associated with extracting information from a specific type of electronic document (e.g., a document containing a specific type of information, such as a bank statement). For example, the user can see all the projects that their role has access to in a drop down menu, or if the user has the appropriate permissions, the user can create a new project. When the user creates a new project, the electronic document needs to be imported from the local computer system into the project.

[0018] According to various embodiments, the imported set of electronic documents can be used for exploration of ML models, training (e.g., fine-tuning) of ML models, or both. The collection of imported electronic documents can be associated with a project. The user can also import more electronic documents into the project to further explore or train the ML model. The imported electronic documents can be stored (e.g., copied) into the project.

[0019] Initially, a new project can be configured with a default foundational ML model (e.g., a zero-shot ML model) or with a pre-trained default ML model (e.g., for certain use cases of electronic documents, such as a use case ML model for understanding "bank statements") that can be used to start exploring electronic documents. When creating a new project, users can choose a zero-shot ML model or a pre-trained ML model that closely matches their use case.

[0020] According to some embodiments, a user starts defining data points and starts asking questions in natural language using the base ML model of the project to explore electronic documents or annotate electronic documents for training purposes. Ultimately, the values ​​extracted for the defined data points can be stored in columns of the target table (e.g., given data point names conform to column identifiers). The data points or questions can be stored in association with the project (e.g., persisted in the project).

[0021] In some cases, the base ML model is accurate enough for the user's purposes, and the user can simply save the project and use the base ML model for their project as is. However, in the case where the base ML model is not accurate enough for the user's purposes, the user can generate a fine-tuned ML model based on the base ML model. For some embodiments, to generate a fine-tuned ML model, the user can annotate one or more uploaded electronic documents and start a training process based on at least these annotations (e.g., click a "Start training" button). The training process can generate a new custom ML model, which can now become the default ML model associated with the project. The binary file of the custom ML model can be stored in association with the project (e.g., persisted in the project). If the user can annotate a few more (additional) uploaded electronic documents and start training again, a new version of the custom ML model can be generated, which can replace the previous version of the custom ML model in the project. The progress of the training process can be graphically presented in the user interface used by the user to train the ML model. If the user wishes, the training process can be aborted.

[0022] Various embodiments provide (e.g., user interface) for evaluation of ML models (e.g., base ML models or custom ML models, such as fine-tuned ML models), which evaluation can occur dynamically and can generate real-time confidence scores for extracted values ​​of data points, which are visible to users during exploration. For example, when exploring the ML model with a set of uploaded electronic documents, the extracted values ​​of the data points (e.g., and their associated questions) are presented (e.g., displayed) in the user interface of a given electronic document, and the user can annotate (e.g., accept, reject, or manually change) the extracted values. As used herein, a confidence score can be provided (e.g., output) by the ML model for the value of a data point extracted by the ML model from an electronic document, wherein the value is extracted based on a question associated with the data point, and wherein the confidence score (e.g., ranging from 0 to 1) represents the confidence of the ML model in the extracted value. When the user annotates one or more electronic documents (i.e., accepts the extracted value as is or changes / modifies the extracted value), various embodiments dynamically evaluate the ML model and immediately present the confidence score of the extracted value to the user. For example, the user interface may (e.g., during evaluation or training) display a detailed view of the extracted values ​​for a given electronic document (e.g., a document currently displayed in the user interface), the user interface may display a confidence score (provided by the ML model) for each data point value extracted from the given electronic document, and the user interface may display an average confidence score for the given electronic document (e.g., the average of the confidence scores for all data point values ​​extracted by the ML model for the given electronic document). Depending on the embodiment, the electronic documents used for evaluation / exploration may not be the electronic documents used to train the ML model. If there are no electronic documents available for evaluation / exploration, the user may be prompted to add more electronic documents to the project.

[0023] For various embodiments, the ML models described herein (e.g., generated custom ML models or fine-tuned ML models) are generated data objects, such as database objects, that can be used for various data operations on the data platform. For example, a user can use the data object as part of a database command (e.g., a structured query language (SQL) query), or as part of a document information extraction process (e.g., a document information extraction pipeline) that is running continuously, and use the data object to perform the information extraction process. For example, a user (e.g., an ML engineer) can generate a query result by using the predict() function associated with the generated ML model.<file_url> ) function (e.g., a prediction function for an item instance including the generated ML model) to operate the generated ML model. An example of using this prediction function in an SQL command is as follows:

[0024] select document_ML_model! predict(file_url,'model_version_number')fromdirectory(@my_documents)limit 10;

[0025] The predict() function can be passed a model version parameter that allows the user to select the model version to be used for prediction. The select command can be paired with the insert command and can be used in a document information extraction pipeline. For example, with respect to the document information extraction pipeline, a user can operate the generated ML model by creating a pipeline for continuous document processing of the data objects of the specified generated ML model. The data points and questions used to train and generate the generated ML model can be encoded into the project associated with the generated ML model. After evaluating the generated ML model (e.g., executing a test SQL command and viewing the results), the user can create a target table (e.g., a database table) in which the data point values ​​extracted from the target set of electronic documents can be stored. The target table can have one or more of the following columns: file location (e.g., universal resource locator (URL)); project name; one column for each data point, whose value comes from the electronic document. Users can create a target table with any structure they want, even a temporary table with a simple variant column, and can use evolving schema (e.g., using the copy command) to automatically add columns to the target table.

[0026] To generate a document information extraction pipeline, the user can run the copy command to run batch processing of existing electronic documents. For example, the copy command can use a file processor function (e.g., for processing unstructured data files for extraction) as follows:

[0027] copy into<target_table> from directory(@my_documents)file_processor=(type=document_intelligence handler=document_ML_model!predict)match_by_column_name=case_sensitive;

[0028] Based on this command, users can create a pipeline for continuous document processing to extract data point values ​​using a specified (e.g., generated) ML model.

[0029] create pipe escrow_processor_pipe as copy into<target_table> fromdirectory(@my_documents)file_processor=(type=document_intelligence handler=document_ML_model!predict)match_by_column_name=case_sensitive;

[0030] The output from the pipeline for processed (eg, received or ingested) electronic documents may be stored in a target table.

[0031] In the present disclosure, the physical unit of data stored in the data platform and constituting the content of a database table in, for example, a consumer account is referred to as a micro-partition. In different implementations, the data platform may also store metadata in the micro-partition. The term "micro-partition" in the present disclosure is different from the term "file", which, as used herein, refers to data units such as image files (e.g., Joint Photographic Experts Group (JPEG) files, Portable Network Graphics (PNG) files, etc.), video files (e.g., Moving Picture Experts Group (MPEG) files, MPEG-4 (MP4) files, Advanced Video Coding High Definition (AVCHD) files, etc.), Portable Document Format (PDF) files, documents formatted to be compatible with one or more word processing applications, documents formatted to be compatible with one or more spreadsheet applications, etc. If stored inside the data platform, a given file is referred to herein as an "internal file" and may be stored in what is referred to herein as an "internal storage location" (or at, or on, etc.). If stored external to the data platform, a given file is referred to herein as an "external file" and is said to be stored in (or at, on, etc.) what is referred to herein as an "external storage location." These terms are discussed further below.

[0032] There are many types of computer-readable files, including unstructured files, semi-structured files, and structured files. These terms may mean different things to different people. As used herein, examples of unstructured files include image files, video files, PDFs, audio files, etc.; examples of semi-structured files include JavaScript Object Notation (JSON) files, Extensible Markup Language (XML) files, etc.; examples of structured files include Variant Call Format (VCF) files, Keithley Data Files (KDF) files, Hierarchical Data Format Version 5 (HDF5) files, etc. As known to those skilled in the relevant art, VCF files are commonly used in the field of bioinformatics to store, for example, gene sequence variations, KDF files are commonly used in the semiconductor industry to store, for example, semiconductor test data, and HDF5 files are commonly used in industries, such as the aviation industry, in which case they are used to store data, such as aircraft emissions data. Many other examples of unstructured file types, semi-structured file types, and structured file types, as well as their example uses, can of course also be listed here and are familiar to those skilled in the relevant art. Different technicians in the relevant art may classify file types differently within these categories, and may use one or more different categories to replace or supplement one or more of these categories.

[0033] Data platforms are widely used for data storage and data access in computing and communication environments. With respect to architecture, a data platform can be an on-premises data platform, a network-based data platform (e.g., a cloud-based data platform), a combination of the two, and / or include another type of architecture. With respect to the type of data processing, a data platform can implement online analytical processing (OLAP), online transaction processing (OLTP), a combination of the two, and / or another type of data processing. In addition, a data platform can be or include a relational database management system (RDBMS) and / or one or more other types of database management systems.

[0034] In a typical implementation, the data platform may include one or more databases maintained in association with any number of consumer accounts (e.g., accounts of one or more data providers), as well as one or more databases associated with the data platform's system accounts (e.g., management accounts), one or more other databases for management purposes, and / or one or more other databases maintained in association with one or more other organizations and / or used for any other purpose. The data platform may also store metadata generally associated with the data platform (e.g., account object metadata), as well as metadata associated with, for example, a specific database and / or a specific consumer account. Users and / or execution processes associated with a given consumer account may cause data to be ingested into the database through one or more types of clients, and may also manipulate the data, add additional data, remove data, run queries on the data, generate views of the data, and the like. As used herein, the terms "account object metadata" and "account object" may be used interchangeably.

[0035] In an implementation of a data platform, a given database (e.g., a database maintained for a consumer account) may reside as an object within, for example, a consumer account, which may also include one or more other objects (e.g., users, roles, authorizations, shares, warehouses, resource monitors, integrations, network policies, etc.). In addition, a given object such as a database may itself contain one or more objects, such as schemas, tables, materialized views, etc. A given table may be organized as a collection of records (e.g., rows) such that each record includes a plurality of attributes (e.g., columns). In some embodiments, database data is physically stored on multiple storage units, which may be referred to as files, blocks, partitions, micro-partitions, and / or one or more other names. In many cases, a database on a data platform acts as a backend for one or more applications executed on one or more application servers.

[0036] Figure 1 An example computing environment 100 is shown according to some embodiments, including a database system in the example form of a network-based database system 102. In order to avoid obscuring the subject matter of the present invention with unnecessary detail, Figure 1Various functional components that are not closely related to conveying an understanding of the subject matter of the present invention are omitted. However, those skilled in the art will readily recognize that various additional functional components may be included as part of the computing environment 100 to facilitate additional functions not specifically described herein. In other embodiments, the computing environment may include another type of network-based database system or cloud data platform. For example, in some embodiments, the computing environment 100 may include a cloud computing platform 101 and a storage platform 104 (also referred to as a cloud storage platform) having a network-based database system 102. The cloud computing platform 101 provides computing resources and storage resources that can be acquired (purchased) or leased and is configured to execute applications and store data.

[0037] The cloud computing platform 101 may host cloud computing services 103 that facilitate storage (e.g., data management and access) and analytical functions (e.g., SQL queries, analysis), as well as other processing capabilities (e.g., configuring replication group objects as described herein) of data on the cloud computing platform 101. The cloud computing platform 101 may include a three-tier architecture: data storage (e.g., storage platforms 104 and 122), an execution platform 110 (e.g., providing query processing), and a computing service manager 108 that provides cloud services.

[0038] Typically, an organization that is a consumer of a given data platform also maintains data stores (e.g., a data lake) external to the data platform (i.e., in one or more external storage locations). For example, a company may be a consumer of a particular data platform and also maintain data stores (e.g., a data lake) on one or more of their servers and / or on one or more cloud storage platforms (e.g., AMAZON WEB SERVICES). TM (AWS TM ), GOOGLE CLOUDPLATFORM TM The cloud storage platform 101 may also use a cloud storage platform as an internal storage location referred to herein as a data platform.

[0039] From the perspective of the network-based database system 102 of the cloud computing platform 101, one or more files stored at one or more storage locations are referred to herein as being organized into one or more of the following: referred to herein as "internal stages" or "external stages". An internal stage is a stage corresponding to data storage at one or more internal storage locations, and wherein an external stage is a stage corresponding to data storage at one or more external storage locations. In this regard, external files may be stored in an external stage at one or more external storage locations, while internal files may be stored in an internal stage at one or more internal storage locations, and the internal storage locations may include servers managed and controlled by the same organization (e.g., a company) that manages and controls the data platform, and may alternatively or additionally include data storage resources operated by a storage provider (e.g., a cloud storage platform) used by the data platform for its "internal" storage. The internal storage of the data platform is also referred to herein as the "storage platform" of the data platform. It is also noted that a given external file stored by a given consumer at a given external storage location may or may not be stored in an external staging area of ​​the external storage location, i.e., in some data platform implementations, the consumer chooses whether to create one or more external staging areas (e.g., one or more external staging area objects) in the consumer's data platform account as an organizational and functional structure for conveniently interacting with one or more external files via the data platform.

[0040] As shown, the network-based database system 102 of the cloud computing platform 101 is connected to the cloud storage platforms 104 and 122 (e.g., Microsoft Azure Blob The network-based database system 102 is a network-based system for reporting and analyzing integrated data from one or more different sources including one or more storage locations within the cloud storage platform 104. The cloud storage platform 104 includes multiple computing machines and provides computer system resources, such as data storage and computing power, to the network-based database system 102 on demand.

[0041] The network-based database system 102 includes a computing service manager 108, an execution platform 110, and one or more metadata databases 112. The network-based database system 102 hosts and provides data reporting and analysis services to multiple client accounts.

[0042] The computing service manager 108 coordinates and manages the operation of the network-based database system 102. The computing service manager 108 also performs query optimization and compilation, and manages clusters of computing services (also referred to as "virtual warehouses") that provide computing resources. The computing service manager 108 can support any number of client accounts, such as end users providing data storage and retrieval requests, system administrators managing the systems and methods described herein, and other components / devices that interact with the computing service manager 108.

[0043] The computing service manager 108 also communicates with a client device 114. The client device 114 corresponds to a user of one of a plurality of client accounts supported by the network-based database system 102. The user may utilize the client device 114 to submit data storage, retrieval, and analysis requests to the computing service manager 108. The client device 114 (also referred to as a remote computing device or user device 114) may include one or more of a laptop computer, a desktop computer, a mobile phone (e.g., a smartphone), a tablet computer, a cloud-hosted computer, a cloud-hosted serverless process, or may use other computing processes or devices (e.g., by a data provider) to access services (e.g., cloud computing services 103) provided by the cloud computing platform 101 through a network 106 (e.g., the Internet or a private network). The data consumer 115 may use another computing device to access the data provider's data (e.g., data obtained via the client device 114).

[0044] In the following description, actions are attributed to users, particularly consumers and providers. Such actions should be understood to be performed with respect to a client device (or devices) 114 operated by such a user. For example, a notification to a user may be understood as a notification sent to a client device 114, an input or instruction from a user may be understood as received through a client device 114, and a user's interaction with an interface should be understood as an interaction with an interface on a client device 114. In addition, database operations (connections, aggregations, analysis, etc.) attributed to a user (consumer or provider) should be understood to include the cloud computing service 103 performing such actions in response to instructions from the user.

[0045] The computing service manager 108 is also coupled to one or more metadata databases 112 that store metadata related to various functions and aspects associated with the network-based database system 102 and its users. For example, the metadata database 112 may include a summary of data stored in a remote data storage system and data available from a local cache. In addition, the metadata database 112 may include information about how data is organized in a remote data storage system (e.g., a cloud storage platform 104) and a local cache. The information stored by the metadata database 112 allows systems and services to determine whether a piece of data needs to be accessed without loading or accessing the actual data from a storage device. In some embodiments, the metadata database 112 is configured to store account object metadata (e.g., an account object used in conjunction with a replication group object).

[0046] The computing service manager 108 is also coupled to an execution platform 110, which provides a plurality of computing resources for performing various data storage and data retrieval tasks. Figure 3 As shown, the execution platform 110 includes a plurality of computing nodes. The execution platform 110 is coupled to the storage platform 104 and the cloud storage platform 122. The storage platform 104 includes a plurality of data storage devices 120-1 to 120-N. In some embodiments, the data storage devices 120-1 to 120-N are cloud-based storage devices located in one or more geographic locations. For example, the data storage devices 120-1 to 120-N can be part of a public cloud infrastructure or a private cloud infrastructure. The data storage devices 120-1 to 120-N can be hard disk drives (HDDs), solid state drives (SSDs), storage clusters, Amazon S3 TM Storage system, or any other data storage technology. In addition, the cloud storage platform 104 may include a distributed file system (such as, Hadoop Distributed File System (HDFS)), an object storage system, etc. In some embodiments, at least one internal staging area 126 may reside on one or more data storage devices 120-1 to 120-N, and at least one external staging area 124 may reside on one or more cloud storage platforms 122.

[0047] In some embodiments, the network-based database system 102 includes a machine learning (ML) generator 132. According to various embodiments, the ML generator 132 includes suitable circuits, interfaces, logic and / or code, and is configured to provide for the generation of an ML model for extracting information from one or more electronic documents. In some embodiments, the ML generator 132 may include one or more system functions that can be used to implement the method of generating an ML model as described herein. Figure 4 and Figure 5Describes more about the example method.

[0048] In some embodiments, the communication links between the elements of computing environment 100 are implemented via one or more data communication networks. These data communication networks can utilize any communication protocol and any type of communication medium. In some embodiments, the data communication network is a combination of two or more data communication networks (or subnetworks) coupled to each other. In alternative embodiments, these communication links are implemented using any type of communication medium and any communication protocol.

[0049] The computing service manager 108, the metadata database 112, the execution platform 110 and the storage platform 104 are Figure 1 104. However, each of the computing service manager 108, the metadata database 112, the execution platform 110, and the storage platform 104 can be implemented as a distributed system (e.g., distributed across multiple systems / platforms at multiple geographic locations). In addition, each of the computing service manager 108, the metadata database 112, the execution platform 110, and the storage platform 104 can scale up or down (independently of each other) based on changes in received requests and changing needs of the network-based database system 102. Therefore, in the described embodiment, the network-based database system 102 is dynamic and supports regular changes to meet current data processing needs.

[0050] During typical operation, the network-based database system 102 processes a plurality of jobs determined by the computing service manager 108. These jobs are scheduled and managed by the computing service manager 108 to determine when and how to execute the job. For example, the computing service manager 108 may divide the job into a plurality of discrete tasks, and may determine what data is needed to execute each of the plurality of discrete tasks. The computing service manager 108 may assign each of the plurality of discrete tasks to one or more nodes of the execution platform 110 to process the task. The computing service manager 108 may determine what data is needed to process the task, and further determine which nodes within the execution platform 110 are best suited to process the task. Some nodes may have cached the data required to process the task, and are therefore good candidates for processing the task. The metadata stored in the metadata database 112 helps the computing service manager 108 determine which nodes in the execution platform 110 have cached at least a portion of the data required to process the task. One or more nodes in the execution platform 110 use the data cached by the node and the data retrieved from the cloud storage platform 104 when necessary to process the task. It is desirable to retrieve as much data as possible from the cache within the execution platform 110 because the retrieval speed is typically much faster than retrieving data from the cloud storage platform 104 .

[0051] like Figure 1 As shown, the cloud computing platform 101 of the computing environment 100 separates the execution platform 110 from the storage platform 104. In this arrangement, the processing resources and cache resources in the execution platform 110 operate independently of the data storage devices 120-1 to 120-N in the cloud storage platform 104. Therefore, the computing resources and cache resources are not limited to specific data storage devices 120-1 to 120-N. Instead, all computing resources and all cache resources can retrieve data from any data storage resource in the cloud storage platform 104, and store data therein.

[0052] Figure 2 is a block diagram illustrating components of the computing service manager 108 according to some embodiments. Figure 2 As shown, the computing service manager 108 includes an access manager 202 and a key manager 204 coupled to an access metadata database 206, which is an example of a metadata database 112. The access manager 202 handles authentication and authorization tasks for the system described herein. The key manager 204 facilitates access to external resources, such as data resources in a remote storage device, using remotely stored credentials. As used herein, a remote storage device may also be referred to as a "permanent storage device" or a "shared storage device." For example, the key manager 204 may create and maintain a remote credential storage definition and a credential object (e.g., in the access metadata database 206). The remote credential storage definition identifies a remote credential storage and includes access information for accessing security credentials from the remote credential storage. The credential object uses non-sensitive information (e.g., a text string) to identify one or more security credentials, which will be retrieved from the remote credential storage for accessing external resources. When a request to call an external resource is received at runtime, key manager 204 and access manager 202 use information stored in access metadata database 206 (eg, credential objects and credential store definitions) to retrieve security credentials for accessing the external resource from a remote credential store.

[0053] The request processing service 208 manages received data storage requests and data retrieval requests (e.g., jobs to be performed on database data). For example, the request processing service 208 can determine the data to process a received query (e.g., a data storage request or a data retrieval request). The data can be stored in a cache within the execution platform 110, or in a data storage device in the storage platform 104.

[0054] Management console service 210 supports access to various systems and processes by administrators and other system administrators. In addition, management console service 210 can receive requests to execute jobs and monitor workloads on the system.

[0055] The computing service manager 108 also includes a job compiler 212, a job optimizer 214, and a job executor 216. The job compiler 212 parses the job into multiple discrete tasks and generates execution code for each of the multiple discrete tasks. The job optimizer 214 determines the best method to execute the multiple discrete tasks based on the data that needs to be processed. The job optimizer 214 also handles various data pruning operations and other data optimization techniques to improve the speed and efficiency of executing the job. The job executor 216 executes the execution code of the job received from the queue or determined by the computing service manager 108.

[0056] The job scheduler and coordinator 218 sends the received jobs to the appropriate service or system for compilation, optimization and dispatch to the execution platform 110. For example, the jobs can be prioritized and then processed in priority order. In an embodiment, the job scheduler and coordinator 218 determines the priority of internal jobs scheduled by the computing service manager 108 and other "external" jobs (such as user queries that can be scheduled by other systems in the database but can utilize the same processing resources in the execution platform 110). In some embodiments, the job scheduler and coordinator 218 identifies or assigns specific nodes in the execution platform 110 to process specific tasks. The virtual warehouse manager 220 manages the operation of multiple virtual warehouses implemented in the execution platform 110. For example, the virtual warehouse manager 220 can generate a query plan for executing a received query.

[0057] In addition, the computing service manager 108 includes a configuration and metadata manager 222 that manages information related to data stored in remote data storage devices and local buffers (e.g., buffers in the execution platform 110). The configuration and metadata manager 222 uses metadata to determine which data files need to be accessed to retrieve data for processing a particular task or job. The monitor and workload analyzer 224 oversees the processes executed by the computing service manager 108 and manages the distribution of tasks (e.g., workloads) across virtual warehouses and execution nodes in the execution platform 110. The monitor and workload analyzer 224 also reallocates tasks as needed based on the changing workload throughout the network-based database system 102, and can also reallocate tasks based on user (e.g., "external") query workloads that can also be processed by the execution platform 110. The configuration and metadata manager 222 and the monitor and workload analyzer 224 are coupled to the data storage device 226. Figure 2The data storage device 226 in represents any data storage device within the network-based database system 102. For example, the data storage device 226 may represent a buffer in the execution platform 110, a storage device in the storage platform 104, or any other storage device.

[0058] As described in the embodiments of this document, the computing service manager 108 verifies all communications from the execution platform (e.g., the execution platform 110) to verify that the content and context of the communication are consistent with the tasks known to be assigned to the execution platform. For example, an instance of an execution platform that executes query A should not be allowed to request access to a data source D (e.g., data storage device 226) that is not related to query A. Similarly, a given execution node (e.g., execution node 302-1) may need to communicate with another execution node (e.g., execution node 302-2) and should be prohibited from communicating with a third execution node (e.g., execution node 312-1), and any such illegal communications may be recorded (e.g., in a log or other location). In addition, the information stored on a given execution node is limited to data related to the current query, and any other data is not available, which is achieved by destruction or encryption when the key is not available.

[0059] As previously mentioned, the computing service manager 108 includes an ML generator 132 configured to generate an ML model for extracting information from one or more electronic documents according to various embodiments, which will be referred to herein at least in Figure 4 and Figure 5 Discuss it further.

[0060] Figure 3 is a block diagram illustrating components of execution platform 110 according to some embodiments. Figure 3 As shown, the execution platform 110 includes multiple virtual warehouses, including virtual warehouse 1 (or 301-1), virtual warehouse 2 (or 301-2) and virtual warehouse N (or 301-N). Each virtual warehouse includes multiple execution nodes, and each execution node includes a data cache and a processor. The virtual warehouse can execute multiple tasks in parallel by using multiple execution nodes. As discussed herein, the execution platform 110 can add new virtual warehouses and delete existing virtual warehouses in real time based on the current processing needs of the system and users. This flexibility allows the execution platform 110 to quickly deploy a large amount of computing resources when needed, without having to continue to pay for those computing resources when they are no longer needed. All virtual warehouses can access data from any data storage device (e.g., any storage device in the cloud storage platform 104).

[0061] although Figure 3Each virtual warehouse shown includes three execution nodes, but a particular virtual warehouse may include any number of execution nodes. In addition, the number of execution nodes in a virtual warehouse is dynamic, so that new execution nodes are created when there is additional demand, and existing execution nodes are deleted when they are no longer needed.

[0062] Each virtual warehouse can access Figure 1 Thus, the virtual warehouse does not have to be assigned to a specific data storage device 120-1 to 120-N, but can access data from any of the data storage devices 120-1 to 120-N within the cloud storage platform 104. Similarly, Figure 3 Each execution node shown in can access data from any one of the data storage devices 120-1 to 120-N. In some embodiments, a specific virtual warehouse or a specific execution node can be temporarily assigned to a specific data storage device, but the virtual warehouse or execution node can later access data from any other data storage device.

[0063] exist Figure 3 In the example of , virtual warehouse 1 includes three execution nodes 302-1, 302-2 and 302-N. Execution node 302-1 includes cache 304-1 and processor 306-1. Execution node 302-2 includes cache 304-2 and processor 306-2. Execution node 302-N includes cache 304-N and processor 306-N. Each execution node 302-1, 302-2 and 302-N is associated with processing one or more data storage and / or data retrieval tasks. For example, a virtual warehouse can handle data storage and data retrieval tasks associated with internal services (such as clustering services, materialized view refresh services, file compression services, storage program services, or file upgrade services). In other embodiments, a specific virtual warehouse can handle data storage and data retrieval tasks associated with a specific data storage system or a specific category of data.

[0064] Similar to the virtual warehouse 1 discussed above, virtual warehouse 2 includes three execution nodes 312-1, 312-2, and 312-N. Execution node 312-1 includes a cache 314-1 and a processor 316-1. Execution node 312-2 includes a cache 314-2 and a processor 316-2. Execution node 312-N includes a cache 314-N and a processor 316-N. In addition, virtual warehouse 3 includes three execution nodes 322-1, 322-2, and 322-N. Execution node 322-1 includes a cache 324-1 and a processor 326-1. Execution node 322-2 includes a cache 324-2 and a processor 326-2. Execution node 322-N includes a cache 324-N and a processor 326-N.

[0065] In some embodiments, Figure 3 The execution nodes shown are stateless with respect to data cached by the execution nodes. For example, these execution nodes do not store or otherwise maintain state information about the execution nodes or data cached by a particular execution node. Therefore, in the event of an execution node failure, the failed node can be transparently replaced with another node. Since there is no state information associated with the failed execution node, a new (replacement) execution node can easily replace the failed node without having to worry about recreating specific state.

[0066] although Figure 3 The execution nodes shown in each include a data cache and a processor, but alternative embodiments may include execution nodes that include any number of processors and any number of caches. In addition, the size of the cache may vary between different execution nodes. Figure 3 The illustrated cache stores data retrieved from one or more data storage devices in the cloud storage platform 104 in a local execution node. Therefore, the cache reduces or eliminates the bottleneck problem that occurs in a platform that continuously retrieves data from a remote storage system. Rather than repeatedly accessing data from a remote storage device, the systems and methods described herein access data from a cache in an execution node, which is significantly faster and avoids the bottleneck problem discussed above. In some embodiments, the cache is implemented using a high-speed memory device that provides fast access to cached data. Each cache can store data from any storage device in the cloud storage platform 104.

[0067] In addition, cache resources and computing resources can vary between different execution nodes. For example, an execution node may include a large amount of computing resources and a minimum of cache resources, so that the execution node can be used for tasks that require a large amount of computing resources. Another execution node may include a large amount of cache resources and a minimum of computing resources, so that the execution node can be used for tasks that require a large amount of data to be cached. Yet another execution node may include cache resources that provide faster input-output operations, which is useful for tasks that require rapid scanning of large amounts of data. In some embodiments, based on the expected tasks that the execution node will perform, the cache resources and computing resources associated with a specific execution node are determined when the execution node is created.

[0068] In addition, the cache resources and computing resources associated with a particular execution node can change over time based on the changing tasks performed by the execution node. For example, if the tasks performed by the execution node become more processor-intensive, more processing resources can be allocated to the execution node. Similarly, if the tasks performed by the execution node require a larger cache capacity, more cache resources can be allocated to the execution node. In addition, due to various problems (e.g., virtualization problems and network overhead), the execution speed of some nodes may be much slower than that of other nodes. In some embodiments, the file stealing scheme is used to solve the imbalance at the scanning level. In particular, whenever a node process completes scanning its input file set, it requests additional files from other nodes. If one of the other nodes receives such a request, the node analyzes its own collection (e.g., how many files are left in the input file collection when the request is received), and then transfers the ownership of one or more remaining files within the duration of the current job (e.g., query). The requesting node (e.g., file stealing node) then receives data (e.g., header data) and downloads files from the cloud storage platform 104 (e.g., from the data storage device 120-1) without downloading files from the transfer node. This way, the lagging node can transfer files through file stealing without increasing the load on the lagging node.

[0069] Although virtual warehouses 1, 2, and N are associated with the same execution platform 110, multiple computing systems at multiple geographic locations may be used to implement virtual warehouses 1, ... N. For example, virtual warehouse 1 may be implemented by a computing system at a first geographic location, while virtual warehouse 2 and virtual warehouse N are implemented by another computing system at a second geographic location. In some embodiments, these different computing systems are cloud-based computing systems maintained by one or more different entities.

[0070] In addition, each virtual warehouse Figure 3302-1 and 302-2 are shown as having multiple execution nodes. Multiple computing systems located at multiple geographic locations can be used to implement multiple execution nodes associated with each virtual warehouse. For example, an instance of virtual warehouse 1 implements execution nodes 302-1 and 302-2 on a computing platform at one geographic location, while implementing execution node 302-N at a different computing platform at another geographic location. The selection of a particular computing system to implement an execution node can depend on various factors, such as the resource level required for a particular execution node (e.g., processing resource requirements and cache requirements), the resources available at a particular computing system, the communication capabilities of a network within or between geographic locations, and which computing systems have implemented other execution nodes in the virtual warehouse.

[0071] The execution platform 110 is also fault tolerant. For example, if a virtual warehouse fails, the virtual warehouse will be quickly replaced by a different virtual warehouse located in a different geographical location.

[0072] A particular execution platform 110 may include any number of virtual warehouses. In addition, the number of virtual warehouses in a particular execution platform is dynamic, so that new virtual warehouses are created when additional processing and / or cache resources are needed. Similarly, existing virtual warehouses may be deleted when the resources associated with the virtual warehouses are no longer needed.

[0073] In some embodiments, virtual warehouses can operate on the same data in the cloud storage platform 104, but each virtual warehouse has its execution nodes, which have independent processing resources and cache resources. This configuration allows requests on different virtual warehouses to be processed independently without interfering with each other. This independent processing, combined with the ability to dynamically add and remove virtual warehouses, supports adding new processing capabilities for new users without affecting the performance observed by existing users.

[0074] In some embodiments, table data may be divided into one or more micro-partitions, which are contiguous storage units. As used herein, the terms "partition file" (or "partition data file") and micro-partition are interchangeable. In this regard, source table data may be stored as multiple partition files associated with a source table.

[0075] Figure 44 is a flow chart of an example method 400 for generating a machine learning (ML) model for extracting information from one or more electronic documents according to some embodiments. The method 400 may be embodied in computer-readable instructions executed by one or more hardware components (e.g., one or more processors), such that the operations of the method 400 may be performed by a component of the network-based database system 102, such as a network node (e.g., an ML generator 132 executed on a network node of the computing service manager 108) or a computing device (e.g., a client device 114), one or both of which may be implemented to perform the disclosed functionality. Fig.12 The machine 1200 of the embodiment of the present invention is a computer program product. Accordingly, the method 400 is described below by referring to an example thereof. However, it should be understood that the method 400 can be deployed on various other hardware configurations and is not intended to be limited to being deployed within the network-based database system 102.

[0076] At operation 402, one or more hardware processors cause presentation of a user interface for training a selected machine learning (ML) model (e.g., a base ML model or a pre-trained ML model), wherein the selected ML model (select MLmodel) is configured to extract values ​​of one or more data points from an electronic document. The selected ML model can be used as a base ML model (e.g., an initial base ML model) from which a user can train to generate a customized ML model (e.g., a model fine-tuned for extracting information from electronic documents containing a particular type of information content (e.g., a bank statement, bill, or resume)), as described herein. In addition, the selected model can be a version of a previously generated (e.g., fine-tuned) selected ML model that the user wishes to further train (e.g., fine-tune). Figure 6 An example user interface for creating a project (as described herein) that facilitates training (e.g., fine-tuning) an ML model for extracting information from electronic documents is shown. Figure 7 The example user interface shown may facilitate uploading of one or more electronic documents associated with an existing project or a created project.

[0077] At operation 404, one or more hardware processors add or revise at least one of a set of data points or a set of questions corresponding to the set of data points (e.g., the set of questions is associated with the set of data points) through a user interface. For various embodiments, the ML model extracts the value of the data point from the electronic document using a given data point (e.g., having a data point name or label) and its associated question, wherein the associated question specifies what value the ML model will extract from the electronic document. For example, a user may access a user interface that allows the user to add a new data point with an associated question, or to revise an existing data point and its existing associated question. Reference Figure 8-Figure 11 An example user interface is shown that facilitates a user to add or revise a set of data points or a set of questions.

[0078] At operation 406, one or more hardware processors cause the uploaded electronic document to be presented in a user interface. Figure 8 and Fig.11 An example user interface presenting an uploaded electronic document is shown.

[0079] In operation 408 , one or more hardware processors use the selected ML model to extract a value set of at least the set of data points from the uploaded electronic document based on the corresponding set of questions.

[0080] At operation 410, one or more hardware processors cause the value set to be presented along with the set of data points, the set of questions, and a set of confidence scores for the value set. Figure 9-11 An example user interface presenting data points, questions, and confidence scores is shown.

[0081] At operation 412, one or more hardware processors receive user feedback about one or more values ​​in the set of values ​​through a user interface. Depending on the embodiment, the user feedback may include a user's acceptance of an extracted value presented in the user interface (e.g., by clicking an acceptable graphical button), a user's rejection of an extracted value (e.g., by clicking a rejection graphical button), or a user's change (e.g., modification, adjustment, or correction) to an extracted value. The user feedback may represent an annotation to an electronic document. Ultimately, as described herein, the user feedback may be used to adjust (e.g., train or fine-tune) a selected ML model during a training process.

[0082] At operation 414, one or more hardware processors perform a training process on the selected ML model to generate a customized ML model from the selected ML model based on the user feedback and the uploaded electronic document. For example, the user can click a graphical button that can initiate a training process on the selected ML model based on the user feedback, which can include one or more acceptances, rejections, or adjustments of the extracted values ​​by the user. The result of operation 414 is a customized (e.g., fine-tuned) ML model. For various embodiments, the customized ML model is a data object that can be used in a database statement or used with the document information extraction pipeline described herein.

[0083] At operation 416, one or more hardware processors publish the custom ML model as a data object for extracting a set of data points from an electronic document. During operation 416, the data object of the custom ML model is available to a user (e.g., an ML engineer) to set up a document information extraction pipeline.

[0084] Figure 5 is a flow chart of an example user workflow 500 for generating a machine learning (ML) model for extracting information from one or more electronic documents according to some embodiments. For some embodiments, Figure 4 The method 400 implements at least some portions of the user workflow 500. It starts at operation 502, where a user accesses a user interface for training a selected ML model for extracting one or more data points from an electronic document. From operation 502, the user workflow 500 can proceed to one of operations 510, 520, 530, 540, or 550.

[0085] At operation 510, the user accesses (e.g., views or modifies) information of a project associated with the selected ML model to be trained through a user interface. The information may include the name of the project, the name of the user who owns the project, the number of electronic documents that have been uploaded (e.g., for training or processing) and associated with the project, the version number of the project, or the base ML model from which the selected ML model was generated. After operation 510, the user workflow 500 may return to operation 502.

[0086] At operation 520, the user selects one or more electronic documents to be added to the project, wherein the added one or more electronic documents can be used to explore (e.g., test) the selected ML model, train the selected ML model, or both. Subsequently, at operation 522, the user can choose to upload the added one or more electronic documents to the project. After operation 522, the user workflow 500 can return to operation 502.

[0087] At operation 530 , the user reviews the one or more electronic documents uploaded to the project to be reviewed by causing the one or more electronic documents to be presented in the user interface. After operation 530 , the user workflow 500 may return to operation 502 .

[0088] At operation 540, the user selects a selected ML model for the project to extract one or more values ​​of a data point from the electronic document. As described herein, the selected ML model can be a previous version of the selected ML model, a base ML model (e.g., a zero-shot ML model), a pre-trained ML model, etc.

[0089] At operation 550, the user selects to add one or more new data points to an existing set of data points (e.g., of an item), to add one or more new questions to an existing set of questions corresponding to an existing set of data points, to update one or more data points in an existing set of data points, or to update one or more questions in an existing set of questions. As described herein, the selected ML model will be used to extract values ​​for all existing sets of data points using questions corresponding to the existing sets of data points. At operation 552, one or more hardware processors extract one or more values ​​of an existing set of data points (e.g., of an item) from a currently presented electronic document using the selected ML model, wherein the ML model performs the extraction using a set of questions corresponding to the existing set of data points. At operation 554, the one or more hardware processors present the one or more extracted values ​​and their corresponding confidence scores provided by the selected ML model in a user interface. At operation 556, the one or more hardware processors receive user feedback (e.g., acceptance, rejection, value modification) from the user regarding the one or more extracted values. After operation 556, the user workflow 500 may return to operation 550, where the user adds / revise one or more data points or one or more corresponding questions at the time of operation, or the user workflow 500 may proceed to operation 558, where the user starts a training process for the selected ML model using the one or more uploaded electronic documents and the associated extracted values ​​accepted, rejected, or modified (e.g., corrected) by the user feedback. At operation 560, one or more hardware processors perform a training process for the selected ML model using the one or more uploaded electronic documents and the associated extracted values ​​accepted, rejected, or modified by the user feedback, to generate a customized (e.g., fine-tuned) ML model from the selected ML model (e.g., the version of the selected ML model used during operation 552). After operation 550, the user workflow 500 may return to operation 502.

[0090] Figure 6An example user interface 600 for adding (e.g., creating) a new project for an ML model for document information extraction according to some embodiments is shown. As shown, a user can select a standard ML model (e.g., a base ML model) or a pre-trained ML model (specifically, a model pre-trained for invoice electronic documents, or a model pre-trained for payroll electronic documents) as the ML model for the new project.

[0091] Figure 7 An example user interface 700 is shown for uploading one or more electronic documents to a project associated with an ML model for document information extraction in accordance with some embodiments.

[0092] Figure 8-Figure 11 An example user interface is shown that presents an electronic document, presents a data point, presents a question associated with the data point, presents an extracted value associated with the data point, presents a confidence score, receives user feedback, and begins a training process for an ML model in accordance with some embodiments. In particular, Figure 8 The user interface 800 can be used to review one or more uploaded documents (e.g., uploaded by a user for use in training an ML model for a project). Fig. 9 The user interface 900 of the embodiment of the present invention presents data points of the project, presents questions associated with these data points, presents values ​​extracted for these data points (e.g., values ​​extracted from a given electronic document currently presented via the user interface 800), and presents confidence scores provided by the ML model for the extracted values. Through the user interface 900, the user can change (e.g., adjust or modify) one or more data points, or one or more questions. In addition, the user interface 900 can allow the user to provide user feedback on one or more extracted values, such as accepting the extracted value, rejecting the extracted value, or changing (e.g., modifying, adjusting, correcting) the extracted value. Fig.10 The user interface 1000 of FIG. 1 shows how a user can add a new data point (eg, a new feature name) with a new question (eg, “Ask question…”), and Fig.10 User interface 1010 of 1100 shows how user interface 1010 is updated with: the value extracted by the ML model for the newly added data point using the newly added question (e.g., the value extracted from the given electronic document currently presented via user interface 800); and the confidence score provided by the ML model for the extracted value (e.g., 0.91). User interface 1100 shows an example combination of user interface 800 (displaying the currently uploaded electronic document) and user interface 900.

[0093] Fig.12A diagrammatic representation of a machine 1200 in the form of a computer system is shown, in accordance with an embodiment, within which a set of instructions may be executed to cause the machine 1200 to perform any one or more of the methods discussed herein. Specifically, Fig.12 A diagrammatic representation of a machine 1200 is shown in the form of an example of a computer system within which instructions 1216 (e.g., software, programs, applications, applet, app, or other executable code) for causing the machine 1200 to perform any one or more of the methods discussed herein can be executed. For example, the instructions 1216 can cause the machine 1200 to perform any one or more operations of the method 400 (or any other technique discussed herein). As another example, the instructions 1216 can cause the machine 1200 to implement one or more portions of the functionality discussed herein. In this manner, the instructions 1216 can convert a general-purpose, unprogrammed machine into a specific machine 1200 (e.g., a client device 114, a computing service manager 108, or a node in an execution platform 110) that is specifically configured to perform any of the functions described and illustrated in the manner described herein. In yet another embodiment, the instructions 1216 may configure the client device 114 , the computing service manager 108 , and / or a node in the execution platform 110 to perform any of the functions described and illustrated in the manner described herein, which functions may be configured or performed by the ML generator 132 .

[0094] In alternative embodiments, the machine 1200 operates as a standalone device or may be coupled (e.g., networked) to other machines. In a networked deployment, the machine 1200 may operate as a server machine or a client machine in a server-client network environment, or as a peer machine in a peer-to-peer (or distributed) network environment. The machine 1200 may include, but is not limited to, a server computer, a client computer, a personal computer (PC), a tablet computer, a laptop computer, a netbook, a smart phone, a mobile device, a network router, a network switch, a network bridge, or any machine capable of executing instructions 1216 sequentially or otherwise, the instructions 1216 specifying actions to be taken by the machine 1200. In addition, while only a single machine 1200 is shown, the term "machine" should also be construed to include a collection of machines 1200 that individually or jointly execute instructions 1216 to perform any one or more of the methodologies discussed herein.

[0095] Machine 1200 includes processor 1210, memory 1230, and input / output (I / O) components 1250, which are configured to communicate with each other, for example, via bus 1202. In some embodiments, processor 1210 (e.g., a central processing unit (CPU), a reduced instruction set computing (RISC) processor, a complex instruction set computing (CISC) processor, a graphics processing unit (GPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a radio frequency integrated circuit (RFIC), another processor, or any suitable combination thereof) may include, for example, processor 1212 and processor 1214 that can execute instructions 1216. The term "processor" is intended to include multi-core processor 1210, which may include two or more independent processors (sometimes referred to as "cores") that can execute instructions 1216 simultaneously. Although Fig.12 Multiple processors 1210 are shown, but the machine 1200 may include a single processor with a single core, a single processor with multiple cores (e.g., a multi-core processor), multiple processors with a single core, multiple processors with multiple cores, or any combination thereof.

[0096] The memory 1230 may include a main memory 1232, a static memory 1234, and a storage unit 1236, all of which may be accessed by the processor 1210, for example, via the bus 1202. The main memory 1232, the static memory 1234, and the storage unit 1236 store instructions 1216, which embody any one or more of the methodologies or functions described herein. During execution by the machine 1200, the instructions 1216 may also reside, in whole or in part, within the main memory 1232, within the static memory 1234, within the machine storage medium 1238 of the storage unit 1236, within at least one processor 1210 (e.g., within a processor's cache), or within any suitable combination thereof.

[0097] The I / O components 1250 include components for receiving input, providing output, generating output, transmitting information, exchanging information, capturing measurements, etc. The specific I / O components 1250 included in a particular machine 1200 will depend on the type of machine. For example, a portable machine such as a mobile phone will likely include a touch input device or other such input mechanism, while a headless server machine will be less likely to include such a touch input device. It will be appreciated that the I / O components 1250 may include Fig.12Many other components not shown in the figure. The I / O components 1250 are grouped according to function only to simplify the following discussion, and the grouping is by no means limiting. In various embodiments, the I / O components 1250 may include output components 1252 and input components 1254. The output components 1252 may include visual components (e.g., displays such as plasma display panels (PDPs), light emitting diode (LED) displays, liquid crystal displays (LCDs), projectors, or cathode ray tubes (CRTs)), acoustic components (e.g., speakers), other signal generators, etc. The input components 1254 may include alphanumeric input components (e.g., keyboards, touch screens configured to receive alphanumeric input, optical keyboards, or other alphanumeric input components), pointing-based input components (e.g., mice, touch pads, trackballs, joysticks, motion sensors, or another pointing instrument), tactile input components (e.g., physical buttons, touch screens or other tactile input components that provide the location and / or force of touch or touch gestures), audio input components (e.g., microphones), etc.

[0098] A variety of techniques may be used to implement communication. The I / O component 1250 may include a communication component 1264 that is operable to couple the machine 1200 to a network 1280 or a device 1270 via a coupling 1282 and a coupling 1272, respectively. For example, the communication component 1264 may include a network interface component or another suitable device that interfaces with the network 1280. In a further example, the communication component 1264 may include a wired communication component, a wireless communication component, a cellular communication component, and other communication components that provide communication via other modalities. The device 1270 may be another machine or any of a variety of peripheral devices (e.g., a peripheral device coupled via a universal serial bus (USB)). For example, as described above, the machine 1200 may correspond to any one of the client device 114, the computing service manager 108, or the execution platform 110, and the device 1270 may include the client device 114 or any other computing device described herein as communicating with the network-based database system 102 or the cloud storage platform 104.

[0099] Various memories (e.g., 1230, 1232, 1234 and / or memory and / or storage unit 1236 of processor 1210) may store one or more sets of instructions 1216 and data structures (e.g., software) that embody or are utilized by any one or more of the methods or functions described herein. When executed by processor 1210, these instructions 1216 cause various operations to implement the disclosed embodiments.

[0100] As used herein, the terms "machine storage medium," "device storage medium," and "computer storage medium" mean the same and may be used interchangeably in this disclosure. These terms refer to a single or multiple storage devices and / or media (e.g., centralized or distributed databases and / or associated caches and servers) that store executable instructions and / or data. Accordingly, these terms should be considered to include, but are not limited to, solid-state memory and optical and magnetic media, including memory internal or external to the processor. Specific examples of machine storage medium, computer storage medium, and / or device storage medium include non-volatile memory, including, for example: semiconductor memory devices such as erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), field programmable gate arrays (FPGA), and flash memory devices; magnetic disks, such as internal hard disks and removable disks; magneto-optical disks; and CD-ROM and DVD-ROM optical disks. The terms "machine storage medium," "computer storage medium," and "device storage medium" specifically exclude carrier waves, modulated data signals, and other such media (at least some of which are included in the term "signal media" discussed below).

[0101] In various embodiments, one or more portions of network 1280 may be an ad hoc network, an intranet, an extranet, a virtual private network (VPN), a local area network (LAN), a wireless LAN (WLAN), a wide area network (WAN), a wireless WAN (WWAN), a metropolitan area network (MAN), the Internet, a portion of the Internet, a portion of a public switched telephone network (PSTN), a plain old telephone service (POTS) network, a cellular telephone network, a wireless network, 1280, or a portion of network 1280, may include a wireless or cellular network, and coupling 1282 may be a code division multiple access (CDMA) connection, a global system for mobile communications (GSM) connection, or another type of cellular or wireless coupling. In this example, coupling 1282 may implement any of a variety of types of data transmission technologies, such as single carrier radio transmission technology (1xRTT), evolution-data optimized (EVDO) technology, general packet radio service (GPRS) technology, enhanced data rates for GSM evolution (EDGE) technology, including 3G, fourth generation wireless (4G) networks, universal mobile telecommunications system (UMTS), high speed packet access (HSPA), world wide interoperability for microwave access (WiMAX), long term evolution (LTE) standards of the third generation partnership project (3GPP), other technologies defined by various standard setting organizations, other long-range protocols, or other data transmission technologies.

[0102] The instructions 1216 may be transmitted or received over the network 1280 using a transmission medium via a network interface device (e.g., a network interface component included in the communication component 1264) and using any of several well-known transmission protocols (e.g., the Hypertext Transfer Protocol (HTTP)). Similarly, the instructions 1216 may be sent or received to the device 1270 using a transmission medium via a coupling 1272 (e.g., a peer-to-peer coupling or another type of wired or wireless network coupling). The terms "transmission medium" and "signal medium" have the same meaning and may be used interchangeably in this disclosure. The terms "transmission medium" and "signal medium" should be understood to include any intangible medium that is capable of storing, encoding, or carrying instructions 1216 for execution by the machine 1200, and include digital or analog communication signals or other intangible media that facilitate the communication of such software. Thus, the terms "transmission medium" and "signal medium" should be understood to include any form of modulated data signal, carrier wave, etc. The term "modulated data signal" means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal.

[0103] The terms "machine-readable medium," "computer-readable medium," and "device-readable medium" mean the same and may be used interchangeably in this disclosure. These terms are defined to include both machine storage media and transmission media. Thus, these terms include both storage devices / medium and carrier / modulated data signals.

[0104] The various operations of the example methods described herein may be performed at least in part by one or more processors that are temporarily configured (e.g., by software) or permanently configured to perform related operations. Similarly, the methods described herein may be implemented by a processor at least in part. For example, at least some operations of the disclosed method may be performed by one or more processors. The execution of some operations may be distributed between one or more processors, which not only reside in a single machine, but also are deployed across several machines. In some embodiments, one or more processors may be located in a single location (e.g., in a home environment, an office environment, or a server farm), and in other embodiments, the processors may be distributed in several locations.

[0105] Various embodiments of the subject matter of the present invention may be referred to herein individually and / or collectively by the term "invention", which is merely for convenience and is not intended to voluntarily limit the scope of the present application to any single invention or inventive concept (if more than one invention or inventive concept is disclosed). Therefore, although specific embodiments have been illustrated and described herein, it should be understood that the specific embodiments shown may be replaced with any arrangement calculated to achieve the same purpose. The present disclosure is intended to cover any modifications or variations of the various embodiments. After reading the above description, those skilled in the art will understand the combination of the above embodiments and other embodiments not specifically described herein.

[0106] In this document, the terms "a" or "an", as is common in patent documents, are used to include one or more than one, independent of any other instances or uses of "at least one" or "one or more." In this document, the term "or" is used to refer to a non-exclusive or, so that "A or B" includes "A but not B," "B but not A," and "A and B," unless otherwise stated. In the appended claims, the terms "including" and "in which" are used as the plain-English equivalents of the respective terms "comprising" and "wherein." Furthermore, in the appended claims, the terms "including" and "comprising" are open-ended; that is, systems, devices, articles, or processes that include elements other than those listed after such terms in a claim are still considered to fall within the scope of that claim.

Claims

1. A system comprising: at least one hardware processor; and at least one memory storing instructions that cause the at least one hardware processor to perform operations comprising: causing presentation of a user interface for training a selected machine learning (ML) model, the selected ML model being configured to extract values ​​of one or more data points from the electronic document; adding or revising at least one of a set of data points or a set of questions corresponding to the set of data points through the user interface; causing presentation of the uploaded electronic document in the user interface; extracting a set of values ​​for at least the set of data points from the uploaded electronic document based on a corresponding set of questions using the selected ML model; causing the set of values ​​to be presented along with the set of data points, the set of questions, and a set of confidence scores for the set of values; receiving user feedback input via the user interface regarding one or more values ​​in the set of values; performing a training process on the selected ML model to generate a customized ML model from the selected ML model based on the user feedback and the uploaded electronic document; and The client ML model is published as a data object for extracting the set of data points from the electronic document.

2. A method comprising: causing, by the one or more hardware processors, presentation of a user interface for training a selected machine learning (ML) model, the selected ML model being configured to extract values ​​of one or more data points from the electronic document; adding or revising, by the one or more hardware processors and by the user interface, at least one of a set of data points or a set of questions corresponding to the set of data points; causing, by the one or more hardware processors, presenting the uploaded electronic document in the user interface; extracting, by the one or more hardware processors, a set of values ​​for at least the set of data points from the uploaded electronic document based on a corresponding set of questions using the selected ML model; causing, by the one or more hardware processors, the set of values ​​to be presented along with the set of data points, the set of questions, and a set of confidence scores for the set of values; receiving, by the one or more hardware processors, user feedback input via the user interface regarding one or more values ​​in the set of values; performing, by the one or more hardware processors, a training process on the selected ML model to generate a customized ML model from the selected ML model based on the user feedback and the uploaded electronic document; and The client ML model is published by the one or more hardware processors as a data object for extracting the set of data points from the electronic document.

3. A computer storage medium comprising instructions that, when executed by one or more processors of a machine, configure the machine to perform operations comprising: causing presentation of a user interface for training a selected machine learning (ML) model, the selected ML model being configured to extract values ​​of one or more data points from the electronic document; adding or revising at least one of a set of data points or a set of questions corresponding to the set of data points through the user interface; causing presentation of the uploaded electronic document in the user interface; extracting a set of values ​​for at least the set of data points from the uploaded electronic document based on a corresponding set of questions using the selected ML model; causing the set of values ​​to be presented along with the set of data points, the set of questions, and a set of confidence scores for the set of values; receiving user feedback input via the user interface regarding one or more values ​​in the set of values; performing a training process on the selected ML model to generate a customized ML model from the selected ML model based on the user feedback and the uploaded electronic document; and The client ML model is published as a data object for extracting the set of data points from the electronic document.

Citation Information

Cited By

  • Generating machine-learning model for document extraction

    US12236355B2