Information processing system and method, and non-transitory computer readable medium
The information processing system addresses the inaccuracies in determining the region of a value by calculating region information based on character recognition and natural language processing results, enhancing the precision of value extraction in document images.
Patent Information
- Application Number
- US19/411608
- Authority / Receiving Office
- US · United States
- Patent Type
- Applications(United States)
- Current Assignee / Owner
- Priority Date
- 2025-05-20
- Filing Date
- 2025-12-08
- Publication Date
- 2026-11-26
AI Technical Summary
Existing character recognition and natural language processing systems often fail to accurately determine the region of a value within a document image, leading to incorrect output coordinates.
An information processing system that combines character recognition and natural language processing, where region information is calculated based on the character recognition result and the extraction result from the natural language processing model, using predefined key-value pairs and coordinates to accurately identify the region of the value.
The system ensures accurate determination of the region of a value within a document image, improving the precision of information extraction by correcting potential errors in coordinate output from the natural language processing model.
Smart Images

Figure US20260378243A1-D00000_ABST
Abstract
Description
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application is based on and claims priority under 35 USC 119 from Japanese Patent Application No. 2025-084347 filed May 20, 2025.BACKGROUNDi Technical Field
[0002] The present disclosure relates to an information processing system and method, and a non-transitory computer readable medium.ii Related Art
[0003] As a technology for extracting and outputting a value corresponding to a predetermined key from a document image, a technology using a combination of character recognition processing and natural language processing has been proposed. Japanese Unexamined Patent Application Publication No. 2021-77332 discloses a technology employing a machine learning model using a pair of a key and a value as learning data. Japanese Patent No. 7430437 discloses the following technology. An instruction to extract character information of a predetermined item from a set of character strings read from a printed matter by character recognition is provided to a large language model, and the extracted character information is obtained from the large language model.SUMMARY
[0004] In the related art, a character recognition result is input into a natural language processing model, and the natural language processing model extracts a value from the character recognition result. If the natural language processing model is also instructed to output information of a region of the value, a character string included in the character recognition result and the coordinates of this character string may be input into the natural language processing model. In response to input of the character string and the coordinates thereof, the natural language processing model may extract the value based on the meaning of text and output the coordinates of the input character string as the coordinates of the value. In this case, information of the region of the value output from the natural language processing model is not necessarily correct.
[0005] Aspects of non-limiting embodiments of the present disclosure relate to an information processing system and method and a non-transitory computer readable medium that make it possible to calculate correct region information of a value, compared with the configuration in which the coordinates of a value output from a natural language processing model is used as region information of the value.
[0006] Aspects of certain non-limiting embodiments of the present disclosure address the above advantages and / or other advantages not described above. However, aspects of the non-limiting embodiments are not required to address the advantages described above, and aspects of the non-limiting embodiments of the present disclosure may not address advantages described above.
[0007] According to an aspect of the present disclosure, there is provided an information processing system including a processor configured to: obtain character string information from a character recognition result generated by recognizing a document image, the character string information being constituted by a pair of a character string included in a document represented by the document image and coordinates of the character string; input input data including the character string information and an instruction into a natural language processing model, the instruction being an instruction to extract a pair of a value corresponding to a predetermined key and coordinates of the value from the character string information and to output the extracted pair; and calculate region information of a region of the value, based on the character recognition result and an extraction result output from the natural language processing model.BRIEF DESCRIPTION OF THE DRAWINGS
[0008] An exemplary embodiment of the present disclosure will be described in detail based on the following figures, wherein:
[0009] FIG. 1 is a schematic diagram of an image processing system according to the exemplary embodiment;
[0010] FIG. 2 is a block diagram illustrating an example of the hardware configuration of an information processing system according to the exemplary embodiment;
[0011] FIG. 3 is a block diagram illustrating an example of the functional configuration of the information processing system according to the exemplary embodiment;
[0012] FIG. 4 is a sequence diagram illustrating an example of a flow of information in the image processing system according to the exemplary embodiment;
[0013] FIG. 5 is a flowchart illustrating an example of information processing executed by the image processing system according to the exemplary embodiment;
[0014] FIG. 6 illustrates an example of a document image;
[0015] FIG. 7 illustrates an example of a recognition result;
[0016] FIG. 8 illustrates another example of the recognition result;
[0017] FIG. 9 illustrates an example of sorting of line information;
[0018] FIG. 10 illustrates another example of sorting of line information;
[0019] FIG. 11 illustrates an example of character string information;
[0020] FIG. 12 illustrates an example of an extraction definition function, which is an external function;
[0021] FIG. 13 illustrates another example of the extraction definition function;
[0022] FIG. 14 illustrates an example of a purchase order extraction definition function;
[0023] FIG. 15 illustrates a modified example of the purchase order extraction definition function;
[0024] FIG. 16 illustrates an example of an extraction result;
[0025] FIG. 17 illustrates another example of the extraction result;
[0026] FIG. 18 illustrates an example of extraction definition of detailed item information;
[0027] FIG. 19 is a flowchart illustrating an example of a sub-step of step S600 in FIG. 5;
[0028] FIG. 20 is a flowchart illustrating an example of a sub-step of step S630 in FIG. 19;
[0029] FIG. 21 illustrates an example of line information representing a target character string;
[0030] FIG. 22 illustrates an example of pieces of single character information each representing a character forming a partial character string;
[0031] FIG. 23 illustrates an example of output of region information;
[0032] FIG. 24 illustrates an output image of the region information;
[0033] FIG. 25 illustrates an example of a description range of detailed items; and
[0034] FIG. 26 illustrates an example in which region information is contained within a description range of detailed items.DETAILED DESCRIPTION
[0035] An exemplary embodiment of the disclosure will be described below with reference to the accompanying drawings. In the individual drawings, identical or equivalent elements or portions are designated by like reference numerals. For the sake of representation, the dimensional ratios in the drawings may be exaggerated and be different from the actual ratios.
[0036] FIG. 1 is a schematic diagram of an image processing system 1 according to the exemplary embodiment. As illustrated in FIG. 1, the image processing system 1 includes an information processing system 10, a natural language processing model 20, an external system 30, and a character recognition device 50.
[0037] The information processing system 10 is a system that executes information processing which will be discussed later. The information processing system 10 may be constituted by a personal computer (PC), a workstation, or a virtual server on a cloud, for example. That is, the information processing system 10 may be constituted by a single device or multiple devices.
[0038] The natural language processing model 20 is generative artificial intelligence (AI) that has learned natural language data. The natural language processing model 20 generates output data using a natural language, based on input data provided as an input prompt. As the natural language processing model 20, a large language model (LLM), for example, may be used. An LLM is a transformer neural network model that is pre-trained based on a vast amount of natural language data and is able to execute natural language processing tasks, such as context understanding, inference, answering questions, and summarizing, with high precision.
[0039] However, the natural language processing model 20 may not necessarily have a huge number of parameters. A small language model (SLM), which is smaller in scale, may be employed as the natural language processing model 20 according to the necessity. In an environment with constraints on computational resources and response times, for example, an SLM may be more desirable than an LLM.
[0040] The external system 30 generates data to be processed by the image processing system 1 and outputs a document image 40 based on this data. The external system 30 may be an order management system or an accounting system. In this case, the external system 30 may generate a form, such as a purchase order sheet, an invoice, a delivery note, and a quotation, and output a form image, which is image data of this form, as the document image 40. The document image 40 may be created in accordance with a predetermined format and contain information expressed in a table format.
[0041] The character recognition device 50 executes character recognition processing on the document image 40 output from the external system 30. The character recognition device 50 may have an optical character recognition (OCR) function. The character recognition device 50 may recognize characters included in the document image 40 using the OCR function and convert the recognized characters into text data. The character recognition device 50 may be formed as a stand-alone OCR engine or an OCR processing function implemented as a cloud service.
[0042] The information processing system 10, natural language processing model 20, external system 30, and character recognition device 50 may be independent physical devices or services and be connected to each other via a communication network. Examples of the communication network are a local area network (LAN), a wide area network (WAN), the internet, and a combination thereof. With this configuration, even if the character recognition device 50 is a cloud OCR service, for example, and the natural language processing model 20 is based on cloud AI, for example, the information processing system 10 can send and receive data to and from the other devices in real time.
[0043] FIG. 2 is a block diagram of an example of the hardware configuration of the information processing system 10 according to the exemplary embodiment. As illustrated in FIG. 2, the information processing system 10 includes a processor 11, a read only memory (ROM) 12, a random access memory (RAM) 13, a storage 14, an input unit 15, a display 16, and a communication interface (I / F) 17. These elements are connected to each other via a bus 19 so as to communicate with each other.
[0044] The processor 11 executes various programs and controls the other elements of the information processing system 10. The ROM 12 stores various programs and various pieces of data. The RAM 13 serves as a work area and temporarily stores a program or data. The storage 14 is a hard disk drive (HDD) or a solid state drive (SSD), for example, and stores various programs including an operating system (OS) and various pieces of data.
[0045] In the information processing system 10, an information processing program 18 is stored in the ROM 12 or the storage 14. In the example in FIG. 2, the information processing program 18 is stored in the storage 14. In this case, the processor 11 reads the information processing program 18 from the storage 14 and executes it by using the RAM 13 as a work area so as to control the elements of the information processing system 10 and to execute various types of calculation processing in accordance with the information processing program 18. The storage 14 may not be necessarily built in the information processing system 10. The storage 14 may be a portable storage device that is attachable to and detachable from the information processing system 10, or a cloud server outside the information processing system 10 may be used as a storage device.
[0046] The input unit 15 includes a pointing device, such as a mouse, and a keyboard, for example, and is used for various input operations.
[0047] The display 16 is a liquid crystal display, for example, and displays various types of information. The display 16 may be a touchscreen display, in which case, the display 16 also serves as the input unit 15.
[0048] The communication interface 17 is an interface for the information processing system 10 to communicate with other devices, such as the natural language processing model 20, the external system 30, and the character recognition device 50. As the communication standard, Ethernet (registered trademark), FDDI, or Wi-Fi (registered trademark), for example, may be used.
[0049] FIG. 3 is a block diagram of an example of the functional configuration of the information processing system 10 according to the exemplary embodiment. FIG. 3 also shows the natural language processing model 20, the external system 30, and the character recognition device 50. As illustrated in FIG. 3, the information processing system 10 includes a recognition result obtainer 101, a character string information obtainer 102, a model input unit 103, an extraction result obtainer 104, and a region information calculator 105 as functional modules. Each functional module is implemented as a result of the processor 11 reading the information processing program 18 stored in the ROM 12 or the storage 14, loading it to the RAM 13, and executing it.
[0050] The recognition result obtainer 101 serves to obtain a character recognition result generated by the character recognition device 50 recognizing the document image 40.
[0051] The character string information obtainer 102 serves to obtain character string information constituted by a pair of a character string included in the document represented by the document image 40 and the coordinates of this character string from the character recognition result of the document image 40.
[0052] The module input unit 103 serves to input input data into the natural language processing model 20. This input data is constituted by the character string information and an instruction to extract a pair of a value corresponding to a predetermined key and the coordinates of this value from the character string information and to output the extracted pair. The model input unit 103 may add definition information that defines a key corresponding to a value to be extracted from the character string information, such as an extraction definition function 110, to the input data and input the resulting input data into the natural language processing model 20.
[0053] The extraction result obtainer 104 serves to obtain, as an extraction result, output data that is output from the natural language processing model 20 in response to the input of input data.
[0054] The region information calculator 105 serves to calculate region information of a region of a value, based on the extraction result output from the natural language processing model 20 and the character recognition result of the document image 40.
[0055] FIG. 4 is a sequence diagram illustrating a flow of information in the image processing system 1 according to the exemplary embodiment.
[0056] The document image 40 is first supplied from the external system 30 to the character recognition device 50. In response to receiving of the document image 40, the character recognition device 50 executes character recognition processing on the document image 40.
[0057] Then, the recognition result is supplied from the character recognition device 50 to the character string information obtainer 102 and the region information calculator 105 via the recognition result obtainer 101. In response to receiving of the recognition result, the character string information obtainer 102 obtains character string information from the recognition result.
[0058] Then, the character string information is input from the character string information obtainer 102 to the model input unit 103. In response to the input of the character string information, the model input unit 103 generates input data including the character string information and the above-described instruction. The model input unit 103 may add definition information to the input data.
[0059] Then, the input data is input from the model input unit 103 to the natural language processing model 20 as an input prompt. In response to the input of the input data, the natural language processing model 20 extracts a pair of a value corresponding to a predetermined key and the coordinates of this value from the character string information and outputs the extracted pair.
[0060] Then, the extraction result is supplied from the natural language processing model 20 to the region information calculator 105 via the extraction result obtainer 104. In response to the input of the extraction result, the region information calculator 105 calculates region information based on the extraction result and the recognition result.
[0061] Then, information corresponding to the region information is supplied from the region information calculator 105 to the external system 30.
[0062] FIG. 5 is a flowchart illustrating information processing executed by the image processing system 1 according to the exemplary embodiment.
[0063] In step S200, the character recognition device 50 executes character recognition processing on the document image 40 output from the external system 30. This will be explained below with reference to FIGS. 6-8.
[0064] FIG. 6 illustrates an example of the document image 40. Hereinafter, an explanation will be given through illustration of an example in which the document image 40 is a form image generated by forming a purchase order sheet into image data. The document image 40 may include a document type (purchase order), order number, purchaser, supplier, date, amount, and order details (such as product name, unit price, number, and amount). The character recognition device 50 executes character recognition processing on the document image 40, that is, the above-described form image, and outputs a recognition result.
[0065] FIGS. 7 and 8 illustrate examples of the recognition result. The recognition result may include line information indicating a meaningful character string, such as that shown in FIG. 7.
[0066] The recognition result may include single character information (character information or char information) indicating one character, such as that shown in FIG. 8. The line information and the single character information may include information of a character string (text) or a character, coordinates (x, y) at a reference position, width, and height. The reference position is a position, which is located most closely to the origin, in a circumscribed region that surrounds a character or a character string. In the examples in FIGS. 7 and 8, it is assumed that the shape of the circumscribed region is a rectangle and the origin is the top left point of the document image 40. In FIGS. 7 and 8, x, y, width, and height respectively represent the x coordinate on the top left point, the y coordinate on the top left point, and the width and the height of the circumscribed rectangle that surrounds the character string or the character. The circumscribed region may be a shape other than a rectangle, such as a circle or an ellipse.
[0067] As a result of recognizing the character string "PURCHASE ORDER", for example, the character recognition device 50 may output line information: Line0: [text: "PURCHASE ORDER", x:73, y:169, width:101, height:28].
[0068] As a result of recognizing the character "P", for example, which is the first character of the character string "PURCHASE ORDER", the character recognition device 50 may output single character information: Char0-0 [text:"P", x:73, y:169, width:30, height:27]. As a result of recognizing the character "U", for example, which is the second character of the character string "PURCHASE ORDER", the character recognition device 50 may output single character information: Char0-1 [text:"U", x:108, y:169, width:29, height:28]. As a result of recognizing the character "R", for example, which is the third character of the character string "PURCHASE ORDER", the character recognition device 50 may output single character information: Char0-2 [text:"R", x:142, y:169, width:32, height:27]. Likewise, the character recognition device 50 may output other line information and other single character information as described above.
[0069] The processor 11, which serves as the recognition result obtainer 101, may obtain the recognition result including the above-described line information and single character information from the character recognition device 50 via a network and supply the obtained recognition result to the character string information obtainer 102.
[0070] In step S300, the processor 11, which serves as the character string information obtainer 102, obtains character string information constituted by a pair of a character string included in the document represented by the document image 40 and the coordinates of this character string from the recognition result of the document image 40. For example, the processor 11 may obtain information on a character string and the coordinates of this character string from each of multiple pieces of line information included in the recognition result and then shape the obtained information into a format "(x, y): text". The shaping format is not limited to this format. The processor 11 may shape the obtained information into a desired format, such as "[x, y]: text" or (x, y, text), as long as the format includes three pieces of information, that is, x, y, and text.
[0071] Then, the processor 11 may sort multiple pieces of shaped information based on their positional relationships in the document image 40. In this example, the origin is the top left point of the document image 40. The processor 11 may thus sort the multiple pieces of shaped information in order from the top left to the bottom right of the document image 40. After sorting the shaped information in this manner, the processor 11 is able to process the recognition result into a data structure suitable for the natural language processing model 20 to execute information extraction processing, while maintaining the table structure in the document image 40 and the meaningful structure arranged line by line. This will be explained below with reference to FIGS. 9-11.
[0072] FIGS. 9 and 10 illustrate examples of sorting of multiple pieces of line information. The output order of pieces of line information included in the recognition result differs depending on the character recognition engine used by the character recognition device 50. It is now assumed that the pieces of line information included in the recognition result are output in the order of steps (1) through (6) shown in FIG. 9. In this case, the processor 11 may sort the pieces of shaped information from the top left to the bottom right of the document image 40, as in the order of steps (1) through (4) shown in FIG. 10. One of the reasons to perform this sorting operation is to enable the natural language processing model 20 to extract information within a table structure (which will be called "detailed item information") in the document image 40 as accurate as possible. The detailed item information is meaningful information line by line (multiple pieces of information in the horizontal direction). With the output order shown in FIG. 9, information in the same line is divided, which makes it difficult for the natural language processing model 20 to correctly extract detailed item information. The processor 11 thus sorts the pieces of shaped information so that the natural language processing model 20 can extract the detailed item information more accurately.
[0073] FIG. 11 illustrates an example of character string information. As shown in FIG. 11, character string information may have the following data structure. Multiple pairs, each of which is constituted by a character string obtained from the recognition result and the coordinates of this character string, are sorted based on their positional relationships in the document image 40. The processor 11 may obtain such character string information from the character recognition result of the document image 40.
[0074] In step S400, the processor 11, which serves as the model input unit 103, inputs input data into the natural language processing model 20. The input data is constituted by character string information and an instruction to extract a pair of a value corresponding to a predetermined key and the coordinates of this value from the character string information and to output the extracted pair.
[0075] "Key" is a name or an identifier representing an item of information to be extracted from a document. For instance, in the example of the document image 40 shown in FIG. 6, the issue date and the order number are examples of a key.
[0076] "Value" is a character or a character string representing the specific content of information corresponding to a key. For instance, in the example of the document image 40 in FIG. 6, a character string "Jan. 20, 2022" is a value corresponding to the key "Issue date". Likewise, a character string "116" is a value corresponding to the key "Order number". In some cases, a key and a value are associated with each other based on a one-to-one correspondence, and in other cases, multiple values correspond to one key. Multiple sets of values may correspond to the same key, as in detailed item information.
[0077] "Detailed items" mean multiple items of column data listed in a table format in the document image 40. In the example of the document image 40 in FIG. 6, detailed items are items of "Product name", "Unit price", "Number", and "Amount". The detailed item is constituted by a group of data repeatedly listed over multiple rows in a document (especially in a form), and each row includes a pair of a key and a value associated with each other. That is, in the detailed item, the title in each column, such as "Product name" or "Unit price", corresponds to a key, and the specific content of information, such as "Drinks" or "65389600", corresponds to a value. In the detailed item, multiple values (for multiple rows) correspond to one key.
[0078] It is now assumed that the following instruction is preset as a predetermined prompt: "Character string information is formed by a pair of a character string obtained from a character recognition result of a document image and the coordinates of this character string. The character string information is shaped into an "(x, y): text" format, where text indicates a character string, and x and y represent the x coordinate and the y coordinate, respectively, on the top left point of a circumscribed rectangle that surrounds this character string. Please extract a value corresponding to a predetermined key from the input character string information and output a pair of the x coordinate and the y coordinate of this value." In this case, the processor 11 may generate input data including the character string information and this instruction. The processor 11 may then input the generated input data into the natural language processing model 20 as the input prompt.
[0079] Before inputting the input data into the natural language processing model 20, the processor 11 may add definition information that defines a key corresponding to a value to be extracted from the character string information to the input data. This will be explained below with reference to FIGS. 12-15.
[0080] FIGS. 12 and 13 illustrate examples of the extraction definition function 110, which is an external function. The extraction definition function 110 is an example of definition information that defines a key corresponding to a value to be extracted from character string information. The definition information may have been defined by document type. FIG. 12 illustrates the extraction definition function 110 including only one definition function, that is, a purchase order extraction definition function 111, to extract information of a purchase order sheet.
[0081] The extraction definition function 110 is not limited to that shown in FIG. 12. The extraction definition function 110 may be a definition function, such as that shown in FIG. 13, including multiple definition functions that are defined by document type. In FIG. 13, in addition to the purchase order extraction definition function 111, an invoice extraction definition function 112, a delivery note extraction definition function 113, and a quotation extraction definition function 114 have been defined. The purchase order extraction definition function 111, invoice extraction definition function 112, delivery note extraction definition function 113, and quotation extraction definition function 114 are different from each other only in the information to be extracted. An explanation will thus be given by taking the purchase order extraction definition function 111 as an example.
[0082] FIG. 14 illustrates an example of the purchase order extraction definition function 111. As shown in FIG. 14, the purchase order extraction definition function 111 may be a definition function that describes keys corresponding to the values to be extracted from purchase order information in the JSON (JavaScript (registered trademark) Object Notation) format. In the example in FIG. 14, the purchase order extraction definition function 111 describes "Issue date", "Order number", "Supplier", "Purchaser", "Total amount including tax", "Total tax amount", and "Desired delivery date" in the JSON format.
[0083] The processor 11 may generate input data by including the purchase order extraction definition function 111 as definition information, as well as the character string information and the instruction, and input the generated input data into the natural language processing model 20 as the input prompt.
[0084] In this case, an instruction "Predetermined keys are defined in the purchase order extraction definition function. Please refer to the input purchase order extraction definition function and extract a pair of a value corresponding to a key defined in the purchase order extraction definition function and the coordinates of this value from the input character string information." may be added to the predetermined prompt.
[0085] In the above-described example, the processor 11 selects one extraction definition function, more specifically, the purchase order extraction definition function 111, in accordance with the document type, and adds the selected purchase order extraction definition function 111 to input data, and inputs the resulting input data into the natural language processing model 20. However, the processor 11 may add multiple extraction definition functions, such as the purchase order extraction definition function 111, invoice extraction definition function 112, delivery note extraction definition function 113, and quotation extraction definition function 114, to input data and input this input data into the natural language processing model 20. In this case, an instruction "Please infer the document type from input character string information and select one extraction definition function in accordance with the inferred document type from multiple extraction definition functions. Please refer to the selected extraction definition function and extract a pair of a value corresponding to a key defined in the selected extraction definition function and the coordinates of this value from the input character string information." may be added to the predetermined prompt. In this manner, by inputting multiple extraction definition functions into the natural language processing model 20, the processor 11 is able to instruct the natural language processing model 20 to automatically identify the document type. This can save the processor 11 identifying the document type.
[0086] In the above-described example, the processor 11 adds the character string information, instruction, and definition information into a single piece of input data and inputs these pieces of information into the natural language processing model 20 at one time. Alternatively, the processor 11 may add one or more of the character string information, instruction, and definition information into different pieces of input data and input them into the natural language processing model 20.
[0087] In the above-described example, the instruction to extract the x coordinate and the y coordinate of a value is included in the predetermined prompt. Alternatively, information on the coordinates to be extracted may be defined in the extraction definition function 110. FIG. 15 illustrates a modified example of the purchase order extraction definition function 111. In FIG. 15, a description of the key "Issue date" in the purchase order extraction definition function 111 is extracted and is shown. In this manner, in addition to a value, information that the x coordinate and the y coordinate of this value are to be extracted may also be described in the extraction definition function 110. This may simplify the content of the instruction described in the predetermined prompt.
[0088] In step S500, in accordance with the instruction included in the input data, the natural language processing model 20 may extract a value corresponding to a predetermined key, more specifically, a value corresponding to a key defined in the purchase order extraction definition function 111, and the coordinates of this value from the character string information and output a pair of the value and the coordinates. In response to the output of this pair, the processor 11, which serves as the extraction result obtainer 104, obtains output data output from the natural language processing model 20 as the extraction result. This will be explained below with reference to FIGS. 16 and 17.
[0089] FIGS. 16 and 17 illustrate examples of the extraction result. The examples in FIGS. 16 and 17 show the extraction result that is output when the input data including the character string information shown in FIG. 11 and the purchase order extraction definition function 111 shown in FIG. 14 is input into the natural language processing model 20. FIG. 16 shows the extraction result of information outside the table region in the document image 40. FIG. 17 shows the extraction result of information within the table region in the document image 40. The information outside the table region will be called major item information, while the information within the table region will be called detailed item information. FIG. 18 illustrates an example of the extraction definition of the detailed item information. FIG. 17 shows the detailed item information extracted by the natural language processing model 20 by using the purchase order extraction definition function 111 shown in FIG. 14 and the extraction definition of the detailed item information shown in FIG. 18.
[0090] As illustrated in FIG. 16, as the value corresponding to the key "Issue date", for example, "Jan. 20, 2022" is extracted from the character string information, and as the coordinates of this value, (x, y) = (73, 358) is extracted from the character string information. Likewise, as the value corresponding to the key "Order number", "116" is extracted from the character string information, and as the coordinates of this value, (x, y) = (575, 180) is extracted from the character string information.
[0091] As illustrated in FIG. 17, as the value corresponding to the key "Product name", for example, "Drinks" is extracted from the character string information, and as the coordinates of this value, (x, y) = (203, 521) is extracted from the character string information. Likewise, as the value corresponding to the key "Unit price", "65389600" is extracted from the character string information, and as the coordinates of this value, (x, y) = (494, 523) is extracted from the character string information. The processor 11, which serves as the extraction result obtainer 104, may obtain such output data from the natural language processing model 20 as the extraction result and supply the output data to the region information calculator 105.
[0092] Regarding the key "Issue date", for example, it can be said that the natural language processing model 20 has extracted correct coordinates as the coordinates of the value "Jan. 20, 2022". In contrast, regarding the key "Order number", for example, it is difficult to say that the natural language processing model 20 has extracted correct coordinates as the coordinates of the value "116". The natural language processing model 20 has extracted (x, y) = (575, 180) as the coordinates of the value "116". However, (x, y) = (575, 180) is the coordinates of the character string "Order No. 116". That is, the natural language processing model 20 has wrongly extracted (x, y) = (575, 180) as the coordinates of the value "116".
[0093] The reason for this is as follows. Although the natural language processing model 20 extracts values based on the meaning of text, it is provided only with character strings and the coordinates thereof obtained from line information included in the recognition result.
[0094] It may be possible to provide information of single characters included in the recognition result to the natural language processing model 20. As discussed above, however, the natural language processing model 20 executes information processing based on the meaning of a language. Even if single character information, as well as character string information, is provided to the natural language processing model 20, the natural language processing model 20 is unable to understand the single character information, which is meaningless as a language. The natural language processing model 20 may still fail to output correct information of the region of a value. To address this issue, the processor 11 executes step S600 as follows.
[0095] In step S600, the processor 11, which serves as the region information calculator 105, calculates region information of the region of a value, based on the extraction result output from the natural language processing model 20 and the character recognition result of the document image 40. This will be explained below in detail with reference to FIG. 19.
[0096] FIG. 19 is a flowchart illustrating an example of a sub-step of step S600. In step S610, the processor 11 selects an extracted item to be processed from the extraction result output from the natural language processing model 20.
[0097] In step S620, the processor 11 determines whether the extracted item is constituted by detailed items. For example, the processor 11 may determine whether information of the first hierarchical level in the extracted item indicates "detailed items", as shown in FIG. 17.
[0098] The reason why it is determined whether the extracted item is constituted by detailed items is as follows. As stated above, the detailed item information is information within a table structure, and pieces of information are arranged in rows and columns. Hence, the positions of the values represented by the detailed item information can be correctly identified based on the regularity of the table structure. For example, it is assumed that the amount information is indicated both in the major item information and in the detailed item information in a document. In this case, the amount information in the detailed item information is information within a table structure, and it is easier to identify the correct position of the amount information in the detailed item information within the document than that in the major item information.
[0099] It is assumed that an item in the extraction result whose first hierarchical level is not "detailed items" is selected. In this case, the processor 11 determines in step S620 that the extracted item is not constituted by detailed items and proceeds to step S630_1.
[0100] In step S630_1, the processor 11 calculates region information from the extraction result. This will be explained below in detail with reference to FIG. 20. Step S630_2, which will be discussed later, may be the same processing as S630_1, and step S630_1 and step S630_2 will thus be called step S630.
[0101] FIG. 20 is a flowchart illustrating an example of a sub-step of step S630. In step S631, the processor 11 selects a pair of a target character string and the coordinates of this character string from the character string information. For example, the processor 11 may select "(73, 169): PURCHASE ORDER" from the character string information shown in FIG. 11 as a pair of a target character string and the coordinates thereof.
[0102] In step S632, the processor 11 determines whether the coordinates of a value to be processed in the extraction result are the same as those of the target character string selected in step S631. Here, it is assumed that the value corresponding to the key "Issue date" in the extraction result in FIG. 16 is the value to be processed. In this case, the coordinates of this value are (73, 358), which is not equal to the coordinates (73, 169) of the target character string. Accordingly, the processor 11 determines that the coordinates of the value to be processed in the extraction result are not the same as those of the target character string and proceeds to step S633.
[0103] In step S633, the processor 11 determines whether the value to be processed is included in the target character string. The target character string is "PURCHASE ORDER", and the value to be processed is "Jan. 20, 2022", which is not included in "PURCHASE ORDER". Accordingly, the processor 11 determines that the value to be processed is not included in the target character string and proceeds to step S634.
[0104] In step S634, the processor 11 determines whether the entire character string information has been selected. If the character string information has not been entirely selected, the processor 11 returns to step S631. Here, the character string information has not been entirely selected, and the processor 11 returns to step S631.
[0105] It is now assumed that, after steps S631 through S634 are repeated, "(73, 358): Jan. 20, 2022" is selected as a pair of the target character string and the coordinates thereof in step S631.
[0106] The coordinates of the value to be processed are (73, 358) and the coordinates of the target character string is also (73, 358). In this case, the processor 11 determines in step S632 that the coordinates of the value to be processed are the same as those of the target character string and proceeds to step S635.
[0107] In step S635, the processor 11 determines whether the length of the value to be processed is the same as that of the target character string. The value to be processed has 16 characters and the target character string also has 16 characters, and the length of the value and that of the target character string are the same. Accordingly, the processor 11 determines that the length of the value to be processed is the same as that of the target character string and proceeds to step S636.
[0108] In step S636, the processor 11 obtains line information representing the target character string from the recognition result and calculates region information by using this line information. It is now assumed that the line information representing the target character string is Line10: text: "Jan. 20, 2022" x:73, y:358, width:101, height:13]. In this case, the processor 11 may calculate the region information as (x, y, width, height) = (73, 358, 101, 13). The region information is information that defines a region where a character string forming a value is arranged on the document image 40. For example, as a result of including the position and the range of this region in the region information, the position of the value on the document image 40 can be specified.
[0109] In the above-described explanation, the region information is constituted by multiple pieces of information on a circumscribed rectangle that surrounds a character string: the x coordinate and the y coordinate on the top left point of the circumscribed rectangle and the width and the height of the circumscribed rectangle. However, this is only an example. For instance, regarding the coordinates information, the coordinates of the center of the circumscribed rectangle may be used instead of the coordinates of the top left point.
[0110] An explanation will now be given of a case in which the value corresponding to the key "Order number" in the extraction result shown in FIG. 16 is the value to be processed and "(575, 180): Order No. 116" is selected from the character string information shown in FIG. 11 as a pair of a target character string and the coordinates thereof in step S631. In this case, the coordinates of the value to be processed are (575, 180), which are the same as the coordinates of the target character string (575, 180). Accordingly, the processor 11 determines in step S632 that the coordinates of the value to be processed are the same as those of the target character string and proceeds to step S635.
[0111] The length of the value to be processed has three characters and that of the target character string has 13 characters (including spaces). The processor 11 thus determines in step S635 that the length of the value is not the same as the length of the target character string and proceeds to step S633.
[0112] The target character string is "Order No. 116" and the value to be processed is "116". "116" is included in "Order No. 116". The processor 11 thus determines in step S633 that the value is included in the target character string and proceeds to step S637.
[0113] In step S637, the processor 11 specifies a partial character string that matches the value to be processed from the target character string. The processor 11 then obtains pieces of single character information, each indicating a character forming the partial character string, from the recognition result and calculates the region information by using the pieces of single character information. This will be explained below with reference to FIGS. 21 and 22.
[0114] FIG. 21 illustrates an example of line information representing the target character string. In the example in FIG. 21, as the line information representing the target character string "Order No. 116", Line1: [text: "Order No. 116", x:575, y:180, width:91, height:21] is shown. In this case, the processor 11 may skip ten characters from the head of "Order No. 116" and specify "116" from the eleventh character to the thirteenth character as the partial character string. The character string surrounded by the thick lines in FIG. 21 is the partial character string. Then, the processor 11 may output information (the number of characters skipped, the number of characters matching the value) = (10, 3) as partial information indicating the partial character string.
[0115] FIG. 22 illustrates an example of pieces of single character information each representing a character forming the partial character string. As indicated on the upper part of FIG. 22, the recognition result includes 13 pieces of single character information Char1-0 through Char1-12 representing the individual characters forming the target character string "Order No. 116". The processor 11 may obtain three pieces of single character information Char1-10 through Char1-12 from the 13 pieces of single character information Char1-0 through Char1-12 in accordance with the partial information. Then, the processor 11 may calculate region information as (x, y, width, height) = (643, 184, 23, 16) by using the three pieces of single character information Char1-10 through Char1-12.
[0116] In this manner, for example, the processor 11 may specify a target character string, which corresponds to a value to be processed in the extraction result, from character string information and calculate region information by using information on the specified target character string included in the recognition result. More specifically, in one example, if the length of the value to be processed is the same as that of the target character string, the processor 11 may calculate region information by using line information representing the target character string as information on the target character string, as in step S636. In another example, if the value to be processed is part of the target character string, the processor 11 may specify the partial character string that matches the value to be processed from the target character string and calculate region information by using pieces of single character information representing the characters forming the partial character string as information on the target character string, as in step S637.
[0117] If it is determined in step S634 that the entire character string information has been selected, the processor 11 proceeds to step S638.
[0118] In step S638, the processor 11 calculates a prescribed value representing that region information is unknown or unidentifiable and uses this prescribed value as the region information. The processor 11 then exits the sub-step of step S630 and returns to the flowchart in FIG. 19.
[0119] In step S640, the processor 11 outputs the calculated region information. This will be explained below with reference to FIGS. 23 and 24. FIG. 23 illustrates an example of output region information. In the example in FIG. 23, the region information of the value corresponding to the key "Issue date" is output. In FIG. 23, "KeyName" represents the name of the key corresponding to the value to be extracted from the character string information. As "KeyName", "Issue date" defined by the purchase order extraction definition function 111 shown in FIG. 14 is output. "ValueText" represents the value extracted by the natural language processing model 20. As "ValueText", "Jan. 20, 2022", which is the value corresponding to the key "Issue date", is output. "BoundingBox" represents region information of the value. As "BoundingBox", the region information (x, y, width, height) = (73, 358, 101, 13) of the value "Jan. 20, 2022" is output. FIG. 24 illustrates an output image of this region information.
[0120] After step S640, the processor 11 proceeds to step S650. In step S650, the processor 11 determines whether the entire extraction result has been processed. If it is found that the extraction result has not been entirely processed, the processor returns to step S610 and selects another extracted item from the extraction result. If it is found that the entire extraction result has been processed, the processor 11 completes the processing in FIG. 19.
[0121] Processing to be executed when the extracted item is not constituted by detailed items has been discussed. Processing to be executed when the extracted item is constituted by detailed items will now be explained. In step S610, it is assumed that an item in the extraction result whose first hierarchical level is "detailed items" is selected. In this case, in step S620, the processor 11 determines that the extracted item is constituted by detailed items and proceeds to step S660.
[0122] In step S660, the processor 11 estimates a range where the detailed items are described (line height). For example, the processor 11 may select a predetermined item from the detailed items. Then, the processor 11 may estimate a description range of the detailed items from a value, which is the extraction result of the selected item. This will be explained below with reference to FIG. 25.
[0123] FIG. 25 illustrates an example of the description range of the detailed items. In the example in FIG. 25, it is assumed that "Product name" is selected as the predetermined item. As the predetermined item, any item that is included in the detailed items may be selected.
[0124] Then, the processor 11 may obtain circumscribed rectangle information of "Drinks", which is the value corresponding to the key "Product name", from the recognition result. Then, the processor 11 may calculate the description range (top, bottom) of the detailed items from the obtained circumscribed rectangle information. The top left point of the document is set to the original. Hence, to calculate the top of the description region, the processor 11 may subtract a margin from the y coordinate on the top left point of the circumscribed rectangle of "Drinks" and set the resulting value as the top of the description range. To calculate the bottom of the description region, the processor 11 may add the height of the circumscribed rectangle of "Drinks" and the margin to the y coordinate on the top left point of the circumscribed rectangle of "Drinks" and set the resulting value as the bottom of the description range. The margin may be set to half the value of the height of the circumscribed rectangle of "Drinks" or may be a predetermined value.
[0125] In step S630_2, the processor 11 calculates region information from the extraction result. Step S630_2 may be similar to step S630_1 and will not be explained here.
[0126] In step S670, the processor 11 determines whether the region information calculated in step S630_2 is contained within the description range of the detailed items estimated in step S660. This will be explained below with reference to FIG. 26.
[0127] FIG. 26 illustrates an example in which region information is contained within a description range of detailed items. It is now assumed that the region information of the value "65389600" corresponding to the key "Amount" is calculated as (x, y, width, height) = (678, 523, 76, 11) in step S630_2 and that the description range (top, bottom) of the detailed items is estimated to be (513, 545) in step S660. In this case, the y coordinate of the value "65389600" is 523 to 534 and is contained within the range of 513 (top) to 545 (bottom). The processor 11 can thus be determined that the region information is contained within the description range of the detailed items.
[0128] Determination as to whether the region information is contained within the description range of the detailed items may be based on whether the calculated region information is wholly contained within the description range as described above or whether the region information is partially (even slightly) contained within the description range of the detailed items. In short, this determination may be made in any manner if the description range estimated in step S660 is used.
[0129] If it is found in step S670 that the region information is not contained within the description range, the processor 11 returns to step S630_2 and calculates region information of a value corresponding to another key in the same line. If it is found in step S670 that the region information is contained within the description range, the processor 11 proceeds to step S680.
[0130] In step S680, the processor 11 determines whether all the keys in the same line have been processed. If it is determined that not all the keys have been processed, the processor 11 returns to step S630_2 and calculates region information of a value corresponding to another key in the same line. If it is determined that all the keys in the same line have been processed, the processor 11 proceeds to step S690.
[0131] In step S690, the processor 11 determines whether all the lines in the detailed items have been processed. If it is determined that not all the lines in the detailed items have been processed, the processor 11 returns to step S660 and starts processing another line by estimating a description range of the detailed items. If it is determined that all the lines in the detailed items have been processed, the processor 11 proceeds to step S695.
[0132] In step S695, the processor 11 outputs the region information which is determined to be contained within the description range of the detailed items in step S670. The processor 11 then proceeds to step S650.
[0133] In this manner, for example, the processor 11 may calculate region information of the region of a value corresponding to a predetermined key. The processor 11 may then display on a display information corresponding to the region information output in step S640 and that output in step S695.
[0134] In step S695, the processor 11 has output the region information contained within the description region. This means that, if a value included in the extraction result to be processed is information in a table structure of the document image 40 and if the region information of this value is within a range of a line in the table structure, the processor 11 displays the information corresponding to the region information on the display.
[0135] In step S695, the processor 11 has not output the region information outside the description region. This means that, if a value included in the extraction result to be processed is information in a table structure of the document image 40 and if the region information of this value is not within a range of a line in the table structure, the processor 11 does not display the information corresponding to the region information.
[0136] The display may be the display 16 of the information processing system 10 or may be a display of the external system 30.
[0137] Regarding the display mode of the information corresponding to the region information, the processor 11 may highlight a range of the region information in the document image 40 or superimpose a text box including the region information on the document image 40. The processor 11 may display the region information as numerical values.
[0138] The information processing system 10 according to the exemplary embodiment obtains character string information from a character recognition result generated by recognizing the document image 40. The character string information is constituted by a pair of a character string included in the document represented by the document image 40 and the coordinates of this character string. The information processing system 10 inputs input data including the character string information and an instruction into the natural language processing model 20. The instruction is an instruction to extract a pair of a value corresponding to a predetermined key and the coordinates of this value from the character string information and to output the extracted pair. The information processing system 10 calculates region information of a region of the value, based on the character recognition result and an extraction result output from the natural language processing model 20.
[0139] This makes it possible to calculate correct region information of a value, compared with the configuration in which the coordinates of a value output from the natural language processing model 20 are used as region information of this value.
[0140] The information processing system 10 may specify a target character string corresponding to a value to be processed in the extraction result from the character string information. The information processing system 10 may then calculate the region information by using information on the target character string included in the character recognition result. This makes it possible for the information processing system 10 to calculate region information by referring back to the character recognition result of the document image 40, thereby achieving a higher accuracy in calculating the region information than when the extraction result is only used.
[0141] In particular, if the value to be processed is part of the target character string, the information processing system 10 may specify a partial character string which is part of the target character string and which matches the value to be processed. The information processing system 10 may then calculate the region information by using single character information as the information on the target character string. The single character information indicates a character forming the partial character string. With this configuration, even when the character recognition device 50 has recognized a key and a value as a meaningful character string, the region information of the value may be correctly calculated.
[0142] If the value to be processed matches the target character string, the information processing system 10 may calculate the region information by using line information of the target character string as the information on the target character string. This makes it possible to speed up processing by not using single character information.
[0143] The information processing system 10 may display information corresponding to the region information on a display. This makes it possible to present information for identifying the region of a value to a user, compared with when the coordinates of a value output from the natural language processing model 20 are used as the region information of this value. The accuracy in recognizing characters from a document image is not 100%, and also, the accuracy in extracting certain character information from the character recognition result is not 100%, either. An operator is thus required to check the character recognition result and the extraction result. If the operator can recognize the position of information to be checked in a document image, the time to check the character recognition result and the extraction result is significantly reduced. In the related art, however, region information of a value to be checked is not necessarily correct. Unlike the related art, with the use of the information processing system 10, useful information for identifying the region of a value is presented to a user, thereby reducing the checking time of the operator.
[0144] If a value to be processed in the extraction result is information in a table structure of the document image 40 and if the region information of the value is within a range of a line in the table structure, the information processing system 10 may display the information corresponding to the region information on the display. As stated above, when a value to be processed is information within a table structure, the region information of the value is likely to be within a range of a line of the table structure. Hence, when the region information is within the range of a line, it is highly likely that the region information has been correctly calculated. Regarding information within a table structure, therefore, region information that is highly likely to be correctly calculated may be displayed.
[0145] If a value to be processed in the extraction result is information in a table structure of the document image 40 and if the region information of the value is outside a range of a line in the table structure, the information processing system 10 may not display the information corresponding to the region information on the display. Regarding information within a table structure, therefore, region information that is less likely to be correctly calculated may be excluded from information to be displayed.
[0146] The information processing system 10 may add definition information to the input data and input this input data into the natural language processing model 20. The definition information is information that defines a key corresponding to a value to be extracted from the character string information. This enables a user to define a value to be extracted by the natural language processing model 20 as desired.
[0147] The definition information may be information that has been defined by document type. This enables a user to define values to be extracted by the natural language processing model 20 in different modes in accordance with the document types.
[0148] The exemplary embodiment of the disclosure has been discussed in detail with reference to the accompanying drawings. However, the disclosure is not restricted to the above-described exemplary embodiment. It is apparent that practitioners skilled in the art may conceive various modifications and variations within the scope and spirit of the disclosure and it is understood that such modifications and variations are also encompassed in the technical scope of the disclosure.
[0149] In the exemplary embodiments, the processes are performed by any computer. The computer may perform the processes by using a processor serving as hardware, a program serving as software, or combination of these. In this case, the processor is configured to perform the processes in the exemplary embodiments in cooperation with the program and may function as a unit or a means in the exemplary embodiments. The order in which the processor performs the processes is not limited to the described order and may be changed appropriately. The computer may be a general-purpose computer, an application specific computer, a workstation, or another system capable of performing the processes.
[0150] The processor may be composed of one or more pieces of hardware, and the type of the hardware is not limited. For example, the processor may be composed of hardware such as a central processing unit (CPU), a micro processing unit (MPU), a programmable logic device such as a field programmable gate array (FPGA), a dedicated circuit for performing specific processing such as an application specific integrated circuit (ASIC), a graphics processing unit (GPU), or a neural processing unit (NPU). Regarding the type of the hardware, different types of hardware may be combined. If multiple pieces of hardware are configured to perform one or more processes of the processor, the multiple pieces of hardware may be present in apparatuses physically away from each other or may be present in one apparatus. In each of exemplary embodiments, the order in which the processor performs the processes is not limited to the order described above and may be changed appropriately. The hardware is composed of electric circuitry in which circuit elements such as semiconductor devices are combined, or the like.
[0151] Further, the program may be software such as firmware or microcode. The program may be, for example, a program module group, and the functions thereof may be implemented by processors configured to implement the respective functions. The program may be program code or multiple code segments stored in one or more non-transitory computer readable media (for example, a storage medium or another storage). The program may be stored in such a divided manner in multiple non-transitory computer readable media present in apparatuses physically away from each other. The program code or the code segments may represent a procedure, a function, a sub program, a routine, a subroutine, a module, a software package, a class or any combination of instructions, data structures, or program statements. The program code or the code segment may be connected to another code segment or a hardware circuit by transmitting and / or receiving information, data, an argument, a parameter, or memory content. The program of an exemplary embodiment of the disclosure may be provided as a program product.
[0152] The foregoing description of the exemplary embodiments of the present disclosure has been provided for the purposes of illustration and description. It is not intended to be exhaustive or to limit the disclosure to the precise forms disclosed. Obviously, many modifications and variations will be apparent to practitioners skilled in the art. The embodiments were chosen and described in order to best explain the principles of the disclosure and its practical applications, thereby enabling others skilled in the art to understand the disclosure for various embodiments and with the various modifications as are suited to the particular use contemplated. It is intended that the scope of the disclosure be defined by the following claims and their equivalents.Appendix1
[0153] An information processing system comprising:
[0154] a processor configured to:
[0155] obtain character string information from a character recognition result generated by recognizing a document image, the character string information being constituted by a pair of a character string included in a document represented by the document image and coordinates of the character string;
[0156] input input data including the character string information and an instruction into a natural language processing model, the instruction being an instruction to extract a pair of a value corresponding to a predetermined key and coordinates of the value from the character string information and to output the extracted pair; and
[0157] calculate region information of a region of the value, based on the character recognition result and an extraction result output from the natural language processing model.2
[0158] The information processing system according to 1, wherein the processor is configured to:
[0159] specify a target character string corresponding to a value to be processed in the extraction result from the character string information; and
[0160] calculate the region information by using information on the target character string included in the character recognition result.3
[0161] The information processing system according to 2, wherein the processor is configured to:
[0162] specify, if the value to be processed is part of the target character string, a partial character string which is included in the target character string and which matches the value to be processed; and
[0163] calculate the region information by using single character information as the information on the target character string, the single character information indicating a character forming the partial character string.4
[0164] The information processing system according to 2 or 3, wherein the processor is configured to calculate, if the value to be processed matches the target character string, the region information by using line information of the target character string as the information on the target character string.5
[0165] The information processing system according to one of 1 to 4, wherein the processor is configured to display information corresponding to the region information on a display.6
[0166] The information processing system according to 5, wherein the processor is
[0167] configured to display, if a value to be processed in the extraction result is information in a table structure of the document image and if the region information of the value is within a range of a line in the table structure, the information corresponding to the region information on the display.7
[0168] The information processing system according to 5 or 6, wherein the processor is configured not to display, if a value to be processed in the extraction result is information in a table structure of the document image and if the region information of the value is outside a range of a line in the table structure, the information corresponding to the region information on the display.8
[0169] The information processing system according to one of 1 to 7, wherein the processor is configured to add definition information to the input data and then to input the input data into the natural language processing model, the definition information being information that defines a key corresponding to a value to be extracted from the character string information.9
[0170] The information processing system according to 8, wherein the definition information is information that has been defined in accordance with a type of the document.10
[0171] An information processing program causing a computer to execute a process comprising:
[0172] obtaining character string information from a character recognition result generated by recognizing a document image, the character string information being constituted by a pair of a character string included in a document represented by the document image and coordinates of the character string;
[0173] inputting input data including the character string information and an instruction into a natural language processing model, the instruction being an instruction to extract a pair of a value corresponding to a predetermined key and coordinates of the value from the character string information and to output the extracted pair; and
[0174] calculating region information of a region of the value, based on the character recognition result and an extraction result output from the natural language processing model.
Claims
1. An information processing system comprising:a processor configured to:obtain character string information from a character recognition result generated by recognizing a document image, the character string information being constituted by a pair of a character string included in a document represented by the document image and coordinates of the character string;input input data including the character string information and an instruction into a natural language processing model, the instruction being an instruction to extract a pair of a value corresponding to a predetermined key and coordinates of the value from the character string information and to output the extracted pair; andcalculate region information of a region of the value, based on the character recognition result and an extraction result output from the natural language processing model.
2. The information processing system according to claim 1, wherein the processor is configured to:specify a target character string corresponding to a value to be processed in the extraction result from the character string information; andcalculate the region information by using information on the target character string included in the character recognition result.
3. The information processing system according to claim 2, wherein the processor is configured to:specify, if the value to be processed is part of the target character string, a partial character string which is included in the target character string and which matches the value to be processed; andcalculate the region information by using single character information as the information on the target character string, the single character information indicating a character forming the partial character string.
4. The information processing system according to claim 2, wherein the processor is configured to calculate, if the value to be processed matches the target character string, the region information by using line information of the target character string as the information on the target character string.
5. The information processing system according to claim 1, wherein the processor is configured to display information corresponding to the region information on a display.
6. The information processing system according to claim 2, wherein the processor is configured to display information corresponding to the region information on a display.
7. The information processing system according to claim 3, wherein the processor is configured to display information corresponding to the region information on a display.
8. The information processing system according to claim 4, wherein the processor is configured to display information corresponding to the region information on a display.
9. The information processing system according to claim 5, wherein the processor is configured to display, if a value to be processed in the extraction result is information in a table structure of the document image and if the region information of the value is within a range of a line in the table structure, the information corresponding to the region information on the display.
10. The information processing system according to claim 6, wherein the processor is configured to display, if a value to be processed in the extraction result is information in a table structure of the document image and if the region information of the value is within a range of a line in the table structure, the information corresponding to the region information on the display.
11. The information processing system according to claim 7, wherein the processor is configured to display, if a value to be processed in the extraction result is information in a table structure of the document image and if the region information of the value is within a range of a line in the table structure, the information corresponding to the region information on the display.
12. The information processing system according to claim 8, wherein the processor is configured to display, if a value to be processed in the extraction result is information in a table structure of the document image and if the region information of the value is within a range of a line in the table structure, the information corresponding to the region information on the display.
13. The information processing system according to claim 5, wherein the processor is configured not to display, if a value to be processed in the extraction result is information in a table structure of the document image and if the region information of the value is outside a range of a line in the table structure, the information corresponding to the region information on the display.
14. The information processing system according to claim 6, wherein the processor is configured not to display, if a value to be processed in the extraction result is information in a table structure of the document image and if the region information of the value is outside a range of a line in the table structure, the information corresponding to the region information on the display.
15. The information processing system according to claim 7, wherein the processor is configured not to display, if a value to be processed in the extraction result is information in a table structure of the document image and if the region information of the value is outside a range of a line in the table structure, the information corresponding to the region information on the display.
16. The information processing system according to claim 8, wherein the processor is configured not to display, if a value to be processed in the extraction result is information in a table structure of the document image and if the region information of the value is outside a range of a line in the table structure, the information corresponding to the region information on the display.
17. The information processing system according to claim 1, wherein the processor is configured to add definition information to the input data and then to input the input data into the natural language processing model, the definition information being information that defines a key corresponding to a value to be extracted from the character string information.
18. The information processing system according to claim 17, wherein the definition information is information that has been defined in accordance with a type of the document.
19. An information processing method comprising:obtaining character string information from a character recognition result generated by recognizing a document image, the character string information being constituted by a pair of a character string included in a document represented by the document image and coordinates of the character string;inputting input data including the character string information and an instruction into a natural language processing model, the instruction being an instruction to extract a pair of a value corresponding to a predetermined key and coordinates of the value from the character string information and to output the extracted pair; andcalculating region information of a region of the value, based on the character recognition result and an extraction result output from the natural language processing model.
20. A non-transitory computer readable medium storing a program causing a computer to execute a process comprising:obtaining character string information from a character recognition result generated by recognizing a document image, the character string information being constituted by a pair of a character string included in a document represented by the document image and coordinates of the character string;inputting input data including the character string information and an instruction into a natural language processing model, the instruction being an instruction to extract a pair of a value corresponding to a predetermined key and coordinates of the value from the character string information and to output the extracted pair; andcalculating region information of a region of the value, based on the character recognition result and an extraction result output from the natural language processing model.
