Information processing program, information processing method, and information processing apparatus

By generating a layout representation document with spaces and line breaks to represent character information positions, the accuracy of LLM-based extraction is enhanced, addressing the challenge of positional information deficiency in existing LLMs.

JP2026185665APending Publication Date: 2026-11-27FUJITSU LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2025082936
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-05-16
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Large Language Models (LLMs) struggle to accurately extract character information from documents due to the lack of positional information, leading to reduced accuracy in information extraction, especially when specific extraction conditions are defined by the position in the document.

Method used

Generate a layout representation document from the original document using spaces and line breaks to represent character information and positions, and input this document into a machine learning model to perform character information extraction.

Benefits of technology

Improves the accuracy of information extraction by enabling the model to recognize and extract character information based on defined positional conditions, enhancing the precision of the extraction process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2026185665000001_ABST
    Figure 2026185665000001_ABST
Patent Text Reader

Abstract

The present invention provides an information processing program, an information processing method, and an information processing device that improve the accuracy of information extraction. [Solution] The computer acquires a first document and generates a layout representation document 110, which is a second document that represents the character information contained in the first document and the position of each character information using plain text including spaces and line breaks. The generated layout representation document 110 is then input into the LLM 14 to perform a process of extracting predetermined character information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an information processing program, an information processing method, and an information processing apparatus.

Background Art

[0002] In business settings, various document data such as meeting minutes are created. As a format for document data, for example, PDF (Portable Document Format) or the like is used. In order to efficiently organize these document data, an information extraction technique for extracting specific information from document data is often used. A Large Language Model (LLM) can perform highly accurate information extraction when given a group of texts described in document data.

[0003] Conventionally, as an information extraction technique from documents, a technique has been proposed that uses artificial intelligence to identify semantically important text in a document, perform labeling, and extract character information using the label and content.

Prior Art Documents

Patent Documents

[0004]

Patent Document 1

Summary of the Invention

Problem to be Solved by the Invention

[0005] However, if the string to be extracted from the document data is simply provided to the LLM, the LLM does not recognize the positional information of the string, making it difficult to extract character information according to the extraction conditions defined by the position in the document. For example, if instructed to extract a date written in the upper right corner of a page, and if there is insufficient information other than the position to identify that date, the LLM may have difficulty distinguishing the date in the upper right corner from dates in other positions, potentially reducing the accuracy of character information extraction.

[0006] Furthermore, the technology that extracts character information using labels and content assigned to semantically important text within a document relies on information about the position of characters registered in the content, making it difficult to adequately evaluate the position of the characters. Therefore, even when using this technology, there is a risk that the accuracy of information extraction will decrease.

[0007] The disclosed technology was developed in view of the above, and aims to provide an information processing program, an information processing method, and an information processing device that improve the accuracy of information extraction. [Means for solving the problem]

[0008] In one embodiment of the information processing program, information processing method, and information processing apparatus disclosed in this application, a computer is instructed to acquire a first document, generate a second document in which the character information contained in the first document and the position of each character information are represented in plain text including spaces and line breaks, and input the generated second document into a machine learning model to perform a process to extract predetermined character information. [Effects of the Invention]

[0009] In one respect, the present invention can improve the accuracy of information extraction. [Brief explanation of the drawing]

[0010] [Figure 1] Figure 1 is a block diagram of the extraction apparatus according to Example 1. [Figure 2]Figure 2 shows an example of a PDF document. [Figure 3] Figure 3 shows an example of a layout representation document. [Figure 4] Figure 4 shows sample code used for conversion with pypdf. [Figure 5] Figure 5 shows an overview of the character information extraction process using LLM according to Example 1. [Figure 6] Figure 6 is a flowchart of the string extraction process performed by the information processing device according to Example 1. [Figure 7] Figure 7 shows a comparative example of the extraction accuracy of character information extracted by the information processing device according to Example 1. [Figure 8] Figure 8 is a block diagram of an information processing device according to a modified example. [Figure 9] Figure 9 shows an overview of the character information extraction process using LLM in a modified example. [Figure 10] Figure 10 shows an example of the information input into the LLM according to Example 2. [Figure 11] Figure 11 is a flowchart of the string extraction process performed by the information processing device according to Example 2. [Figure 12] Figure 12 shows a comparative example of the extraction accuracy of character information extracted by the information processing device according to Example 2. [Figure 13] Figure 13 is a hardware configuration diagram of the information processing device. [Modes for carrying out the invention]

