Information processing program, information processing method, and information processing device

By rearranging character groups based on their positions and using a language model, the method addresses the scattering of related texts in table documents, enhancing inference accuracy.

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

Patent Information

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

Smart Images

  • Figure 2026185583000001_ABST
    Figure 2026185583000001_ABST
Patent Text Reader

Abstract

The scattering of multiple related texts extracted from the document is suppressed. [Solution] The information processing device 10 extracts multiple character groups 2a to 2f from the first document 1 based on the relative positions of characters contained in the first document 1, which is a table. The information processing device 10 assigns area information to each of the multiple character groups 2a to 2f, indicating the area in which it is written within the first document 1. The information processing device 10 identifies a first character group containing a predetermined string from the multiple character groups 2a to 2f. The information processing device 10 determines whether or not there is a relationship between the first character group and each of the multiple second character groups based on the first area information indicating the area in which the identified first character group is written and the second area information indicating the areas in which the multiple second character groups other than the first character group are written in the multiple character groups 2a to 2f. Then, the information processing device 10 generates a second document 3 in which the third character group related to the first character group is arranged after the first character group.
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 technology]

[0002] Some digitized documents (sometimes called "documents") are formatted in tables for easier human readability (table documents). Table documents arrange information within rectangular boxes for visual recognition. For example, meeting minutes, intended for circulation, are sometimes created as table documents. Text can be extracted from such table documents and converted into structured documents using standardized data formats for storage. Storing information in structured documents facilitates subsequent analysis and retrieval.

[0003] Regarding document processing technologies, for example, techniques for analyzing and annotating documents have been proposed. [Prior art documents] [Patent Documents]

[0004] [Patent Document 1] Japanese Patent Publication No. 2025-23185 [Overview of the project] [Problems that the invention aims to solve]

[0005] In a table document, the relative positions of multiple rectangular boxes represent the relationships between the text contained within those boxes. However, when text is extracted from a table document, the relationships between the multiple texts represented in the table become unclear, and related text may be lost.

[0006] In one aspect, the present disclosure aims to suppress the scattering of multiple related texts extracted from a tabulated document. [Means for Solving the Problems]

[0007] In one aspect, an information processing program that causes a computer to execute the following processes is provided. The computer acquires a first document in a tabulated format. The computer extracts a plurality of character groups from the first document based on the relative positions between characters included in the acquired first document. The computer assigns, to each of the plurality of character groups, area information indicating a description area in the first document. The computer identifies, from the plurality of character groups, a first character group including a predetermined character string. The computer determines, based on first area information indicating a description area of the identified first character group and second area information indicating description areas of a plurality of second character groups other than the first character group among the plurality of character groups, whether there is a relevance between the first character group and each of the plurality of second character groups. Then, the computer generates a second document in which a third character group related to the first character group among the plurality of second character groups is arranged following the first character group. [[Effects of the Invention]]

[0008] According to one aspect, the scattering of multiple related texts extracted from a document is suppressed. [[Brief Description of the Drawings]]

[0009] [Figure 1] It is a diagram illustrating an example of an information processing method according to the first embodiment. [Figure 2] It is a diagram illustrating an example of a system configuration according to the second embodiment. [Figure 3] It is a diagram illustrating an example of hardware of a server. [Figure 4] It is a diagram illustrating an example of a tabulated document. [Figure 5] It is a diagram illustrating an example of item names and item contents. [Figure 6] It is a diagram illustrating an example of an extraction result of text data. [Figure 7] It is a figure which shows an example of text extraction by the text chunk sorting method. [Figure 8] It is a figure which shows an example of the text extraction result by the text chunk sorting method. [Figure 9] It is a block diagram which shows an example of the function of the server for implement|realizing a text chunk sorting method. [Figure 10] It is a figure which shows an example of target item information. [Figure 11] It is a figure which shows an example of a prompt template. [Figure 12] It is a flow chart which shows an example of the procedure of information extraction processing. [Figure 13] It is a figure which shows an example of text chunk extraction processing. [Figure 14] It is a figure which shows an example of the text chunk list generated. [Figure 15] It is a figure which shows an example of key text chunk selection processing. [Figure 16] It is a flow chart which shows an example of the procedure of text chunk order change processing. [Figure 17] It is a figure which shows the 1st example of the extraction method of a related text chunk. [Figure 18] It is a figure which shows an example of the extraction text after text chunk sorting. [Figure 19] It is a figure which shows the 2nd example of the extraction method of a related text chunk. [Figure 20] It is a figure which shows an example of prompt generation processing. [Figure 21] It is a figure which shows an example of a prompt. [Figure 22] It is a figure which shows an example of the verification method of an information extraction result. [Figure 23] It is a figure which shows an example of the evaluation result of information extraction processing. Description of Embodiments

[0010] The following description of this embodiment will be made with reference to the drawings. Note that each embodiment can be implemented by combining multiple embodiments within a reasonable scope. [First Embodiment] The first embodiment is an information processing method for suppressing the scattering of multiple related texts when arranging texts extracted from a document in a table format.

[0011] Figure 1 is a diagram showing an example of an information processing method according to the first embodiment. Figure 1 shows an information processing device 10 for implementing an information processing method that suppresses the dispersal of multiple texts. The information processing device 10 can implement the information processing method according to the first embodiment by, for example, executing a predetermined information processing program.

[0012] The information processing device 10 includes a storage unit 11 and a processing unit 12. The storage unit 11 is, for example, a memory or storage device of the information processing device 10. The processing unit 12 is, for example, a processor of the information processing device 10. The information processing device 10 may have multiple processors. Some of the multiple processes performed by the information processing device 10 may be executed on different processors.

[0013] The memory unit 11 stores the first document 1, which is a table, and the language model 4. The first document 1 includes a table in which rectangular text entry areas (text boxes) are arranged in a grid. Strings are set in the text boxes. In the first document 1, for example, the horizontal direction is the x-axis and the vertical direction is the y-axis. The x-axis coordinate values ​​increase from left to right. The y-axis coordinate values ​​increase from top to bottom. The coordinate values ​​of the text boxes indicate their location within the first document 1.

[0014] Language Model 4 is a pre-trained machine learning model that takes natural language string information as input and outputs inference results. Language Model 4 is, for example, a neural network model.

[0015] The processing unit 12 performs inference using the language model 4 regarding the information contained in the first document 1. Prior to inference, the processing unit 12 extracts text information from the first document 1 and uses the extracted text information to generate the second document 3, which will be included as input to the language model 4. In order to prevent the loss of relevant text in the second document 3, the processing unit 12 generates the second document 3 using the following procedure.

