Information processing device, database generation method, and database generation program
The information processing device addresses the challenge of correcting OCR misrecognition by using attribute-based search and generative AI with designated prompts, improving the accuracy of digitized document databases.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- RESONAC CORP
- Filing Date
- 2025-10-22
- Publication Date
- 2026-05-07
AI Technical Summary
Existing OCR technologies using generative AI struggle to correct misrecognition results in scenes requiring specific technical fields and advanced expertise without prior information provision.
An information processing device that identifies a search range based on document data attributes, searches for relevant data, and uses generative AI to modify document data with designated prompts and reference data, updating the database with analysis results.
Enables accurate correction of OCR misrecognition results by providing appropriate context to generative AI, enhancing the quality of digitized document databases.
Smart Images

Figure JP2025037206_07052026_PF_FP_ABST
Abstract
Description
Information Processing Apparatus, Database Generation Method, and Database Generation Program
[0001] The present disclosure relates to an information processing apparatus, a database generation method, and a database generation program.
[0002] As a technology for digitizing handwritten documents and registering them in a database as document data, OCR (Optical Character Recognition) technology is known. The OCR technology is a technology for digitizing a handwritten document read by a scanner by performing character recognition processing.
[0003] On the other hand, a technology for correcting misrecognition results generated during character recognition processing using generative AI (Artificial Intelligence) such as a large language model is known.
[0004] Japanese Patent Application Laid-Open No. 2024-60455, Japanese Patent Application Laid-Open No. 2024-88130
[0005] However, there is a problem that correction of misrecognition results using generative AI cannot handle scenes that require specific technical fields and advanced expertise. For this reason, in such scenes, it is required to perform a process of providing information such as information on a specific technical field and advanced expertise to the generative AI in advance.
[0006] The present disclosure provides a technology for correcting document data using generative AI and generating a database.
[0007] An information processing device according to a first aspect of this disclosure includes: an identification unit that identifies a search range in a database based on an analysis result obtained by analyzing the attributes of the document data to be processed or the content of the document data to be processed; a search unit that searches for document data corresponding to the document data to be processed from the identified search range; a modification unit that instructs a generating AI to modify the document data to be processed using prompts that designate the document data to be processed as document data to be modified and reference document data generated based on the searched document data as document data to be referenced when modifying the document data to be processed; and a storage unit that updates the database by adding information based on the analysis result to the document data to be processed modified by the generating AI and storing it in an area in the database corresponding to the attributes of the document data to be processed.
[0008] A second aspect of this disclosure is an information processing apparatus as described in the first aspect, wherein the specific unit analyzes at least one of the following: technical field, technical content, technical name, method, and background of the document data to be processed.
[0009] A third aspect of this disclosure is an information processing apparatus according to the first or second aspect, wherein the attributes of the document data to be processed include at least the department where the document data to be processed is stored and the range of products handled by that department.
[0010] A fourth aspect of this disclosure is an information processing device according to any of the first to third aspects, wherein the modification unit instructs the document data to be processed to be modified on a page-by-page basis.
[0011] A fifth aspect of this disclosure is the information processing apparatus described in the fourth aspect, wherein the modification unit, when instructing the generating AI to modify the page to be processed of the document data to be processed, transmits the pages before and after the page to be processed to the generating AI.
[0012] A sixth aspect of the present disclosure is an information processing device according to any of the first to fifth aspects, further comprising an initial database generation unit that generates an initial database before the database is updated, wherein the initial database generation unit analyzes the contents of document data stored in the initial database, adds information based on the analysis results, and stores the contents in an area corresponding to the attributes of the document data.
[0013] A seventh aspect of this disclosure is a database generation method, wherein a computer performs the following steps: specifying a search range for a database based on the attributes of the document data to be processed or the content of the document data to be processed as an analysis result; searching for document data corresponding to the document data to be processed from the specified search range; instructing a generating AI to modify the document data to be processed using prompts that designate the document data to be processed as the document data to be modified and reference document data generated based on the searched document data as the document data to be referenced when modifying the document data; and updating the database by adding information based on the analysis result to the document data to be processed modified by the generating AI and storing it in an area within the database corresponding to the attributes of the document data to be processed.
[0014] An eighth aspect of this disclosure is a database generation program that causes a computer to perform the following steps: identify a search range for a database based on the attributes of the document data to be processed or the content of the document data to be processed as analysis results; search for document data corresponding to the document data to be processed from the identified search range; instruct a generating AI to modify the document data to be processed using prompts that designate the document data to be processed as the document data to be modified and reference document data generated based on the searched document data as the document data to be referenced when modifying the document data; and update the database by adding information based on the analysis results to the document data to be processed modified by the generating AI and storing it in an area within the database corresponding to the attributes of the document data to be processed.
[0015] According to this disclosure, it is possible to provide technology for modifying document data using generative AI and generating a database.
[0016] Figure 1 shows an example of the system configuration of a database generation system. Figure 2 shows an example of document data for the database. Figure 3 shows an example of the hardware configuration of an information processing device. Figure 4 shows an example of the functional configuration of an information processing device. Figure 5 is an example of a flowchart showing the flow of the initial database generation process. Figure 6 shows an example of the initial database generation screen. Figure 7 is an example of a flowchart showing the flow of the database generation process. Figure 8 shows an example of the database generation screen. Figure 9A shows an example of a system prompt. Figure 9B shows an example of an assistant prompt and a user prompt. Figure 10A shows an example of a target page for OCR document data. Figure 10B shows an example of a summary of the target page, a list of search results, and reference document data. Figure 10C shows an example of corrected OCR document data.
[0017] Each embodiment will be described below with reference to the attached drawings. In this specification and the drawings, components having substantially the same functional configuration are denoted by the same reference numerals, and redundant descriptions will be omitted.
[0018] [First Embodiment] <System Configuration of Database Generation System> First, the system configuration of a database generation system equipped with an information processing device according to the first embodiment will be described. Figure 1 is a diagram showing an example of the system configuration of a database generation system.
[0019] The database generation system 100 is applied, for example, in a scenario where a company that manufactures product lines in multiple technological fields digitizes handwritten documents stored within its premises and stores them as document data in a database.
[0020] As shown in Figure 1, the database generation system 100 includes an information processing device 110, a reader 111, an information processing device 120, a reader 121, a server device 130, and an information processing device 140.
[0021] In the database generation system 100, the information processing device 110, the information processing device 120, the server device 130, and the information processing device 140 are interconnected via the network 160. The information processing device 140 is connected to the server device 150 via the network 170.
[0022] The information processing device 110 is installed in department α, which handles a portion of the manufactured product group. Before the database is generated, the information processing device 110 reads handwritten document data stored in department α using the reading device 111, and acquires OCR document data generated by character recognition processing. The information processing device 110 transmits the acquired OCR document data to the information processing device 140.
[0023] When the database is used after it has been generated, the information processing device 110 accesses the server device 130 and displays the document data stored in the database to a viewer (not shown).
[0024] The information processing device 120 is installed in department β, which handles a portion of the manufactured product range. Before the database is generated, the information processing device 120 reads handwritten document data stored in department β using the reading device 121 and acquires OCR document data generated by character recognition processing. The information processing device 120 transmits the acquired OCR document data to the information processing device 140.
[0025] When the database is used after it has been generated, the information processing device 120 accesses the server device 130 and displays the document data stored in the database to a viewer (not shown).
[0026] The server device 130 has a database for storing document data. In this embodiment, the product group is classified into multiple product ranges (four product ranges in the example of Figure 1), and the database is divided into areas corresponding to each product range to store the document data.
[0027] In Figure 1, the data storage unit 131 for product range A indicates an area where document data related to products classified as product range A from the above product group is stored. The data storage unit 132 for product range B indicates an area where document data related to products classified as product range B from the above product group is stored. The data storage unit 133 for product range C indicates an area where document data related to products classified as product range C from the above product group is stored. The data storage unit 134 for product range D indicates an area where document data related to products classified as product range D from the above product group is stored.
[0028] Note that while Figure 1 shows an example where document data is stored in areas corresponding to product ranges, the database configuration is not limited to this. Other configurations are acceptable as long as they facilitate the use of the database. Specifically, document data may be stored in areas corresponding to other attributes of the document data (attributes other than product range, such as department). This is because, considering that handwritten documents were originally stored by department, it may be easier to use if document data is stored by department in the database as well. Alternatively, document data may be subdivided and stored by product range and by department. This is because, even within the same product range, different departments will have different viewers, so it may be easier to use if the data is subdivided and stored separately.
[0029] The information processing device 140 is a device operated by the user 141. The information processing device 140 generates an initial database (referred to as the initial database) for the server device 130. For example, the information processing device 140 collects document data (error-free document data) managed by each department and adds information based on the analysis results obtained by analyzing the contents of the document data to the document data. In this way, the information processing device 140 generates document data for the database (hereinafter referred to as DB document data). The information processing device 140 generates the initial database by storing the generated DB document data in an area corresponding to the attributes of the document data (in the example in Figure 1, the product range).
[0030] The information processing device 140 corrects the misrecognition results of the OCR document data transmitted from the information processing devices 110 and 120, and then generates database document data. The information processing device 140 updates the initial database or database by storing the generated database document data in an area corresponding to the attributes of the OCR document data (product range in the example in Figure 1), and then generates the database.
[0031] When correcting misrecognition results contained in OCR document data, the information processing device 140 first determines the search range of the initial database based on the analysis results obtained by analyzing the attributes and contents of the OCR document data.
[0032] Next, the information processing device 140 searches for database document data corresponding to the OCR document data from the database document data included in the specified search range. Based on the retrieved database document data, the information processing device 140 generates reference document data.
[0033] Next, the information processing device 140 generates a prompt that designates the OCR document data as "document data to be corrected" and the generated reference document data as "document data to be referenced when correcting".
[0034] Next, the information processing device 140 uses the generated prompt to instruct the server device 150's generation AI, such as a large-scale language model, to correct the misrecognition result of the OCR document data.
[0035] Thus, in this embodiment, in the case of generation AI such as large-scale language models, in order to correct misrecognition results, information such as information on a specific technical field and advanced expertise may be required, so that: - DB document data containing information such as information on a specific technical field and advanced expertise is prepared in advance; - When correcting the misrecognition results of OCR document data, the search range is narrowed based on the attributes and analysis results; - DB document data corresponding to the OCR document data is searched from the DB document data included in the narrowed search range; - Reference document data is generated based on the searched DB document data; and - This reference document data is provided to the generation AI.
[0036] As a result, according to this embodiment, it becomes possible to provide the generating AI with information suitable for correcting the misrecognition results of the OCR document data to be processed. As a result, the generating AI can appropriately correct the misrecognition results.
[0037] In other words, according to this embodiment, it is possible to provide a technology for appropriately modifying document data using generation AI and generating a database.
[0038] <Database Document Data> Next, we will describe the initial database of the server device 130 or the database document data stored in the database. Figure 2 is a diagram showing an example of database document data, illustrating the relationship between each database document data, its attributes, and the analysis results obtained by analyzing the content of each database document data.
[0039] In the example shown in Figure 2, department α is the department that handles products classified under product range A, product range B, and product range D within the product group that is manufactured.
[0040] In the example shown in Figure 2, department β is the department that handles products classified under product range B, product range C, and product range D within the group of products manufactured.
[0041] As shown in FIG. 2, the DB document data related to the products classified into the product range A handled by the department α includes document data A_1 to document data A_a, and the DB document data is stored in the data storage unit 131 for the product range A. In addition, in the document data A_1 to document data A_a, in addition to the information indicating the attributes, information based on the analysis results obtained by analyzing the contents of the document data A_1 to document data A_a (in the example of FIG. 2, the technical field, technical content) is added.
[0042] As shown in FIG. 2, the DB document data related to the products classified into the product range B handled by the department α includes document data B_1 to document data B_b, and the DB document data is stored in the data storage unit 132 for the product range B. In addition, in the document data B_1 to document data B_b, in addition to the information indicating the attributes, information based on the analysis results obtained by analyzing the contents of the document data B_1 to document data B_b (in the example of FIG. 2, the technical field, technical content) is added.
[0043] As shown in FIG. 2, the DB document data related to the products classified into the product range D handled by the department α includes document data D_1 to document data D_d, and the DB document data is stored in the data storage unit 134 for the product range D. In addition, in the document data D_1 to document data D_d, in addition to the information indicating the attributes, information based on the analysis results obtained by analyzing the contents of the document data D_1 to document data D_d (in the example of FIG. 2, the technical field, technical content) is added.
[0044] As shown in FIG. 2, the DB document data related to the products classified into the product range B handled by the department β includes document data B_b + 1 to document data B_b + n, and the DB document data is stored in the data storage unit 132 for the product range B. In addition, in the document data B_b + 1 to document data B_b + n, in addition to the information indicating the attributes, information based on the analysis results obtained by analyzing the contents of the document data B_b + 1 to document data B_b + n (in the example of FIG. 2, the technical field, technical content) is added.
[0045] As shown in FIG. 2, the DB document data related to the products classified into the product range C handled by the department β includes document data C_1 to document data C_c, and the DB document data is stored in the data storage unit 133 for the product range C. In addition, in the document data C_1 to document data C_c, in addition to the information indicating the attributes, information based on the analysis results obtained by analyzing the contents of the document data C_1 to document data C_c (in the example of FIG. 2, the technical field, technical content) is added.
[0046] As shown in FIG. 2, the DB document data related to the products classified into the product range D handled by the department β includes document data D_d+1 to document data D_d+m, and the DB document data is stored in the data storage unit 134 for the product range D. In addition, in the document data D_d+1 to document data D_d+m, in addition to the information indicating the attributes, information based on the analysis results obtained by analyzing the contents of the document data D_d+1 to document data D_d+m (in the example of FIG. 2, the technical field, technical content) is added.
[0047] <Hardware Configuration of the Information Processing Device> Next, the hardware configuration of the information processing device 140 will be described. FIG. 3 is a diagram showing an example of the hardware configuration of the information processing device. As shown in FIG. 3, the information processing device 140 includes a processor 301, a memory 302, an auxiliary storage device 303, an interface device 304, a communication device 305, and a drive device 306. Each hardware of the information processing device 110 is interconnected via a bus 307.
[0048] The processor 301 includes various arithmetic devices such as a CPU (Central Processing Unit) and a GPU (Graphics Processing Unit). The processor 301 executes various programs by reading various programs (for example, a database generation program, etc.) onto the memory 302.
[0049] The memory 302 has main memory devices such as ROM (Read Only Memory) and RAM (Random Access Memory). The processor 301 and the memory 302 form a so-called computer, and the computer realizes various functions by the processor 301 executing various programs read into the memory 302.
[0050] The auxiliary storage device 303 stores various programs and various data used when these programs are executed by the processor 301.
[0051] Interface device 304 is a connection device for connecting an operating device 311 and a display device 312, which are examples of user interface devices. Communication device 305 is a communication device for communicating with information processing devices 110 and 120 and server devices 130 and 150 via networks 160 and 170.
[0052] The drive device 306 is a device for setting the recording medium 313. The recording medium 313 here includes media for recording information optically, electrically, or magnetically, such as CD-ROMs, flexible disks, and magneto-optical disks. The recording medium 313 may also include semiconductor memory such as ROMs and flash memory for recording information electrically.
[0053] The various programs to be installed on the auxiliary storage device 303 are installed, for example, when the distributed recording medium 313 is set in the drive device 306 and the various programs recorded on the recording medium 313 are read by the drive device 306. Alternatively, the various programs to be installed on the auxiliary storage device 303 may be installed when they are downloaded from the network via the communication device 305.
[0054] Note that only the hardware configuration of the information processing device 140 is described here, and the hardware configurations of the information processing devices 110 and 120, and the server devices 130 and 150 are omitted. However, the hardware configurations of the information processing devices 110 and 120, and the server devices 130 and 150 are basically the same as those of the information processing device 140.
[0055] <Functional Configuration of the Information Processing Device> Next, the functional configuration of the information processing device 140 will be described. As described above, a database generation program is installed in the information processing device 140, and when this program is executed, the information processing device 140 functions as an initial database generation unit 410 and a database generation unit 420.
[0056] The initial database generation unit 410 generates a database by collecting digitized arbitrary document data (error-free document data), adding information based on the analysis results obtained by analyzing the contents of the document data, and thereby generating document data for the database.
[0057] Specifically, the initial database generation unit 410 collects, for example, document data (error-free document data) managed by each department. The initial database generation unit 410 generates DB document data by adding information (technical field, technical content) based on the analysis results obtained by analyzing the content of the collected document data (error-free document data) to the collected document data. It is assumed that the collected document data already has attribute information attached as metadata. The analysis method used by the initial database generation unit 410 when analyzing the content of the document data is arbitrary, and for example, a generation AI such as tf-idf (term frequency-inverse document frequency) or a large-scale language model may be used. An example of a large-scale language model is ChatGPT.
[0058] The initial database generation unit 410 stores the generated DB document data in areas within the initial database that correspond to the attributes of the collected document data (for example, product range).
[0059] As shown in Figure 4, the database generation unit 420 further includes an OCR document data acquisition unit 421, a search range identification unit 422, a search unit 423, a modification unit 424, and a storage unit 425.
[0060] The OCR document data acquisition unit 421 acquires the OCR document data transmitted from the information processing device 110 and the information processing device 120, and notifies the search range identification unit 422 and the modification unit 424.
[0061] The search range identification unit 422 is an example of an identification unit, and it analyzes the contents of the OCR document data notified by the OCR document data acquisition unit 421 and obtains the analysis results (e.g., technical field, technical content). The analysis method used by the search range identification unit 422 when analyzing the contents of the OCR document data is arbitrary, and for example, tf-idf, ChatGPT, etc., may be used.
[0062] The search range identification unit 422 identifies the search range based on the attributes of the OCR document data notified by the OCR document data acquisition unit 421 (e.g., department, product range) and the acquired analysis results (e.g., technical field, technical content), and notifies the search unit 423.
[0063] The search unit 423 searches for DB document data that corresponds to OCR document data among the DB document data stored in the initial database or each area within the database, within the search range notified by the search range specification unit 422. The search unit 423 performs the search for DB document data corresponding to OCR document data on a page-by-page basis.
[0064] Searching database document data corresponding to OCR document data on a page-by-page basis includes one of the following: searching for a page in the database document data that is similar to the target page in the OCR document data; searching for a page in the database document data that is similar to the summary of the target page in the OCR document data; or searching for a page in the database document data that contains keywords extracted from the target page in the OCR document data. For example, tf-idf, ChatGPT, etc., may be used to generate a summary of the target page or to extract keywords from the target page. The search method used by the search unit 423 is arbitrary, and for example, vector search, fuzzy search, semantic search, etc., may be used.
[0065] The search unit 423 generates reference document data based on the pages of the retrieved DB document data. For example, if only one page of data from one DB document is retrieved, the search unit 423 uses the data from that one page as reference document data. For example, if one page of data is retrieved from each of multiple DB document data sets, the search unit 423 generates reference document data by combining the data from each of the top three DB document data sets with the highest similarity. The search unit 423 notifies the modification unit 424 of the generated reference document data.
[0066] The correction unit 424 generates prompts that designate the target page of the OCR document data notified by the OCR document data acquisition unit 421 as the "document data to be corrected" and the reference document data notified by the search unit 423 as the "document data to be referenced when correcting".
[0067] Furthermore, the "document data to be referenced during correction" may include not only reference document data but also the pages before and after the target page of the OCR document data that is the "document data to be corrected." For example, if the target page of the OCR document data contains sentences that span across the preceding and succeeding pages, referencing the preceding and succeeding pages will enable generative AI such as large-scale language models to make contextually appropriate corrections.
[0068] The correction unit 424 uses the generated prompt to instruct the generation AI, such as the large-scale language model, of the server device 150 to correct the misrecognition result of the OCR document data.
[0069] As a result, the correction unit 424 acquires corrected OCR document data in which the misrecognition results of the OCR document data have been corrected. The correction unit 424 then notifies the storage unit 425 of the acquired corrected OCR document data.
[0070] The storage unit 425 generates DB document data by adding information (technical field, technical content) based on the analysis results notified by the search range identification unit 422 to the corrected OCR document data notified by the correction unit 424. The storage unit 425 stores the generated DB document data in the initial database or an area within the database corresponding to the attributes (e.g., product range) that have been pre-added to the corrected OCR document data.
[0071] <Details of processing by the initial database generation unit> Next, we will explain the details of the processing by the initial database generation unit 410.
[0072] (1) Flow of the initial database generation process by the initial database generation unit 410 First, the flow of the initial database generation process by the initial database generation unit 410 will be explained. Figure 5 is an example of a flowchart showing the flow of the initial database generation process.
[0073] In step S501, the initial database generation unit 410 collects digitized document data.
[0074] In step S502, the initial database generation unit 410 analyzes the contents of the collected document data on a page-by-page basis.
[0075] In step S503, the initial database generation unit 410 adds information based on the analysis results (for example, technical field, technical content) to the document data on a page-by-page basis to generate document data for the database.
[0076] In step S504, the initial database generation unit 410 stores the generated DB document data in an area within the initial database corresponding to the attributes of the collected document data.
[0077] In step S505, the initial database generation unit 410 determines whether or not there is any more document data. If it determines that there is more document data (i.e., if the answer in step S505 is YES), it returns to step S501.
[0078] On the other hand, if it is determined in step S505 that there is no further document data (i.e., the answer is NO in step S505), the initial database generation process is terminated.
[0079] (2) Initial Database Generation Screen Next, the initial database generation screen displayed on the display device 312 when the initial database generation unit 410 executes the initial database generation process will be described. Figure 6 is a diagram showing an example of the initial database generation screen.
[0080] As shown in Figure 6, the initial database generation screen 600 includes a document data read button 610, an analysis button 620, a modification button 622, and a registration button 630.
[0081] The document data read button 610 is a button for reading document data used to generate the initial database. User 141 reads the document data used to generate the initial database by pressing the document data read button 610 and accessing the document data storage location. The read document data is displayed in the document data display area 611. The document data used to generate the initial database may also be read by dragging and dropping it onto the initial database generation screen 600.
[0082] The analysis button 620 is a button used to identify the attributes of the read document data and to analyze the content of the read document data. When the user 141 presses the analysis button 620, the attributes of the read document data are identified, the content of the read document data is analyzed, and information based on the attributes and analysis results is displayed in the attribute and analysis result display area 621.
[0083] The example in Figure 6 shows how the attributes of the retrieved document data are identified, resulting in the display of "Department α" and "Product Range B". It is assumed that the attributes of the retrieved document data are included as metadata within the retrieved document data itself.
[0084] The example in Figure 6 shows how, after the content of each page of the read document data is analyzed, the information displayed in the document data display area 611, based on the analysis results for the page, displays "Technical Field" = "Chemistry" and "Technical Content" = "Alumina Recovery".
[0085] As described above, since the analysis of the retrieved document data is performed on a page-by-page basis, the information based on the attributes and analysis results displayed in the attribute and analysis result display area 621 changes in accordance with the scrolling of the document data pages displayed in the document data display area 611.
[0086] The edit button 622 is used by user 141 to manually correct information based on attributes and analysis results displayed in the attribute and analysis result display area 621. User 141 views each page of the document data displayed in the document data display area 611. If user 141 determines that there is an error in the information based on attributes or analysis results displayed in the attribute and analysis result display area 621, user 141 presses the edit button 622 to make the information based on attributes and analysis results editable. This allows user 141 to arbitrarily correct the information based on attributes or analysis results.
[0087] The registration button 630 is a button that generates DB document data by adding information based on the analysis results to the read document data and stores it in the initial database. When user 141 presses the registration button 630, the DB document data is stored in the initial database, and the stored information is displayed in the stored information display area 631.
[0088] The example in Figure 6 shows that the retrieved document data was stored in the initial database as DB document data with the file name = "Document Data B_1". The example in Figure 6 shows that the DB document data was stored in the area corresponding to product range = "Product Range B" ("Data Storage Area for Product Range B") among the various areas in the initial database.
[0089] <Details of processing by the database generation unit> Next, we will explain the details of the processing by the database generation unit 420.
[0090] (1) Flow of database generation process by database generation unit 420 First, the flow of the database generation process by database generation unit 420 will be explained. Figure 7 is an example of a flowchart showing the flow of the database generation process.
[0091] In step S701, the database generation unit 420 collects OCR document data.
[0092] In step S702, the database generation unit 420 analyzes the contents of the collected OCR document data on a page-by-page basis.
[0093] In step S703, the database generation unit 420 determines the search range based on the attributes of the collected OCR document data and the analysis results.
[0094] In step S704, the database generation unit 420 searches for DB document data corresponding to each page of the OCR document data on a page-by-page basis from the DB document data included in the specified search range within the initial database or each area within the database. Based on the pages of the searched DB document data, the database generation unit 420 generates reference document data.
[0095] In step S705, the database generation unit 420 generates prompts that include "document data to be corrected" and "document data to be referenced when correcting". More specifically, the correction unit 424 of the database generation unit 420 includes the rules for correcting typographical errors in the system prompt. The correction unit 424 of the database generation unit 420 includes the reference document data and the pages before and after the target page of the OCR document data in the assistant prompt as "document data to be referenced when correcting". The correction unit 424 of the database generation unit 420 includes the target page of the OCR document data in the user prompt as "document data to be corrected".
[0096] In step S706, the database generation unit 420 uses the generated prompt to instruct the generation AI, such as the large-scale language model, of the server device 150 to correct the misrecognition result for the target page of the OCR document data.
[0097] In step S707, the database generation unit 420 obtains corrected OCR document data in which the misrecognition results have been corrected for the target pages of the OCR document data. The database generation unit 420 performs the same process (steps S702 to S707) for all pages of the OCR document data. As a result, the database generation unit 420 obtains corrected OCR document data in which the misrecognition results have been corrected for all pages of the OCR document data.
[0098] In step S708, the database generation unit 420 generates DB document data by adding information based on the analysis results to each corrected OCR document data for which the misrecognition results have been corrected for all pages of the OCR document data.
[0099] In step S709, the database generation unit 420 stores the generated DB document data in the initial database or an area within the database, according to the attributes of the OCR document data.
[0100] In step S710, the database generation unit 420 determines whether or not there is the next OCR document data. If it is determined in step S710 that there is the next OCR document data (if the answer is YES in step S710), the process returns to step S701.
[0101] On the other hand, if it is determined in step S710 that there is no further OCR document data (i.e., the answer is NO in step S710), the database generation process is terminated.
[0102] (2) Database generation screen Next, the database generation screen displayed on the display device 312 when the database generation unit 420 executes the database generation process will be described. Figure 8 is a diagram showing an example of the database generation screen.
[0103] As shown in Figure 8, the database generation screen 800 includes an OCR document data read button 810, a DB document data search button 820, a modification instruction button 830, and a registration button 840.
[0104] The OCR document data read button 810 is a button for reading OCR document data used to generate the database. User 141 presses the OCR document data read button 810 and accesses the storage location of the OCR document data to read the OCR document data used to generate the database. The read OCR document data is displayed in the OCR document data display area 811. In addition, the file name of the read OCR document data, attributes (department, product range), and information based on the analysis results obtained by analyzing the contents of the read OCR document data (technical field, technical content) are displayed in the attribute and analysis result display area 812. The OCR data used to generate the database may also be read by dragging and dropping it onto the database generation screen 800.
[0105] As described above, the analysis of the read OCR document data is performed on a page-by-page basis. Therefore, the "technical field" and "technical content" displayed in the attribute and analysis result display area 812 change in accordance with the scrolling of the OCR document data page displayed in the OCR document data display area 811.
[0106] The example in Figure 8 shows that the file name of the read OCR document data is "Document Data X", and the attributes of the read OCR document data are Department = "Department α" and Product Range = "Product Range B". Furthermore, the example in Figure 8 shows that, based on the analysis results of the content of the page displayed in the OCR document data display area 811, the technical field is "Chemistry" and the technical content is "Alumina Recovery".
[0107] The DB document data search button 820 is a button for generating reference document data. When user 141 presses the DB document data search button 820, the corresponding pages of the DB document data for each page of the OCR document data are searched, and reference document data is generated by combining, for example, the top three pages of the DB document data with the highest similarity. As a result, the reference document data is displayed in the reference document data display area 821.
[0108] As described above, the search for database document data corresponding to the OCR document data is performed on a page-by-page basis, and reference document data is generated for each page of the OCR document data. Therefore, the reference document data displayed in the reference document data display area 821 scrolls in accordance with the scrolling of the pages of the OCR document data displayed in the OCR document data display area 811.
[0109] The correction instruction button 830 is used to instruct the system to correct the misrecognition results of the read OCR document data on a page-by-page basis. When user 141 presses the correction instruction button 830, a prompt is generated on a page-by-page basis, and the generation AI, such as a large-scale language model, is instructed to correct the misrecognition results of the OCR document data on a page-by-page basis. Once corrections have been instructed for all pages, the corrected OCR document data for all pages is displayed in the corrected OCR document data display area 831.
[0110] The registration button 840 is used to register the corrected OCR document data for all pages. When user 141 presses the registration button 840, information based on the analysis results (technical field, technical content) is added to each of the corrected OCR document data for all pages displayed in the corrected OCR document data display area 831. As a result, database document data is generated for all the corrected OCR document data for all pages displayed in the corrected OCR document data display area 831. The generated database document data is then stored in the database area corresponding to the attributes and the attributes (product range) displayed in the attribute and analysis result display area 812.
[0111] (3) Specific Examples of Prompts Next, specific examples of prompts (system prompt, assistant prompt, user prompt) generated by the database generation unit 420 will be described.
[0112] Figure 9A shows an example of a system prompt. As described above, the modification unit 424 of the database generation unit 420 writes the rules for correcting typographical errors as a system prompt. The example in Figure 9A shows how the modification unit 424 of the database generation unit 420 specifies the role and work content of the generation AI, such as a large-scale language model, as a system prompt 910, and also writes six rules for correcting typographical errors, from condition 1 to condition 6.
[0113] In the example shown in Figure 9A, condition 5 of the system prompt 910 includes a rule stating that line breaks within each page of the corrected OCR document data should occur at the positions where "symbol" is added. This rule is included because, when a generation AI such as a large-scale language model corrects the misrecognition results of OCR document data on a page-by-page basis, the line correspondence between the original OCR document data and the corrected OCR document data may become ambiguous. In other words, by including the line break positions within the page in the system prompt 910, the line correspondence between the original OCR document data and the corrected OCR document data can be clarified.
[0114] Figure 9B shows an example of an assistant prompt and a user prompt. As described above, the modification unit 424 of the database generation unit 420 displays "document data to be referenced when making modifications" as an assistant prompt. The modification unit 424 of the database generation unit 420 also displays "document data to be modified" as a user prompt.
[0115] The example in Figure 9B shows how, in the assistant prompt 920, the following are listed as "document data to refer to when making corrections": • Reference document data generated for the target page of the OCR document data, • The page immediately preceding the target page of the OCR document data, and • The page immediately following the target page of the OCR document data.
[0116] The example in Figure 9B shows how, in the user prompt 930, the "document data to be corrected" is described as: • The target page of the OCR document data.
[0117] (4) Specific examples of various types of information used in processing by the database generation unit 420 Next, specific examples of various types of information used in the database generation process by the database generation unit 420 (target pages of OCR document data, summary of target pages, list of search results, reference document data, corrected OCR document data) will be described.
[0118] Figure 10A shows an example of a target page in OCR document data. In the example in Figure 10A, superimposed data 1010 is shown, in which the original handwritten document is overlaid on the OCR document data, so that the misrecognition results can be seen.
[0119] In the example in Figure 10A, "Akadoro" in the first and sixth lines is mistakenly identified as "Akazawa". Also in the example in Figure 10A, "Previously Reported" in the seventh line is mistakenly identified as "False Report". Furthermore, in the example in Figure 10A, "First Report" in the eighth line is mistakenly identified as "Forecast".
[0120] Figure 10B shows an example of a summary of the target page, a list of search results, and reference document data. In Figure 10B, the summary of the target page 1020 shows the summary obtained by analyzing the target page of the OCR document data shown in Figure 10A.
[0121] In Figure 10B, the search results list 1030 shows the search results when a search is performed based on the summary 1020 of the target page. As shown in Figure 10B, the search results list 1030 is arranged in descending order of similarity, along with the similarity score, for DB document data that are similar to the summary of the target page of the OCR document data among the DB document data included in the search range.
[0122] In Figure 10B, the reference document data 1040 shows the reference document data generated by combining the top three pages with the highest similarity among the pages of the DB document data included in the search results list 1030.
[0123] Figure 10C shows an example of corrected OCR document data. In Figure 10C, the corrected OCR document data 1050 has "Akazawa" corrected to "Akadoro" in the first and sixth lines, "false report" corrected to "previously reported" in the seventh line, and "forecast" corrected to "first report" in the eighth line.
[0124] Thus, according to the information processing device 140 of the first embodiment, even words that were previously difficult to correct by generating AI, such as those registered in a dictionary, can be corrected by providing appropriate reference document data, allowing the generating AI to determine that they are misrecognized and make corrections.
[0125] <Summary> As is clear from the above explanation, the information processing device 140 according to the first embodiment: - Identifies the search range of the database based on the analysis results obtained by analyzing the attributes and content of the OCR document data to be processed. - Searches for DB document data corresponding to the OCR document data to be processed from the identified search range. - Generates a prompt that designates the OCR document data to be processed as "document data to be corrected" and the reference document data generated based on the searched DB document data as "document data to be referenced when correcting". Using the generated prompt, instructs the generation AI, such as a large-scale language model, to correct the misrecognition result of the OCR document data to be processed. - Updates the database by adding information based on the analysis results to the corrected OCR document data whose misrecognition result has been corrected by the generation AI, such as a large-scale language model, and storing it in an area within the database corresponding to the attributes of the OCR document data to be processed.
[0126] Thus, in this embodiment, in the case of generation AI such as large-scale language models, in order to correct misrecognition results, information such as information on a specific technical field and advanced expertise may be required, so that: - DB document data containing information such as information on a specific technical field and advanced expertise is prepared in advance; - When correcting the misrecognition results of OCR document data, the search range is narrowed based on the attributes and analysis results; - DB document data corresponding to the OCR document data is searched from the DB document data included in the narrowed search range; - Reference document data is generated based on the searched DB document data; and - This reference document data is provided to the generation AI.
[0127] This makes it possible to provide the generating AI with information suitable for correcting misrecognition results in OCR document data. As a result, the generating AI can appropriately correct the misrecognition results.
[0128] In other words, according to the first embodiment, it is possible to provide a technology for appropriately correcting document data using generation AI and generating a database.
[0129] [Second Embodiment] In the first embodiment described above, when generating reference document data, the configuration was to combine the pages of the top three DB document data with the highest similarity among the retrieved DB document data. However, the number of DB document data pages used for combining is not limited to three. Alternatively, the reference document data may be generated without combining, using the top one page.
[0130] In the first embodiment described above, it was explained that the assistant prompt should contain one page before and one page after the target page of the OCR document data. However, the pages to be contained in the assistant prompt are not limited to one page before and one page after the target page of the OCR document data. For example, one page from either the before or after page may be contained, or multiple pages from both the before and after page may be contained.
[0131] In the first embodiment described above, the search range was determined based on the attributes of the OCR document data and the analysis results, but the method for determining the search range is not limited to this. The search range may be determined based on either the attributes of the OCR document data or the analysis results.
[0132] In the first embodiment described above, the OCR document data was described as being processed on a page-by-page basis. However, the processing is not limited to page by page and may be performed within a range that results in an appropriate number of tokens. In this case, the assistant prompt may include an appropriate range before and after the target range of the OCR document data.
[0133] In the first embodiment described above, the database document data is stored and classified based on attributes, but classification may also be based on other classification criteria besides attributes.
[0134] In the first embodiment described above, the attributes of the document data were exemplified as department (storage location for handwritten documents or OCR document data) and product range (product group handled by the department), but other attributes (for example, the creator of the handwritten document, the creator's affiliation, etc.) may also be included.
[0135] In the first embodiment described above, when analyzing the contents of the document data, the technical field and technical content were analyzed, but other analysis items (for example, technical name, method, background, etc.) may also be analyzed.
[0136] In the first embodiment described above, OCR document data was used as the processing target, but the processing target is not limited to OCR document data and may be other types of document data.
[0137] It should be noted that the present invention is not limited to the configurations shown in the above embodiments, including combinations with other elements. These aspects can be modified without departing from the spirit of the present invention and can be appropriately determined according to their application.
[0138] This application claims priority based on Japanese Patent Application No. 2024-192007, filed on 31 October 2024, which is incorporated herein by reference to the entire contents of the said Japanese Patent Application.
[0139] 100: Database generation system 110, 120: Information processing device 130: Server device 131: Data storage unit for product range A 132: Data storage unit for product range B 133: Data storage unit for product range C 134: Data storage unit for product range D 140: Information processing device 410: Initial database generation unit 420: Database generation unit 421: OCR document data acquisition unit 422: Search range identification unit 423: Search unit 424: Modification unit 425: Storage unit 600: Initial database generation screen 800: Database generation screen
Claims
1. An information processing device comprising: an identification unit that identifies a search range in a database based on the attributes of the document data to be processed or the content of the document data to be processed as analysis results; a search unit that searches for document data corresponding to the document data to be processed from the identified search range; a modification unit that instructs a generating AI to modify the document data to be processed using prompts that designate the document data to be processed as document data to be modified and reference document data generated based on the searched document data as document data to be referenced when modifying the document data to be processed; and a storage unit that updates the database by adding information based on the analysis results to the document data to be processed modified by the generating AI and storing it in an area of the database corresponding to the attributes of the document data to be processed.
2. The information processing apparatus according to claim 1, wherein the specified unit analyzes at least one of the following: technical field, technical content, technical name, method, and background of the document data to be processed.
3. The information processing apparatus according to claim 1 or 2, wherein the attributes of the document data to be processed include at least the department where the document data to be processed is stored and the range of products handled by that department.
4. The information processing apparatus according to any one of claims 1 to 3, wherein the modification unit instructs the document data to be processed to be modified on a page-by-page basis.
5. The information processing apparatus according to claim 4, wherein when the modification unit instructs the generating AI to modify the page to be processed of the document data to be processed, it transmits the pages before and after the page to be processed to the generating AI.
6. The information processing apparatus according to any one of claims 1 to 5, further comprising an initial database generation unit that generates an initial database before the database is updated, wherein the initial database generation unit analyzes the contents of document data stored in the initial database, adds information based on the analysis results, and stores the data in an area corresponding to the attributes of the document data.
7. A database generation method in which a computer performs the following steps: specifying a search range for a database based on the attributes of the document data to be processed or the results of an analysis of the content of the document data to be processed; searching for document data corresponding to the document data to be processed from the specified search range; instructing a generating AI to modify the document data to be processed using prompts that designate the document data to be processed as the document data to be modified and reference document data generated based on the searched document data as the document data to be referenced when modifying the document data; and updating the database by adding information based on the analysis results to the document data to be processed modified by the generating AI and storing it in an area of the database corresponding to the attributes of the document data to be processed.
8. A database generation program that causes a computer to perform the following steps: identify a search range in a database based on the attributes of the document data to be processed or the results of an analysis of the content of the document data to be processed; search for document data corresponding to the document data to be processed from the identified search range; instruct a generating AI to modify the document data to be processed using prompts that designate the document data to be modified as the document data to be modified and reference document data generated based on the searched document data as the document data to be referenced when modifying the document data; and update the database by adding information based on the analysis results to the document data to be processed modified by the generating AI and storing it in an area of the database corresponding to the attributes of the document data to be processed.