[0011] The following describes in detail, with reference to the drawings, embodiments of the information processing program, information processing method, and information processing apparatus disclosed in this application. However, the following embodiments do not limit the information processing program, information processing method, and information processing apparatus disclosed in this application. [Examples]

[0012] FIG. 1 is a block diagram of an extraction device according to a first embodiment. An information processing apparatus 1 according to the present embodiment generates a layout document that represents character layout information together with character information from a PDF document, inputs the layout document to an LLM, and causes the LLM to extract specific character information such as dates. As shown in FIG. 1, the information processing apparatus 1 includes a reception unit 11, a conversion unit 12, an extraction unit 13, an LLM 14, and an output unit 15. A user terminal device 2 illustrated in FIG. 1 is an information processing apparatus operated by a user who causes the information processing apparatus 1 to extract desired character information from a PDF document.

[0013] The reception unit 11 receives, from the user terminal device 2, a PDF document from which character information is to be extracted, a description of a task to be executed including extraction conditions for the character information, and input / output examples for character information extraction. Here, an input / output example is information of a combination of an exemplary reference PDF document and an extraction result when extraction is performed from the reference PDF document according to a specified extraction condition. There may be one input / output example or a plurality of input / output examples. The more input / output examples there are, the higher the inference accuracy of the LLM 14.

[0014] FIG. 2 is a diagram illustrating an example of a PDF document. For example, the reception unit 11 receives a PDF document 100. The PDF document 100 includes character information 101 indicating a date A, character information 102 indicating a date B, character information 103 indicating a date C, and character information 104 indicating a date D. The PDF document 100 may include other character information indicating dates. This PDF document 100 corresponds to an example of a "first document."

[0015] Here, the character information 101 and 103 are preceded by information indicating that the character information is the date A or C before the character information indicating the date. The character information 102 has a field in which the date B is written, and character information indicating a date is registered in the field. That is, the character information 101 to 103 are information other than position information and are easily identifiable character information.

[0016] In contrast, the text information 104 has the date registered in the upper right corner of the page, i.e., the upper right corner of the PDF document 100, and no specific information indicating that it is date D is attached. In other words, text information 104 is text information that is identified as date D by its positional information, the upper right corner of the PDF document 100. The extraction of text information from the PDF document 100 will be explained below.

[0017] Returning to Figure 1, the explanation continues. The receiving unit 11 outputs the PDF document 100 and the reference PDF document from the input / output examples to the conversion unit 12. The receiving unit 11 also outputs the task description and the extraction results from the input / output examples to the extraction unit 13. In this way, the receiving unit 11 obtains the first document, the PDF document 100.

[0018] The conversion unit 12 receives input from the receiving unit 11, consisting of the PDF document 100 and a reference PDF document from the input / output examples. Next, the conversion unit 12 analyzes the PDF document 100 to identify each character, the spacing between each character, and the vertical position of each character relative to the PDF document 100. Then, the conversion unit 12 uses spaces and line breaks along with each character to generate a layout representation document, which is plain text representing the character information and layout of the characters in the PDF document 100. Here, plain text is, for example, text data that does not include positional information for each character.

[0019] Figure 3 shows an example of a layout representation document. The conversion unit 12 converts, for example, a PDF document 100 to generate a layout representation document 110.

[0020] The layout representation document 110 places spaces between the text information that correspond to the horizontal spacing of the text, i.e., the left-to-right spacing of the text information in the PDF document 100. The layout representation document 110 also indicates the vertical position of the text, i.e., the vertical position of the text information in the PDF document 100, using line breaks. In other words, the layout representation document 110 is data in which the text information is arranged so that, when displayed on a screen, the position of each piece of text information corresponding to one page of the PDF document 100 is represented. This layout representation document 110 is an example of a "second document".