[0016] The processing unit 12 retrieves the first document 1 from the storage unit 11. The processing unit 12 extracts multiple character groups 2a to 2f from the first document 1 based on the relative positions between characters contained in the retrieved first document 1. For example, the processing unit 12 extracts multiple character groups from the first document based on at least one vertical and horizontal spacing between characters contained in the retrieved first document. Specifically, the processing unit 12 includes adjacent characters whose distance from each other is less than or equal to a predetermined value in the same character group. The processing unit 12 also includes strings (text) from adjacent lines whose distance from each line is less than or equal to a predetermined value in the same character group. A single character group extracted in this way may contain, for example, one or more strings.

[0017] The processing unit 12 assigns region information to each of the extracted character groups 2a to 2f, indicating the area where they are written within the first document 1. For example, if the area where a character group is written is rectangular, the coordinates of the top-left and bottom-right corners of that area are included in the region information. The processing unit 12 then generates a character group list 2 containing the multiple character groups 2a to 2f to which the region information has been assigned.

[0018] In character group list 2, multiple character groups 2a to 2f are listed. However, the relationship between the contents of character groups 2a to 2f is not considered during the generation of character group list 2. Therefore, multiple character groups that are related in content may be discrete within character group list 2. Therefore, processing unit 12 performs the following further processing.

[0019] The processing unit 12 identifies a first character group containing a predetermined string from among multiple character groups 2a to 2f. The predetermined string is, for example, a string specified in advance by the user. In the example in Figure 1, the predetermined strings are the strings for "Item A" and "Item B". In this case, character group 2a and character group 2b are identified as the first character group.

[0020] The processing unit 12 obtains first region information indicating the area where the identified first character group (character group 2a, 2b) is written. The processing unit 12 also obtains second region information indicating the area where multiple second character groups (character group 2c to 2f) other than the first character group are written in the multiple character groups 2a to 2f. Based on the first region information and the second region information, the processing unit 12 determines whether or not there is a relationship between the first character group and each of the multiple second character groups.

[0021] For example, the processing unit 12 compares the x-coordinate in the first region information of the first character group with the x-coordinate in the second region information of the second character group, and determines that there is a relationship if the difference is within a threshold. The x-coordinate to be compared is, for example, the x-coordinate of the top-left point of the description area containing each character group. Alternatively, the processing unit 12 may compare the center coordinates in the x-axis direction of the description areas containing each character group.

[0022] The processing unit 12 rearranges the multiple character groups 2a to 2f based on the results of the relationship determination. For example, the processing unit 12 generates a second document 3 in which the third character group from the multiple character groups 2a to 2f that is related to the first character group is placed after the first character group. In the example in Figure 1, the second document 3 contains the first character group, character group 2a, followed by the third character group (character groups 2c, 2e) that is related to character group 2a. Also, the second document 3 contains the first character group, character group 2b, followed by the third character group (character groups 2d, 2f) that is related to character group 2b.

[0023] When the processing unit 12 generates the second document 3, it performs inference about the second document 3 using the language model 4. For example, the processing unit 12 takes information about the second document 3 as input to the language model 4, performs processing according to the language model 4, and obtains the output of the language model 4. The output of the language model 4 is the inference result.

[0024] In this way, the processing unit 12 rearranges the multiple character groups 2a to 2f based on the area information of each of the multiple character groups 2a to 2f to generate the second document 3, thereby arranging the multiple character groups 2a to 2f so that related character groups are continuous within the second document 3. This suppresses the scattering of related text.

[0025] Since the second document 3 contains a sequence of related character sets, performing inference using the second document 3 as input to the language model 4 allows inference to be performed without losing the relationships between texts represented by tables in the first document 1. As a result, the accuracy of the inference is improved.

[0026] In rearranging character groups, the processing unit 12 arranges the third character groups related to the first character group in the order in which they are listed near the first character group within the first document 1. Specifically, the processing unit 12 determines whether there is a relationship between the first character group and each of the second character groups based on the result of comparing the coordinates of the first coordinate axis (e.g., x-axis) of the description area of ​​the first document group with the coordinates of the first coordinate axis of predetermined description areas of the multiple second character groups. Then, the processing unit 12 rearranges the third character groups following the first character group using the values ​​of the second coordinate axis (e.g., y-axis) which is orthogonal to the first coordinate axis, and generates a second document 3 in which the rearranged third character groups are arranged consecutively following the first character group.

[0027] For example, the x-coordinates of the inscription area approximate those of character groups 2c and 2e, which are the first character group, character group 2a. Therefore, character groups 2c and 2e are identified as the third character groups related to character group 2a. The distance of character group 2c to the first character group, character group 2a, is closer than that of character group 2e. For this reason, in the second document 3, character group 2c is written below character group 2a, and character group 2e is written below character group 2c. With character groups 2a, 2c, and 2e arranged in this way, the third character groups related to the first character group are placed immediately after the first character group. In addition, multiple third character groups related to the same first character group are placed consecutively. As a result, the dissipation of related text is suppressed.

[0028] Furthermore, by arranging the third character group in the second document 3 in order of proximity to the first character group in the first document 1, the order in which the content is described in the first document 1 is maintained in the second document 3. As a result, the accuracy of inference processing using the second document 3 is improved.

[0029] The processing unit 12 may add a specific element to the second document 3 to indicate a delimiter between groups of documents. For example, when the processing unit 12 arranges multiple groups of third characters extracted from the same text box in the first document 1 in sequence, it inserts a specific element between those multiple groups of third characters. The specific element is, for example, one or more newline characters. By inserting newline characters consecutively, blank lines (lines with nothing written in them) are inserted between the groups of third characters.

[0030] By inserting specific elements that indicate the delimiter of character groups between multiple third character groups, the language model 4 can correctly determine the boundaries of the content in the inference process for the second document 3. As a result, the accuracy of the inference is improved.

[0031] Furthermore, the processing unit 12 may explicitly indicate a specific element that separates third character groups in the prompt that shows the instructions for inference using the language model 4. For example, the processing unit 12 generates a prompt written in natural language that explicitly indicates that the third character groups are separated by a specific element, and an instruction to execute inference by the language model 4 regarding the second document 3. This ensures that the separation between third character groups is reliably recognized in inference using the language model 4, improving the accuracy of the inference.

[0032] [Second Embodiment] The second embodiment is a system that uses LLM (Large Language Models) to perform information extraction processing from a tabular document. The tabular document is, for example, document data in PDF (Portable Document Format).

[0033] Figure 2 shows an example of the system configuration of the second embodiment. For example, the server 100 and the terminal device 30 are connected via the network 20. The server 100 is a computer that provides information extraction services using LLM. The terminal device 30 is a computer that sends information extraction requests to the server 100.

[0034] For example, a user inputs instructions to the terminal device 30 to extract information from a tabular document. The terminal device 30 then sends an information extraction request, including the tabular document, to the server 100. The server 100 extracts information from the tabular document in response to the information extraction request. The server 100 then sends structured data containing the extracted information back to the terminal device 30.

[0035] Figure 3 shows an example of server hardware. Server 100 is controlled as a whole by a processor 101. The processor 101 is connected to memory 102 and several peripheral devices via a bus 109.

[0036] Server 100 may be a multiprocessor system having multiple processors. A collection of multiple processors in a multiprocessor system can be called a processor 101. A processor 101 may also be called a processor circuitry. Each of the multiple processors can execute some or all of the processes executed by Server 100. When there are multiple related processes, two or more of those processes may be executed by different processors.

[0037] The processor 101 is, for example, a CPU (Central Processing Unit), an MPU (Micro Processing Unit), or a DSP (Digital Signal Processor). At least some of the functions that the processor 101 implements by executing a program may be implemented by electronic circuits such as an ASIC (Application Specific Integrated Circuit) or a PLD (Programmable Logic Device).

[0038] Memory 102 is used as the main memory of the server 100. Memory 102 temporarily stores at least a portion of the OS (Operating System) program and application programs that are to be executed by the processor 101. Memory 102 also stores various data used for processing by the processor 101. For memory 102, a volatile semiconductor memory device such as RAM (Random Access Memory) is used.

[0039] Peripheral devices connected to bus 109 include a storage device 103, a graphics controller 104, an input interface 105, an optical drive device 106, a device connection interface 107, and a network interface 108.

[0040] The storage device 103 electrically or magnetically writes and reads data from its built-in recording medium. The storage device 103 is used as an auxiliary storage device for the server 100. The storage device 103 stores the OS program, application programs, and various data. For example, the storage device 103 can be an HDD (Hard Disk Drive) or an SSD (Solid State Drive).

[0041] The graphics controller 104 is an arithmetic unit that performs image processing. The graphics controller 104 is, for example, a GPU (Graphics Processing Unit). A monitor 21 is connected to the graphics controller 104. The graphics controller 104 displays images on the screen of the monitor 21 according to instructions from the processor 101. The monitor 21 can be an OLED (Electroluminescence) display device or a liquid crystal display device. If a GPU is used as the graphics controller 104, the graphics controller 104 can also perform complex numerical calculations such as matrix calculations.

[0042] The input interface 105 is connected to a keyboard 22 and a mouse 23. The input interface 105 transmits signals from the keyboard 22 and mouse 23 to the processor 101. Note that the mouse 23 is just one example of a pointing device; other pointing devices can also be used. Other pointing devices include touch panels, tablets, touchpads, and trackballs.

[0043] The optical drive device 106 uses laser light or the like to read data recorded on the optical disc 24 or write data to the optical disc 24. The optical disc 24 is a portable recording medium on which data is recorded in a way that makes it readable by the reflection of light. Examples of optical discs 24 include DVD (Digital Versatile Disc), DVD-RAM, CD-ROM (Compact Disc Read Only Memory), and CD-R (Recordable) / RW (ReWritable).

[0044] The device connection interface 107 is a communication interface for connecting peripheral devices to the server 100. For example, a memory device 25 and a memory reader / writer 26 can be connected to the device connection interface 107. The memory device 25 is a recording medium equipped with a communication function with the device connection interface 107. The memory reader / writer 26 is a device that writes data to or reads data from the memory card 27. The memory card 27 is a card-type recording medium.

[0045] The network interface 108 is connected to the network 20. The network interface 108 transmits and receives data to and from other computers or communication devices via the network 20. The network interface 108 is a wired communication interface, for example, connected by cable to a wired communication device such as a switch or router. Alternatively, the network interface 108 may be a wireless communication interface, connected by radio waves to a wireless communication device such as a base station or access point.

[0046] The server 100 can implement the processing functions of the second embodiment using the hardware described above. The information processing device 10 shown in the first embodiment can also be implemented using hardware similar to that of the server 100 shown in Figure 3.

[0047] The server 100 implements the processing functions of the second embodiment by executing a program recorded on a computer-readable recording medium, for example. The program describing the processing to be executed by the server 100 can be recorded on various recording media. For example, the program to be executed by the server 100 can be stored in the storage device 103. The processor 101 loads at least a portion of the program in the storage device 103 into the memory 102 and executes the program. The program to be executed by the server 100 can also be recorded on a portable recording medium such as an optical disc 24, a memory device 25, or a memory card 27. The program stored on the portable recording medium becomes executable after being installed in the storage device 103, for example, under control from the processor 101. The processor 101 can also directly read and execute the program from the portable recording medium.

[0048] The system described above is used to extract information from tabular documents. Figure 4 shows an example of a table document. Table 41 is drawn in table document 40 using borders and other elements. Table 41 contains multiple text boxes (rectangular areas). Each of the text boxes contains the item name or the content of the corresponding item as text data. The text boxes containing the item names and the text data of the items indicated by those item names can be arranged horizontally or vertically.

[0049] For example, in table document 40, the text data for items corresponding to column names such as "Reason for Consideration," "Members of Consideration," "Date and Time," and "Location" is written in the text box to the right of the text box containing the column name. Similarly, the text data for items corresponding to column names such as "No.," "Problem / Phenomenon," "Cause," and "Countermeasures" is written in the text box below the text box containing the column name.

[0050] When extracting information from a table document 40, it is important to be able to accurately extract the content of each item. However, if only text data is extracted from the table document 40, it becomes unclear whether that text data is the item name or a description of the item's content.

[0051] Furthermore, it is not easy to accurately determine which item name a text data refers to. The following explains the difficulty of accurately extracting the contents of each item from the table document 40.

[0052] Figure 5 shows an example of item names and item contents. Focus on a group of text boxes 42 within Table 41. This group of text boxes 42 includes text boxes 42a and 42b related to the "Cause" item, and text boxes 42c and 42d related to the "Countermeasure" item.

[0053] Text box 42a contains the item name "Cause" in text format. Text box 42b contains the content related to the cause in text format. Text box 42c contains the item name "Countermeasure" in text format. Text box 42d contains the content related to the countermeasure in text format.