[0021] For example, the conversion unit 12 can generate a layout representation document 110 from a PDF document 100 using pypdf, a PDF document analysis tool. Figure 4 shows sample code used for conversion with pypdf. Sample code 111 is an example of code for converting a PDF document called example.pdf. The conversion unit 12 can obtain the layout representation document 110 by using code that corresponds sample code 111 to the PDF document 100. In this way, the conversion unit 12 generates a layout representation document 110, which is a second document, in which the character information and the position of each character information contained in the first document, the PDF document 100, are represented by plain text including spaces and line breaks. Specifically, the conversion unit 12 generates the second document such that spaces indicate the spacing between characters in the first direction, and line breaks indicate the spacing in the second direction perpendicular to the first direction. Here, the horizontal direction of the characters is an example of the "first direction," and the vertical direction of the characters is an example of the "second direction."

[0022] Returning to Figure 1, the explanation continues. The conversion unit 12 converts the reference PDF document to generate a layout representation document, similar to the PDF document 100. Subsequently, the conversion unit 12 outputs the generated layout representation document 110 and the layout representation document converted from the reference PDF document to the extraction unit 13.

[0023] The extraction unit 13 receives input from the receiving unit 11, which includes a description of the task and the extracted results from the input / output examples. The extraction unit 13 also receives input from the conversion unit 12, which includes the layout representation document 110 and the layout representation document converted from the reference PDF document.

[0024] Next, the extraction unit 13 associates the layout representation document converted from the reference PDF document with the extraction result. Hereafter, the associated layout representation document converted from the reference PDF document and the extraction result will be referred to as the "input / output example". The extraction unit 13 then inputs the task description, the layout representation document 110, and the input / output example into the LLM 14.

[0025] Subsequently, the extraction unit 13 obtains extraction results, including character information extracted from the layout representation document 110 according to the extraction conditions using the LLM 14. For example, the extraction unit 13 obtains character information 101 to 104 indicating dates A to D extracted from the layout representation document 110. Then, the extraction unit 13 outputs the obtained extraction results to the output unit 15.

[0026] In this way, the extraction unit 13 inputs the layout representation document 110, which is the second document, into the machine learning model LLM 14 to extract predetermined character information. Here, the character information 101 to 104 indicating dates A to D is an example of "predetermined character information". Also, the layout representation document converted from the reference PDF document is an example of the "third document", and the extraction result among the input / output examples is the "extraction result from the third document". That is, the extraction unit 13 inputs the input / output examples, including the layout representation document converted from the reference PDF document (the third document) and the extraction result from the third document, along with the second document, into the machine learning model LLM 14 to perform inference.

[0027] LLM14 is a machine learning model, a large-scale language model that has been trained in a general manner. LLM14 can use a general-purpose large-scale language model. Figure 5 is a diagram showing an overview of the character information extraction process using LLM according to Example 1.

[0028] For example, LLM14 receives input from the extraction unit 13, including a task description 121, a layout representation document 110, and an input / output example including a layout representation document 122 converted from a reference PDF document and an extraction result 123. The task description 121 includes, for example, an instruction to extract strings from the layout representation document 110 using dates A to D as extraction conditions.

[0029] LLM14 uses the layout representation document 122 and the extraction result 123 as references for the character information extraction process and performs the extraction of character information from the layout representation document 110 according to the task description 121. For example, LLM14 extracts character information 101 to 104 that indicates dates A to D contained in the layout representation document 110. Then, LLM14 outputs an extraction result 124 that includes the character information 101 to 104 that indicates dates A to D.

[0030] In this embodiment, the information processing device 1 extracts character information using LLM14, but other machine learning models capable of handling character information can also be used. For example, the information processing device 1 may perform character information extraction using a neural network such as RNN (Recurrent Neural Network) or LSTM (Long Short-Term Memory). Furthermore, although this embodiment describes a configuration in which the information processing device 1 has LLM14, the information processing device 1 is not limited to this configuration and may use an external LLM to perform character information extraction.

[0031] Returning to Figure 1, the explanation continues. The output unit 15 receives the extraction result, which includes the character information extracted from the layout representation document 110, as input from the extraction unit 13. The output unit 15 then outputs the extraction result, which includes the character information extracted from the layout representation document 110, to the user terminal device 2.