[0054] For example, the server 100 can take the text data described in the text box group 42 as input to the LLM and perform inference using the LLM to extract useful information from the text data. In this case, the server 100 extracts the text data from the text box group 42.

[0055] The text data in Table 41 of the tabular document 40 is arranged in a way that is easy for humans to visually recognize, but it is unstructured (not a structured document), and the relationships between the texts are complex. When extracting text data from such a tabular document 40, there is a possibility that multiple related texts may be lost.

[0056] Figure 6 shows an example of the results of text data extraction. When text data is extracted from Table 41 of the tabular document 40, for example, the text data extracted from text boxes 42a to 42d is shown in extracted text 43.

[0057] The extracted text 43 first contains the text 43a of the two item names extracted from text boxes 42a and 42c. Then, the text 43b extracted from text box 42d is followed by the text 43c extracted from text box 42b, and then the text 43d extracted from text box 42d.

[0058] In extracted text 43, the item names and content for the "Cause" item are scattered. Similarly, the item names and content for the "Countermeasure" item are also scattered. Thus, if text extraction is not performed in a way that is adapted to the table format in table document 40, scattering of item names and their content will occur.

[0059] Furthermore, in extracted text 43, text 43c extracted from another text box 42b is sandwiched between two consecutive texts 43b and 43d within text box 42d. Thus, even if texts 43b and 43d are consecutive within the same text box 42d, they may become scattered within extracted text 43. In other words, the continuity of related texts is not preserved.

[0060] Furthermore, in the extracted text 43, paragraphs are not separated by line breaks, making it impossible to determine paragraph breaks. Therefore, even if the extracted text 43 is input into, for example, LLM, it is not possible to formally determine its semantic unity.

[0061] Therefore, when extracting text data from a tabular document, server 100 effectively utilizes information about the structure of the tab to perform text data extraction adapted to the tab. This suppresses the scattering of information during text data extraction and improves the accuracy of subsequent information extraction by LLM, etc. Specifically, server 100 extracts text data and sorts the text data using a text chunk sorting method.

[0062] Figure 7 shows an example of text extraction using a text chunk sorting method. The upper part of Figure 7 shows, for comparison, a text extraction method (simple text extraction method) when text is simply extracted from a table document 40 without considering the structure of the table.

[0063] In the simple text extraction method, text is extracted from the tabular document 40 to obtain extracted text 43 as shown in Figure 6. By performing inference processing using LLM on the extracted text 43, the structure of the text within the extracted text 43 is estimated, and structured data 44 is generated. In the structured data 44, for example, item names are assigned information indicating that they are items (e.g., tags), and item contents are assigned information indicating that they are the contents of an item, associated with the item name (e.g., tags).

[0064] In the simple text extraction method, the loss of related information in the extracted text 43 is a factor that reduces the accuracy of inference using LLM. Furthermore, the lack of proper paragraph breaks or other divisions within the extracted text 43 is also a factor that reduces the accuracy of inference using LLM.

[0065] The lower part of Figure 7 shows the text chunk sorting method, which is the proposed method in the second embodiment. In the text chunk sorting method, strings are extracted from the table document 40 for each text box. Then, the text chunks are sorted by interpreting the terms and positional relationships.

[0066] Specifically, text chunks are extracted from the table document 40. A text chunk is a string of characters describing a specific topic. The extracted text chunks are accompanied by coordinate information indicating the area within the table document 40 where the text chunk was located. The extraction of text chunks generates a text chunk list 45. Then, the multiple text chunks included in the text chunk list 45 are sorted based on their content and coordinates to generate extracted text 46. For example, in extracted text 46, text about the same item is listed consecutively (without being scattered).

[0067] Inference is performed using the extracted text generated by the text chunk sorting method as input to the LLM, and structured data 47 is generated. The extracted text 46 is sorted by the text chunk sorting method so that related information is not scattered and paragraphs and other divisions are made according to the content. In inference using LLM, related information is correctly interpreted as related. In addition, paragraphs and other divisions are correctly interpreted by LLM inference to determine whether the same content continues or changes. As a result, highly accurate structured data 47 is generated.

[0068] Figure 8 shows an example of the text extraction result using the text chunk sorting method. In the text chunk extraction process, for example, characters with similar spacing are included in the same text chunk. Then, one or more text chunks are extracted from each of the multiple text boxes 42a to 42d.

[0069] In the example in Figure 8, the text chunk extraction process extracts text chunk 48a from text box 42a. Text chunks 48b and 48c are extracted from text box 42b. Text chunk 48d is extracted from text box 42c. Text chunks 48e, 48f, ... are extracted from text box 42d. The extracted text chunks 48a to 48f, ... are appropriately rearranged and combined to generate the extracted text 46.

[0070] In extracted text 46, the item name "Cause" is followed by the content of the cause. Similarly, in extracted text 46, the item name "Countermeasure" is followed by the content of the countermeasure.

[0071] This text chunk rearrangement method ensures that related information is grouped together within the extracted text 46 without being scattered. As a result, the accuracy of information extraction using the extracted text 46 is improved.

[0072] Figure 9 is a block diagram illustrating an example of the functions of a server for implementing a text chunk sorting method. The server 100 includes an information extraction request receiving unit 110, a storage unit 120, a text chunk extraction unit 130, a sorting unit 140, and an information extraction unit 150.

[0073] The information extraction request receiving unit 110 receives an information extraction request from the terminal device 30. The information extraction request includes, for example, document data 121 from which information will be extracted. The document data 121 is, for example, a table document. The information extraction request also includes target item information 122 indicating the items to be extracted. When the information extraction request receiving unit 110 receives an information extraction request, it stores the document data 121 and the target item information 122 included in the information extraction request in the storage unit 120. Furthermore, when structured data 125 is generated in response to the information extraction request, the information extraction request receiving unit 110 transmits the structured data 125 to the terminal device 30.

[0074] The storage unit 120 stores document data 121, target item information 122, LLM 123, prompt template 124, and structured data 125. The storage unit 120 is a part of the memory 102 or storage device 103.

[0075] LLM123 is a pre-trained machine learning model. LLM123 is, for example, a neural network model. Prompt template 124 is a template for prompts to be input to LLM123. Structured data 125 is structured data containing information extracted by the information extraction process. Structured data 125 is, for example, data in JSON (JavaScript® Object Notation) format.

[0076] When the document data 121 extracted from the information extraction request is stored in the storage unit 120, the text chunk extraction unit 130 extracts text chunks from the document data 121. The text chunk extraction unit 130 then sends a text chunk list containing the extracted text chunks to the sorting unit 140.

[0077] The sorting unit 140 sorts the text chunks included in the text chunk list based on their content and the coordinates of the source text boxes. The sorting unit 140 combines the sorted text chunks to generate the extracted text 46. The sorting unit 140 sends the extracted text 46 to the information extraction unit 150.

[0078] The information extraction unit 150 uses the LLM 123 to extract information from the extracted text 46. The information extraction unit 150 then generates structured data 125 based on the extracted information. The information extraction unit 150 stores the generated structured data 125 in the storage unit 120.

[0079] The functions of each element shown in Figure 9 can be realized, for example, by having the processor 101 execute the program module corresponding to that element. Next, we will specifically explain the various types of information used in the information extraction process.

[0080] Figure 10 shows an example of target item information. Target item information 122 is associated with the item name of the item from which information is to be extracted, and related chunk extraction conditions and supplementary information are set.

[0081] Related chunk extraction conditions are the criteria used to extract related text chunks based on a text chunk that satisfies a predetermined condition (key text chunk). These conditions may include, for example, the search direction for related chunks and the position of the text box used to determine whether a chunk is related or not.

[0082] If "horizontal" is set as the related chunk extraction condition, the search for related text chunks is performed horizontally from the source text box of the key text chunk. If "vertical" is set as the related chunk extraction condition, the search for related text chunks is performed vertically from the source text box of the key text chunk.

[0083] If "Top-left comparison" is specified as the related chunk extraction condition, the top-left coordinates of the source text box from which the key text chunk was extracted are compared with the top-left coordinates of the source text box from which the text chunk to be judged as related was extracted. If "Center comparison" is specified as the related chunk extraction condition, the center coordinates of the source text box from which the key text chunk was extracted are compared with the center coordinates of the source text box from which the text chunk to be judged as related was extracted.

[0084] Supplementary information is information that serves as a clue when extracting information with LLM123, or information regarding how to handle the extracted information. For example, in the case of the item name "Meeting Minutes ID," the supplementary information indicates that the content of the item is a 10-digit string consisting of numbers or uppercase letters. In the case of the item name "Product ID and Product Name," if the product ID and product name are listed separately, the supplementary information indicates that they should be combined into a single item for information extraction. In the case of the item name "Problem," the supplementary information indicates that the string of the item name is "Problem" or "Issue." In the case of the item name "Cause," the supplementary information indicates that the string of the item name is "Cause." In the case of the item name "Countermeasures," if supplementary explanations regarding countermeasures are provided, the supplementary information indicates that the string of those explanations should also be extracted.

[0085] Figure 11 shows an example of a prompt template. Prompt template 124 includes a description for assigning the roles of the personalities to be imitated by LLM123. Appropriate role assignment can be expected to improve the accuracy of inference. For example, in the role assignment, the task of extracting information from text is specified as a professional.

[0086] The prompt template 124 also includes a task definition. The task definition specifies the items to be extracted, the output data format, etc. Below the task definition, there is a section for embedding item names and supplementary information. The item names and supplementary information shown in the target item information 122 are inserted into this section.

[0087] Furthermore, prompt template 124 includes a description of the text to be processed. This description might include, for example, that the text was extracted from meeting minutes.

[0088] Furthermore, the description of the text to be processed explicitly states that the text is extracted in units of strings, and that these units are separated by blank lines. This explicit statement ensures that the content units are correctly interpreted in the inference using LLM123.

[0089] Furthermore, the description of the text to be processed explicitly states that the content of the items to be extracted has been arranged to be continuous, but that this arrangement is not perfect. This explicit statement improves the accuracy of recognizing the content of each item in inference using LLM123.

[0090] At the bottom of the prompt template 124, there is a section for embedding the text to be processed. The extracted text 46, obtained by combining the rearranged text chunks, is inserted into the section for embedding the text to be processed.

[0091] Next, we will explain the information extraction process in detail. Figure 12 is a flowchart showing an example of the information extraction process. The process shown in Figure 12 will be explained below according to the step numbers.

[0092] [Step S101] The information extraction request receiving unit 110 receives a document extraction request from the terminal device 30, which is a document data in the form of a table. [Step S102] The information extraction request receiving unit 110 stores the document data and target item information 122 included in the acquired document extraction request in the storage unit 120.

[0093] [Step S103] The text chunk extraction unit 130 extracts characters from the document data. At this time, the text chunk extraction unit 130 assigns the coordinates of each extracted character within the document data.

[0094] [Step S104] The text chunk extraction unit 130 groups the extracted characters. For example, the text chunk extraction unit 130 includes characters whose spacing is below a predetermined threshold in the same group. The text chunk extraction unit 130 defines the set of characters included in the same group as a text chunk. The text chunk extraction unit 130 determines a rectangular area in the document data that encompasses all the characters included in the text chunk.

[0095] The text chunk extraction unit 130 assigns coordinate information to each text chunk, indicating the coordinates of the rectangular area corresponding to that text chunk. For example, the text chunk extraction unit 130 assigns coordinate information to each text chunk indicating the coordinates of the top-left and bottom-right corners of the rectangular area corresponding to that text chunk. Alternatively, the text chunk extraction unit 130 may assign coordinates to each text chunk indicating the coordinates of a predetermined position (top-left or center) of the rectangular area corresponding to that text chunk, as well as coordinate division indicating the width and height.

[0096] The processes described in steps S103 and S104 constitute the text chunk extraction process. The text chunk extraction unit 130 sends the text chunk list containing the text chunks extracted in the text chunk extraction process to the sorting unit 140.

[0097] [Step S105] The sorting unit 140 executes the processes in steps SS106 to S107 for each target item shown in the target item information 122. [Step S106] The sorting unit 140 extracts the key text chunk of the target item from the text chunk list. For example, the sorting unit 140 extracts the text chunk containing the item name of the target item as the key text chunk.

[0098] The sorting unit 140 narrows down the text chunks containing the item name of the target item to one text chunk according to a predetermined rule if there are multiple text chunks containing the item name of the target item. For example, if the related chunk extraction condition specifies that the search direction for related chunks is horizontal, the sorting unit 140 extracts the leftmost text chunk containing the item name of the target item as the key text chunk. Also, if the related chunk extraction condition specifies that the search direction for related chunks is vertical, the sorting unit 140 extracts the topmost text chunk containing the item name of the target item as the key text chunk.