[0032] For example, a user requests the information processing device 1 to extract text information from meeting minutes created as a PDF document 100 using the user terminal device 2. In this case, the user sends the PDF document 100, along with a description of the task to be performed and input / output examples, to the information processing device 1 using the user terminal device 2.

[0033] Subsequently, the user can verify the extraction results from the layout representation document 110 by the information processing device 1 using the user terminal device 2. By accumulating the extraction results of text information for each of the multiple meeting minutes, including the extraction results from the layout representation document 110, on the user terminal device 2, the user can efficiently organize the meeting minutes using these extraction results.

[0034] Figure 6 is a flowchart of the string extraction process by the information processing device according to Example 1. Next, referring to Figure 6, the flow of the string extraction process by the information processing device 1 according to Example 1 will be explained. Here, the information processing device 1 extracts character information from the PDF document 100 according to the task description 121, referring to the layout representation document 122 and the extraction result 123 shown in Figure 5.

[0035] The receiving unit 11 receives the PDF document 100 from the user terminal device 2 and outputs it to the conversion unit 12. At this time, the receiving unit 11 also receives the task description 121 and input / output examples from the user terminal device 2. The conversion unit 12 reads the PDF document 100 input from the receiving unit 11 (step S1).

[0036] The conversion unit 12 converts the read PDF document 100 into a layout representation document 110 that includes the text information of the PDF document 100 and the layout information of each text item (step S2). The conversion unit 12 also converts the reference PDF document from the input / output examples into a layout representation document 122.

[0037] The extraction unit 13 inputs the input / output examples, including the task description 121, the layout representation document 110, the layout representation document 122, and the extraction result 123, into the LLM 14 (step S3).

[0038] Subsequently, the extraction unit 13 obtains the character information extracted from the layout representation document 110 (step S4).

[0039] The output unit 15 outputs the extraction results, including the character information extracted from the layout representation document 110, to the user terminal device 2 (step S5).

[0040] In this embodiment, the extraction of text information from a PDF document was used as an example, but the information processing device 1 can also extract text information from documents in other data formats, as long as the text information and its location can be obtained as digital information.

[0041] Figure 7 shows a comparative example of the extraction accuracy of character information extraction by the information processing device according to Example 1. Table 130 shows a comparison of the extraction accuracy of the extraction process that extracts character information 101 to 104 indicating dates A to D from PDF document 100. Each value in Table 130 represents the accuracy rate, with 1 representing the case where all answers are correct.

[0042] In Table 130, the baseline shows the character information extraction process when a group of text extracted from a PDF document without location information is directly input into LLM14. The layout representation shows the character information extraction process by the information processing device 1 according to Example 1.

[0043] As shown in Table 130, the information processing device 1 converts the data into a layout representation document 110 and uses input / output examples to have the LLM 14 extract character information, thereby improving the extraction accuracy of the date D, which is defined by its position, compared to a baseline that does not use position information.

[0044] As described above, the information processing device 1 according to this embodiment generates a layout representation document 110 in which the document is represented as plain text using character information and the positions of that character information using spaces and line breaks. The information processing device 1 then inputs the layout representation document 110 into the LLM 14 to perform the extraction of predetermined character information.

[0045] This makes it easier for LLM14 to extract character information according to extraction conditions defined by the location of the information in the document, i.e., to extract character information defined by the location of the information. Therefore, the information processing device 1 improves the accuracy of information extraction.

[0046] (modified version) Figure 8 is a block diagram of an information processing device according to a modified example. The information processing device 1 according to this embodiment further includes a training unit 16. The information processing device 1 according to this modified example operates in a training phase and an operation phase.

[0047] The training unit 16 trains the LLM 14 in the training phase as follows: For example, the training unit 16 receives input from the conversion unit 12, which is a layout representation document converted from a reference PDF document among the input / output examples. The training unit 16 also receives input from the receiving unit 11, which is the result of extraction from the input / output examples.

[0048] Then, the training unit 16 inputs the layout representation document converted from the reference PDF document into the LLM 14 and updates the parameters of the LLM 14 by comparing the output extraction results with the extraction results from the input / output examples to minimize the error. At this point, the training unit 16 trains the LLM 14 using a large number of input / output examples and generates a trained LLM 14.