[0099] The sorting unit 140 may extract the top-left text chunk within the Region of Interest (ROI) as the key text chunk. The Region of Interest is, for example, an area that includes all text chunks containing the item name of the target item.

[0100] [Step S107] The sorting unit 140 extracts text chunks related to the extracted key text chunks from the text chunk list. For example, the sorting unit 140 extracts text chunks related to the target item according to the related chunk extraction conditions shown in the target item information 122.

[0101] [Step S108] If the sorting unit 140 has performed the processes in steps S106 to S107 for all target items, it proceeds to step S109. [Step S109] The sorting unit 140 performs a text chunk reordering process. Details of the text chunk reordering process will be described later (see Figure 16).

[0102] [Step S110] The sorting unit 140 combines the sorted text chunks to generate extracted text 46. The sorting unit 140 sends the generated extracted text 46 to the information extraction unit 150.

[0103] The processes described in steps S105 to S110 above constitute the text chunk sorting process. [Step S111] The information extraction unit 150 generates a prompt to be input to the LLM 123 using the prompt template 124. For example, the information extraction unit 150 embeds the item name and supplementary information shown in the target item information 122 into the prompt template 124. The information extraction unit 150 also embeds the extracted text 46 generated by text chunk sorting into the prompt template 124.

[0104] [Step S112] The information extraction unit 150 performs information extraction processing using the LLM 123. For example, the information extraction unit 150 takes the generated prompt as input to the LLM 123 and executes processing according to the LLM 123, obtaining the output of the LLM 123. The information extraction unit 150 obtains structured data 125 containing the extracted information as the output of the LLM 123, for example. The information extraction unit 150 stores the obtained structured data 125 in the storage unit 120.

[0105] The processes described in steps S111 to S112 constitute the information extraction process. [Step S113] The information extraction request receiving unit 110 transmits the structured data 125 obtained by the information extraction process to the terminal device 30.

[0106] In this way, information extraction processing using the extracted text 46, in which the content is summarized for each item, outputs highly accurate information as structured data 125. Figure 13 shows an example of the text chunk extraction process. For example, let's focus on text boxes 42a to 42d in a table document 40. The text chunk extraction unit 130 determines the arrangement of characters and the spacing (in points) between adjacent characters based on the coordinates of each character in text boxes 42a to 42d. The text chunk extraction unit 130 determines whether the spacing between adjacent characters is less than or equal to a pre-set threshold (char_margin). char_margin is a parameter that indicates how many points of spacing (relative distance in the horizontal direction) between adjacent characters will be considered as the same chunk. char_margin is specified, for example, as a relative value to the width of a single character. If the spacing between adjacent characters (relative distance in the vertical direction) is less than or equal to char_margin, the text chunk extraction unit 130 groups those adjacent characters into the same text chunk.

[0107] The text chunk extraction unit 130 also determines the spacing (in points) between adjacent lines, both vertically and horizontally. The text chunk extraction unit 130 then determines whether the spacing between lines is less than or equal to a pre-set threshold (line_margin). line_margin is a parameter that indicates how many points of spacing between adjacent lines, both vertically and horizontally, should be considered as belonging to the same chunk. line_margin is specified, for example, as a relative value to the height of a single line. If the spacing between adjacent lines, both vertically and horizontally, is less than or equal to line_margin, the text chunk extraction unit 130 combines the strings contained in each of those adjacent lines into the same text chunk.

[0108] In the example in Figure 13, text chunks 48a to 48h are extracted from text boxes 42a to 42d. Coordinate information is added to the extracted text chunks 48a to 48h. Then, a text chunk list 45 is generated that includes the extracted text chunks 48a to 48h. The order of text chunks 48a to 48h within the text chunk list 45 may not be in the correct order.

[0109] Figure 14 shows an example of a generated text chunk list. In the example in Figure 14, among text chunks 48a to 48f, text chunk 48a, which is "cause," is set first in text chunk list 45. Following text chunk 48a, text chunk 48b, which shows the content of "cause," is set. Following text chunk 48b, text chunk 48d, which is "countermeasure," is set. Following text chunk 48d, text chunk 48e, which shows the content of the countermeasure, is set. Following text chunk 48e, text chunk 48c, which shows the content of the cause, is set. Following text chunk 48c, text chunk 48f, which shows the content of the countermeasure, is set.

[0110] Thus, the order of the text chunks in text chunk list 45 is not appropriate. In other words, multiple text chunks relating to the same item are discretely arranged within text chunk list 45. Therefore, a text chunk reordering process is performed.

[0111] In the text chunk reordering process, text chunks relating to the same item as the key text chunk are arranged below the key text chunk, with the key text chunk serving as the baseline.

[0112] Figure 15 shows an example of the key text chunk selection process. A key text chunk is a text chunk that contains the item name shown in, for example, the target item information 122. In the example in Figure 15, the text chunk 48a of "Cause" and the text chunk 48d of "Countermeasure" are extracted as key text chunks. Then, a key text chunk list 45a is generated.

[0113] Based on the extracted key text chunks, a text chunk reordering process is performed. Figure 16 is a flowchart illustrating an example of the procedure for reordering text chunks. The process shown in Figure 16 will be explained below according to the step numbers.

[0114] [Step S201] The sorting unit 140 selects one unselected key text chunk from the key text chunk list 45a. [Step S202] The sorting unit 140 obtains the coordinates indicating the region of the selected key text chunk within the document data 121.

[0115] [Step S203] The sorting unit 140 retrieves text chunks associated with the selected key text chunk based on the x-coordinate of that key text chunk. [Step S204] The sorting unit 140 arranges the acquired text chunks below the selected key text chunks in order of decreasing y-coordinate (higher position in document data 121).

[0116] [Step S205] The sorting unit 140 determines whether there are any unselected key text chunks in the key text chunk list 45a. If there are any unselected key text chunks, the sorting unit 140 proceeds to step S201. If all key text chunks have already been selected, the sorting unit 140 terminates the text chunk reordering process.

[0117] Next, we will explain how to extract text chunks related to the key text chunk. Figure 17 shows a first example of a method for extracting relevant text chunks. For example, suppose the text chunk 48d of "countermeasures" is selected as the key text chunk to be processed. The top-left coordinate of the area of ​​the key text chunk within the table document 40 is (x1 key ,y1 key Let ) be the coordinate of the bottom right of the area (x2 key ,y2 key )

[0118] The top-left coordinate of the area in the table document 40 of text chunk 48e is (x1 5 ,y1 5 ) and the coordinates of the bottom right of the area are (x2 5 ,y2 5)). The coordinates of the upper left corner of the region of the text chunk 48f in the table-structured document 40 are defined as (x1 6 , y1 6 ), and the coordinates of the lower right corner of the corresponding region are defined as (x2 6 , y2 6 ). The coordinates of the upper left corner of the region of the text chunk 48g in the table-structured document 40 are defined as (x1 7 , y1 7 ), and the coordinates of the lower right corner of the corresponding region are defined as (x2 7 , y2 7 ). The coordinates of the upper left corner of the region of the text chunk 48h in the table-structured document 40 are defined as (x1 8 , y1 8 ), and the coordinates of the lower right corner of the corresponding region are defined as (x2 8 , y2 8 ).

[0119] The sorting unit 140 sets the coordinate information indicating the region of the key text chunk as "BBox=(x1 key , y1 key , x2 key , y2 key )". The coordinates of the upper left corner of the region of the i-th text chunk to be compared are defined as (x1 i , y1 i ), and the coordinates of the lower right corner of the corresponding region are defined as (x2 i , y2 i ). At this time, text chunks that are located below the key text chunk (y1 i >y2 key ) and within the constraint range of the x-coordinate are extracted. A text chunk within the constraint range of the x-coordinate is, for example, a text chunk in which the difference between the center coordinates thereof and those of the key text chunk is less than a threshold δ. Whether the difference between the center coordinates of the i-th text chunk and the key text chunk is less than the threshold δ is determined, for example, by the following equation (1).

[0120] [Mathematical Formula]

[0121] In the example in Figure 17, text chunks 48e to 48h are extracted as text chunks related to the key text chunk. Then, "y1 i The text chunks 48e to 48h are arranged in the extracted text 46 in ascending order of the value of ".

[0122] Figure 18 shows an example of extracted text after sorting text chunks. In extracted text 46, text chunks 48b and 48c, which describe the content of the cause, are listed sequentially under text chunk 48a, which is named "Cause". Also in extracted text 46, text chunks 48e to 48f, which describe the content of the countermeasures, are listed sequentially under text chunk 48d, which is named "Countermeasure". Although omitted in Figure 18, text chunks 48g and 48h are listed sequentially under text chunk 48f in extracted text 46.

[0123] Figure 19 shows a second example of a method for extracting related text chunks. In the example in Figure 19, text chunks 48d and 48e in Figure 17 are combined into a single text chunk 48i. For example, if the space between the line "Countermeasures" and the line below it, "Piezoelectric element...", is narrower than a predetermined threshold, the line "Countermeasures" is combined into the same text chunk as the line below it.

[0124] In this case, by focusing on the coordinates of the top-left corner of the text chunk, it is possible to extract text chunks related to the key text chunk. For example, below the key text chunk (y1 i >y2 key ) and text chunks within the constraint range of x coordinates are extracted. Text chunks within the constraint range of x coordinates are, for example, text chunks whose top-left x coordinate is close to that of the key text chunk. Whether the top-left x coordinate of the i-th text chunk is close to that of the key text chunk (i.e., whether the difference is less than the threshold δ) can be determined, for example, by the following equation (2).

[0125]

number

[0126] In the example in Figure 19, text chunks 48f to 48h are extracted as text chunks related to the key text chunk. Then, "y1 i The text chunks 48f to 48h are arranged in the extracted text 46 in ascending order of the value of ".

[0127] Using the extracted text 46 generated as described above, information contained in the document data 121 is extracted. The information extraction process is performed using LLM123. A prompt to be used as input to LLM123 is then generated.

[0128] Figure 20 shows an example of the prompt generation process. The extracted text 46 summarizes the content for each item. In other words, the extracted text 46 suppresses the scattering of item names and their corresponding content within the text. Furthermore, the extracted text 46 suppresses the mixing of text from other items between multiple paragraphs that describe the content of the same item. In addition, blank lines are inserted between paragraphs in the extracted text 46, making the paragraph breaks clear.

[0129] However, due to differences in the format of table documents and the arrangement of text boxes, it is difficult to completely eliminate information scattering in the extracted text 46. By using LLM123 for information extraction, it becomes possible to supplement the lack of information consistency in the extracted text 46. For example, it becomes possible to integrate a small amount of scattered related information.

[0130] To use LLM123, prompt 51 is generated using prompt template 124 to be entered into LLM123. Figure 21 shows an example of a prompt. For example, prompt 51 contains the contents of prompt template 124. Information about the item to be extracted, as shown in target item information 122, is inserted in a predetermined location 51a of prompt 51. Extracted text 46 is inserted in a predetermined location 51b of prompt 51.

[0131] By taking such a prompt 51 as input to LLM123 and executing processing according to LLM123, appropriate information is extracted and structured data 125 is generated. The structured data 125 contains, for example, the content of an item, associated with the item name of the item to be extracted.

[0132] In this way, information on the items to be extracted is detected from the document data 121 with high accuracy, and the detected information is included in the structured data 125. Figures 22 and 23 show the results of comparing the information extraction process between the simple text extraction method and the text sorting method. The simple text extraction method is a method that extracts text without extracting and sorting text chunks. The text sorting method is a text extraction method (proposed method) that performs text chunk extraction and sorting as applied in the second embodiment.

[0133] Figure 22 shows an example of a method for verifying the results of information extraction. Figure 22 shows how to evaluate the extraction results when information is extracted from multiple tabular documents 40a, 40b, ... related to meeting minutes using different information extraction methods.

[0134] The other information extraction method employs a simple text method to generate the extracted text before inputting it into LLM123. The detection accuracy is evaluated for multiple structured data sets 44a, 44b, ... generated by inputting the extracted text, obtained using the simple text method for each of the tabular documents 40a, 40b, ... into LLM123.

[0135] The other information extraction method employs a text chunk sorting method to generate the extracted text before inputting it into LLM123. The detection accuracy is evaluated for multiple structured data sets 47a, 47b, ... generated by inputting the extracted text, obtained using the text chunk sorting method for each of the tabular documents 40a, 40b, ... into LLM123.

[0136] The names of the items to be extracted are "Meeting Minutes ID," "Product ID and Product Name," "Reason for Considering the Agenda Item," "Problem," "Cause," "Countermeasure," and "Time of Countermeasure." The content of "Meeting Minutes ID" is a fixed-length string. The content of "Product ID and Product Name," "Reason for Considering the Agenda Item," and "Time of Countermeasure" are short, free-form text strings. The content of "Problem," "Cause," and "Countermeasure" are long, free-form text strings.