[0049] In this modified example, the training unit 16 trains the machine learning model LLM 14 based on the third document and the extraction results from the third document. Here, in this modified example, for convenience, training was performed using the input / output examples from Example 1, but the training unit 16 can train LLM 14 using other data as long as it is a combination of a layout representation document and its extraction results.

[0050] In the operational phase, the extraction unit 13 inputs the task description and layout representation document 110 into the trained LLM 14. In this case, the extraction unit 13 does not need to input input / output examples into the LLM 14. The extraction unit 13 then obtains the character information extraction results output from the LLM 14. In this way, the extraction unit 13 causes the LLM 14, which is a trained machine learning model, to extract predetermined character information.

[0051] In the training phase, the LLM14 receives training from the training unit 16. Figure 9 is a diagram showing an overview of the character information extraction process by the LLM according to a modified example. The trained LLM14, having received training from the training unit 16, receives, for example, a task description 121 and a layout representation document 110 from the extraction unit 13 in the operation phase. The LLM14 then outputs an extraction result 124, which is the character information extracted from the layout representation document 110 according to the task description 121.

[0052] As described above, the information processing device 1 according to this modified example extracts character information using a trained LLM14 generated by training the LLM14 to perform character extraction using a layout representation document. Even in this case, the LLM14 can easily extract character information defined by its position. Therefore, the information processing device 1 improves the accuracy of information extraction.

[0053] In Example 1, where LLM14 is made to perform extraction by referring to input / output examples without prior training, the information processing device 1 can reduce processing costs and is easy to implement. On the other hand, in the modified case where LLM14 is trained to extract character information before extraction, the information processing device 1 will have higher processing costs compared to Example 1, but it will be possible to improve the accuracy of information extraction inference by training using a large number of input / output examples. [Examples]

[0054] Next, we will describe Example 2. The information processing device 1 according to this example is also represented by the block diagram in Figure 1. The information processing device 1 according to this example uses regular expressions, which are information that represents a pattern of strings, to cause the LLM14 to perform character information extraction. In other words, a regular expression is information that the string it represents can be extracted from a document in a rule-based manner. In the following description, explanations of operations similar to those in Example 1 may be omitted.

[0055] Figure 10 shows an example of information input to the LLM according to Example 2. Here, we will explain the case where the information processing device 1 extracts character information using the information shown in Figure 10.

[0056] The receiving unit 11 receives the PDF document 100, the task description 121, and input / output examples from the user terminal device 2. Furthermore, the receiving unit 11 receives a candidate list 141 from the user terminal device 2, which contains registered regular expressions for the character information to be extracted from the PDF document 100. In addition, the receiving unit 11 receives a candidate list 142 from the user terminal device 2, which contains registered regular expressions for the character information to be extracted from each of the input / output examples.

[0057] For example, candidate list 141 is used when extracting dates, and regular expressions for dates that represent various patterns of strings indicating dates are registered. Examples of regular expressions for dates include 2024-02-18, 2025 / 2 / 21, and 2024 / 03 / 19. In this way, the receiving unit 11 obtains information about the regular expression of the predetermined character information.

[0058] The receiving unit 11 outputs the PDF document 100 and the reference PDF document from the input / output examples to the conversion unit 12. The receiving unit 11 also outputs the task description 121, the PDF document 100, the extracted results 123 from the input / output examples, and the candidate lists 141 and 142 to the extraction unit 13.

[0059] The extraction unit 13 receives the task description 121, the extraction results 123 from the input / output examples, and the candidate lists 141 and 142 from the receiving unit 11. The extraction unit 13 also receives the layout representation document 110 and the layout representation document 122, which is a converted reference PDF document, from the conversion unit 12.

[0060] The extraction unit 13 then refers to the candidate list 141 and extracts character information from the layout representation document 110 that corresponds to the string pattern matching the regular expression included in the candidate list 141. Next, the extraction unit 13 modifies the extracted character information to match the pattern shown by the regular expression and generates a string modified to match the regular expression. Then, the extraction unit 13 replaces the character information in the layout representation document 110 with the character information modified to match the pattern shown by the regular expression and combines the modified character information with the layout representation document 110.