[0137] For "Meeting Minutes ID," the evaluation is based on whether the extracted Meeting Minutes ID exactly matches the Meeting Minutes ID included in the table documents 40a, 40b, ... For other items, the accuracy between the content of each item included in the table documents 40a, 40b, ... and the extracted information is evaluated using edit distance. For example, accuracy is evaluated using the detection precision "1-CER." CER is the Character Error Rate. CER is a value obtained by dividing the edit distance by the number of characters in the correct string. Edit distance is the minimum number of operations (insertion, deletion, replacement) required to convert the extracted string into the correct string.

[0138] The more accurately information is detected, the smaller the edit distance and the smaller the CER value. In other words, a higher detection accuracy "1-CER" means higher information extraction accuracy. Figure 23 shows an example of the evaluation results of the information extraction process. Table 61 shows the detection accuracy of each item for each text extraction method. Graph 62 is a bar graph showing the differences in detection accuracy for each text extraction method. The vertical axis of Graph 62 represents detection accuracy. Along the horizontal axis of Graph 62, rectangular bars are arranged, with the length representing the detection accuracy for each item name. The open rectangular bars represent the detection accuracy of the simple text extraction method. The shaded rectangular bars represent the detection accuracy of the text chunk sorting method.

[0139] Compared to using a simple text extraction method, the text chunk sorting method shows an overall accuracy increase of 35 to 41 points. Moreover, by using the text chunk sorting method, it becomes possible to obtain information with high accuracy even for items that are hardly captured with the simple text extraction method (for example, "countermeasures").

[0140] As described above, according to the second embodiment, text chunks are extracted in blocks, and the order within the extracted text 46 is determined by the terms within the text chunks and the positional relationships between the text chunks. Each text chunk is also assigned coordinates indicating the position of the source region (text box), and the order is determined based on these coordinates. Each text chunk is considered to have a semantic unity, and rearranging them in units of text chunks makes it easy to rearrange them while suppressing the loss of related information. In addition, the insertion of line breaks or blank lines to indicate the separation between text chunks makes the divisions of content clearer.

[0141] Furthermore, in text chunk sorting, chunks with similar coordinates within the document data are placed closer together in the text. Similar coordinates are assumed to indicate semantic similarity, and text chunks with stronger related content are placed closer together.

[0142] Furthermore, the order of related text is rearranged using the text chunk containing the name of the item to be extracted as the key. This determines the order of the text based on the coordinates of the text chunk containing the item name and the relative positions of the other text, resulting in text within the same item being arranged consecutively.

[0143] [Other embodiments] In the second embodiment, the information extraction unit 150 performs inference using the LLM 123, but the inference process may be performed by an external computer. For example, the information extraction unit 150 generates a prompt and sends the generated prompt to an AI server that provides inference services using the LLM 123. The information extraction unit 150 then obtains structured data 125 from the AI ​​server.

[0144] Although embodiments have been illustrated above, the configurations of each part shown in the embodiments can be replaced with others having similar functions. Furthermore, other arbitrary components or processes may be added. Moreover, any two or more configurations (features) from the embodiments described above may be combined. [Explanation of symbols]

[0145] 1. Document 1 2 Character group list 2a~2f character group 3. Document 2 4 Language Models 10 Information Processing Devices 11 Storage section 12 Processing Units

Claims

1. Obtain the first document containing the table, Based on the relative positions of characters contained in the acquired first document, multiple character groups are extracted from the first document. For each of the aforementioned group of characters, region information indicating the area in which the text is written within the first document is assigned, From the aforementioned multiple character groups, a first character group containing a predetermined string is identified. Based on the first region information indicating the area where the identified first character group is described, and the second region information indicating the areas where multiple second character groups other than the first character group are described in the multiple character groups, it is determined whether or not there is a relationship between the first character group and each of the multiple second character groups. A second document is generated by arranging the first character group followed by a third character group from among the plurality of second character groups that is related to the first character group. An information processing program that instructs a computer to perform a task.

2. A language model is used to perform inferences regarding the second document. The information processing program according to claim 1, which causes the computer to perform further processing.

3. In the process of extracting the multiple character groups, the multiple character groups are extracted from the first document based on at least one vertical and horizontal spacing between characters contained in the acquired first document. The information processing program according to claim 1.

4. In the process of determining whether or not there is a relationship, the presence or absence of a relationship between the first character group and each of the multiple second character groups is determined based on the result of comparing the coordinates of the first coordinate axis of the description area of ​​the first character group with the coordinates of the first coordinate axis of the predetermined description areas of the multiple second character groups. In the process of generating the second document, the third character group is rearranged according to the values ​​of the second coordinate axis which is orthogonal to the first coordinate axis, following the first character group, and the second document is generated by arranging the rearranged third character group consecutively following the first character group. The information processing program according to claim 1.

5. In the process of generating the second document, when arranging multiple sets of the third character characters extracted from the same text box in the first document in a sequence, a specific element is inserted between the multiple sets of the third character characters. The information processing program according to claim 1.

6. A description that explicitly indicates that the third group of characters is separated by the specific element, and an instruction to perform inference by the language model regarding the second document, generate a prompt written in natural language. The information processing program according to claim 5, which further performs processing.

7. Obtain the first document containing the table, Based on the relative positions of characters contained in the acquired first document, multiple character groups are extracted from the first document. For each of the aforementioned group of characters, region information indicating the area in which the text is written within the first document is assigned, From the aforementioned multiple character groups, a first character group containing a predetermined string is identified. Based on the first region information indicating the area where the identified first character group is described, and the second region information indicating the areas where multiple second character groups other than the first character group are described in the multiple character groups, it is determined whether or not there is a relationship between the first character group and each of the multiple second character groups. A second document is generated by arranging the first character group followed by a third character group from among the plurality of second character groups that is related to the first character group. An information processing method in which a computer performs the processing.

8. A processing unit that obtains a first document in table format, extracts multiple character groups from the first document based on the relative positions of characters contained in the obtained first document, assigns area information indicating the area in which each of the multiple character groups is described within the first document to each of the multiple character groups, identifies a first character group containing a predetermined string from the multiple character groups, determines whether there is a relationship between the first character group and each of the multiple second character groups based on the first area information indicating the area in which the identified first character group is described and the second area information indicating the areas in which multiple second character groups other than the first character group are described within the multiple character groups, and generates a second document in which a third character group related to the first character group is arranged after the first character group. An information processing device having

Citation Information

Patent Citations

  • Cross-document intelligent authoring and processing assistant

    JP2025023185A