[0061] For example, the character information 102 for date B in the PDF document 100 in Figure 3 spans two lines. In this case, the character information 102 is also split into different lines by line breaks in the layout representation document 110 after conversion by the conversion unit 12. It is relatively difficult for LLM 14 to recognize such a string split into lines as a single string.

[0062] Therefore, the extraction unit 13 extracts the two-line character information 102 from the layout representation document 110 based on the regular expression March 2, 2025, which is registered in the candidate list 141, and corrects the character information 102 to a date represented as a single line string. After that, the extraction unit 13 corrects the two-line character information 102 in the layout representation document 110 to the character information 102 corrected as a single line string.

[0063] The extraction unit 13 then inputs the task description 121, the layout representation document 110 with the character information modified into a regular expression, the layout representation document 122, the candidate list 142, and the extraction result 123 into the LLM 14. Subsequently, the extraction unit 13 obtains the extraction result from the layout representation document 110 with the character information modified into a regular expression according to the extraction conditions specified in the task description 121. In this way, the extraction unit 13 rewrites the character information in the first document, the PDF document 100, that corresponds to the regular expression into the regular expression.

[0064] LLM14 receives a task description 121 containing the conditions for extracting text information from a PDF document 100. LLM14 also receives a layout representation document 110 with the text information modified using regular expressions. Furthermore, LLM14 receives a layout representation document 122 of input / output examples, a candidate list 142, and extraction results 123.

[0065] Then, LLM14, referring to the layout representation document 122, the candidate list 142, and the extraction results 123, extracts text information from the layout representation document 110 in accordance with the task description 121.

[0066] Figure 11 is a flowchart of the string extraction process by the information processing device according to Example 2. Next, referring to Figure 11, the flow of the string extraction process by the information processing device 1 according to Example 2 will be explained. Here, the information processing device 1 extracts character information corresponding to the candidate list 141 from the PDF document 100 according to the task description 121, referring to the layout representation document 122, candidate list 142, and extraction result 123 shown in Figure 10.

[0067] The receiving unit 11 receives the PDF document 100 from the user terminal device 2 and outputs it to the conversion unit 12. At this time, the receiving unit 11 also receives the task description 121 and input / output examples from the user terminal device 2. The conversion unit 12 reads the PDF document 100 input from the receiving unit 11 (step S11).

[0068] The conversion unit 12 converts the read PDF document 100 into a layout representation document 110 that includes the text information of the PDF document 100 and the layout information of each text item (step S12). The conversion unit 12 also converts the reference PDF document from the input / output examples into a layout representation document 122.

[0069] The extraction unit 13 refers to the candidate list 141 and performs character information extraction from the layout representation document 110 using regular expressions included in the candidate list 141 (step S13).

[0070] Next, the extraction unit 13 modifies the extracted character information into a pattern represented by a regular expression and combines it with the layout representation document 110 (step S14).

[0071] Next, the extraction unit 13 inputs the task description 121, the layout representation document 110 with the character information corrected in the regular expression, the layout representation document 122, the candidate list 142, and the extraction result 123 into the LLM 14 (step S15).

[0072] Subsequently, the extraction unit 13 obtains the character information extracted from the layout representation document 110 (step S16).

[0073] The output unit 15 outputs the extraction results, including the character information extracted from the layout representation document 110, to the user terminal device 2 (step S17).

[0074] Figure 12 shows a comparative example of the extraction accuracy of character information extraction by the information processing device according to Example 2. Table 150 shows a comparison of the extraction accuracy by an extraction process that extracts character information 101 to 104 with dates A to D from PDF document 100. Text coordinates indicate the character information extraction process when the coordinate information of the frame surrounding the character information is assigned to each character information contained in the text group extracted from the PDF document.

[0075] As shown in Table 150, the information processing device 1 improves extraction accuracy by using the candidate list 141 compared to when it extracts character information without using the candidate list 141. Furthermore, when extracting character information using the candidate list 141, the information processing device 1 improves extraction accuracy compared to when it uses text coordinates.

[0076] In this embodiment, the extraction of dates was described, but the information processing device 1 can also extract other information as long as it is representable by regular expressions. For example, if the number has a predetermined number of digits, the information processing device 1 can use a number with that number of digits as the regular expression, and for monetary amounts, it can use "XX yen" or "$YY" as the regular expression.

[0077] As described above, the information processing device 1 according to this embodiment generates a layout representation document in which the document is represented as plain text using character information and the positions of that character information using spaces and line breaks. Furthermore, the information processing device 1 inputs the layout representation document 110, in which the character information has been modified using regular expressions registered in the candidate list 141, into the LLM 14 to perform the extraction of predetermined character information. At this time, the information processing device 1 adds the candidate list 142 to the input / output examples as information for the LLM 14 to refer to. This makes it possible for the information processing device 1 to further improve the accuracy of information extraction inference.

[0078] (Hardware configuration) Figure 13 is a hardware configuration diagram of the information processing device. Next, an example of a hardware configuration for realizing each function of the information processing device 1 will be described with reference to Figure 13.

[0079] As shown in Figure 13, the information processing device 1 includes, for example, a CPU (Central Processing Unit) 91, memory 92, a hard disk 93, and a network interface 94. The CPU 91 is connected to the memory 92, hard disk 93, and network interface 94 via a bus. Although Figure 13 shows only one CPU 91, there may be multiple processors.

[0080] The network interface 94 is an interface for communication between the information processing device 1 and an external device. For example, the network interface 94 relays communication between the user terminal device 2 and the CPU 91.

[0081] The hard disk 93 is an auxiliary storage device. The hard disk 93 may store the LLM 14. The hard disk 93 also stores various programs, including programs that implement the functions of the receiving unit 11, conversion unit 12, extraction unit 13, LLM 14, and output unit 15 as illustrated in Figure 1.

[0082] Memory 92 is the main memory. Memory 92 can be, for example, DRAM (Dynamic Random Access Memory).

[0083] The CPU 91 reads various programs from the hard disk 93, loads them into memory 92, and executes them. This allows the CPU 91 to implement the functions of the receiving unit 11, conversion unit 12, extraction unit 13, LLM 14, and output unit 15 as illustrated in Figure 1. Alternatively, the receiving unit 11, conversion unit 12, extraction unit 13, LLM 14, and output unit 15 may be implemented through the cooperation of a GPU (Graphics Processing Unit) (not shown) in addition to the CPU 91. [Explanation of Symbols]

[0084] 1. Information Processing Device 2. User terminal device 11 Receiving unit 12 Conversion section 13 Extraction part 14 LLM 15 Output section

Claims

1. Obtain the first document, A second document is generated in which the character information contained in the first document and the position of each character information are represented in plain text including spaces and line breaks. The generated second document is input into a machine learning model to extract predetermined textual information. An information processing program characterized by having a computer perform the processing.

2. The information processing program according to claim 1, characterized in that the process of generating the second document includes a process of generating the second document such that spaces indicate spacing in a first direction between character information, and line breaks indicate spacing in a second direction perpendicular to the first direction.

3. The information processing program according to claim 1, characterized in that the process for extracting predetermined character information includes a process for inputting the third document and input / output examples including the extraction results from the third document together with the second document into the machine learning model and performing inference.

4. The process further includes training the machine learning model based on the third document and the results extracted from the third document, The process of extracting the predetermined character information includes the process of having the trained machine learning model perform the extraction of the predetermined character information. The information processing program according to feature 1.

5. The acquisition process includes the process of acquiring regular expression information of the predetermined character information, The process for generating the second document includes a process for rewriting the character information in the first document that corresponds to the regular expression with the regular expression. The information processing program according to feature 1.

6. Information processing device, Obtain the first document, A second document is generated in which the character information contained in the first document and the position of each character information are represented in plain text including spaces and line breaks. The generated second document is input into a machine learning model to extract predetermined textual information. An information processing method characterized by performing a process.

7. A receiving unit that acquires the first document, A conversion unit generates a second document in which the character information and the position of each character information contained in the first document acquired by the receiving unit are represented in plain text including spaces and line breaks. An extraction unit inputs the second document generated by the conversion unit into a machine learning model to extract predetermined character information. An information processing device characterized by having the following features.

Citation Information

Patent Citations

  • Character processing system, character processing method, and character processing program

    JP2025049847A