Natural language processing device, natural language processing method, and natural language processing program

The natural language processing device and method automate the generation of pre-learning and evaluation data using correspondence matrices and ratio data, addressing the inefficiencies in manual comparison and combination of document sentences, thereby enhancing the accuracy and efficiency of machine learning processes.

WO2024180720A1PCT designated stage expired Publication Date: 2024-09-06NT T INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2023/007594
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-01
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The process of creating pre-learning and evaluation data for natural language processing by comparing higher-level and lower-level documents is time-consuming and labor-intensive, especially when identifying corresponding sentences and combining them for machine learning purposes.

Method used

A natural language processing device and method that generates pre-learning and evaluation data using a correspondence matrix between higher-level and lower-level documents, along with a ratio data file, to automate the creation of text data for machine learning algorithms, such as those utilizing BERT models, thereby reducing manual effort and improving data accuracy.

Benefits of technology

Facilitates the efficient generation of pre-learning and evaluation data, reducing manual effort and improving the accuracy of machine learning models by automating the identification and combination of corresponding sentences, thus streamlining the natural language processing workflow.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2023007594_06092024_PF_FP
    Figure JP2023007594_06092024_PF_FP
Patent Text Reader

Abstract

Provided is a natural language processing device including a training / evaluation data generation unit. In this invention, the training / evaluation data generation unit generates pretraining data from high-level document / low-level document correspondence matrix, which represents the correspondence between text in a high-level document and text in a low-level document, and ratio data, which represents a ratio between pretraining data and evaluation data.
Need to check novelty before this filing date? Find Prior Art

Description

Natural language processing device, natural language processing method, and natural language processing program

[0001] The present invention relates to a natural language processing device, a natural language processing method, and a natural language processing program.

[0002] When creating business documents that describe goals and how to achieve them, it is necessary to check whether the methods for achieving the goals are described. If the goals are written in a higher-level document and the methods for achieving them are written in a lower-level document, the multiple documents will need to be compared to check.

[0003] Jacob Devlin, Ming-Wei Chang, Kenton Lee, Kristina Toutanova: "BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding", Proceedings of NAACL-HLT 2019, pages 4171-4186. Pretrained Japanese BERT models released.<URL:https: / / www.nlp.ecei.tohoku.ac.jp / news-release / 3284 / >

[0004] One method for reducing the effort required for checking is to use machine learning. In this case, it is necessary to create pre-training data for machine learning and evaluation data to evaluate the accuracy of the machine learning. Creating the pre-training data and evaluation data requires a great deal of effort, as it requires comparing the higher-level document with the lower-level document, finding where in the lower-level document the specific method for achieving the goals written in the higher-level document is described, and then extracting and combining the two sentences.

[0005] The present invention has been made in light of the above circumstances, and its purpose is to provide a natural language processing device, a natural language processing method, and a natural language processing program that make it easy to create pre-training data and evaluation data.

[0006] One aspect of the present invention is a natural language processing device. The natural language processing device includes a training / evaluation data generation unit. The training / evaluation data generation unit generates pre-training data from a higher-level document / lower-level document correspondence matrix that represents correspondences between sentences in a higher-level document and sentences in a lower-level document, and ratio data that represents a ratio between pre-training data and evaluation data.

[0007] One aspect of the present invention is a natural language processing method that generates pre-training data from a higher-level document-lower-level document correspondence matrix that indicates correspondences between sentences in a higher-level document and sentences in a lower-level document, and ratio data that indicates a ratio between pre-training data and evaluation data.

[0008] One aspect of the present invention is a natural language processing program that causes a computer having a processor and a storage device to execute at least some of the functions of the components of the natural language processing device described above.

[0009] According to the present invention, a natural language processing device, a natural language processing method, and a natural language processing program are provided that facilitate the creation of pre-training data and evaluation data.

[0010] FIG. 1 is a block diagram showing a functional configuration of a natural language processing apparatus according to an embodiment. FIG. 2 is a diagram showing an example of a higher-level document-subordinate document correspondence matrix. FIG. 3 is a diagram showing an example of a reinforcement training data matrix. FIG. 4 is a diagram showing how a higher-level document-subordinate document correspondence matrix and a reinforcement training data matrix are created. FIG. 5 is a diagram showing how ratio data of pre-training data and evaluation data is created. FIG. 6 is a flowchart showing the flow of natural language processing executed by a natural language processing apparatus according to an embodiment. FIG. 7 is a flowchart showing the flow of processing by a training / evaluation data generation unit to generate pre-training data and evaluation data. FIG. 8 is a flowchart showing the flow of processing by a training / evaluation data generation unit to generate reinforcement pre-training data. FIG. 9 is a diagram showing the processing by a training / evaluation data generation unit to generate pre-training data, evaluation data, and reinforcement pre-training data. FIG. 10 is a diagram showing a specific example of processing to generate pre-training data, evaluation data, and reinforcement pre-training data. FIG. 11 is a block diagram showing the hardware configuration of a natural language processing apparatus according to an embodiment.

[0011] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A natural language processing apparatus according to an embodiment of the present invention is an apparatus that performs natural language processing using machine learning technology.

[0012] (Functional Configuration) First, the functional configuration of a natural language processing apparatus 10 according to an embodiment will be described with reference to Fig. 1. Fig. 1 is a block diagram showing the functional configuration of a natural language processing apparatus 10 according to an embodiment.

[0013] The natural language processing apparatus 10 includes a learning / evaluation data generation unit 11 , a machine learning unit 12 , and an inference unit 13 .

[0014] The learning and evaluation data generating unit 11 receives as input data a matrix file of correspondence between upper and lower documents, a reinforcement learning data matrix file, and a ratio data file.

[0015] The higher-level document / lower-level document correspondence matrix file stores a higher-level document / lower-level document correspondence matrix that indicates the correspondence between sentences in a higher-level document and sentences in a lower-level document.

[0016] The supplementary training data matrix file stores a supplementary training data matrix that indicates the correspondence between sentences of the first and second items of a lower-level document.

[0017] The ratio data file stores ratio data that indicates the ratio between the pre-learning data and the evaluation data generated by the learning and evaluation data generating unit 11 .

[0018] The learning / evaluation data generation unit 11 generates pre-learning data and evaluation data from the higher-level document / lower-level document correspondence matrix and the ratio data. The learning / evaluation data generation unit 11 also generates reinforcement pre-learning data from the reinforcement learning data matrix. The pre-learning data, evaluation data, and reinforcement pre-learning data are all text data.

[0019] The machine learning unit 12 generates machine learning model data by a machine learning algorithm that uses the pre-learning data and the reinforcement pre-learning data as input. The machine learning model data is text data.

[0020] The inference unit 13 generates inference result data representing an inference result as to whether or not there is a correspondence between a sentence in a higher-level document and a sentence in a lower-level document, using a machine learning algorithm that receives the evaluation data and the machine learning model data as input.

[0021] For example, BERT described in Non-Patent Document 1 and Non-Patent Document 2 can be applied to the machine learning algorithm of the machine learning unit 12 and the inference unit 13 .

[0022] (Input Data) The higher-level document-lower-level document correspondence matrix file stores a higher-level document-lower-level document correspondence matrix that indicates the correspondence between sentences in a higher-level document and sentences in a lower-level document. The higher-level document-lower-level document correspondence matrix is ​​shown in FIG.

[0023] The title column contains the sentences for required item 1, required item 2, required item 3, required item 4, ..., required item M. For example, required item m (m = 1, 2, 3, 4, ..., M) is the target. The title column is the first column excluding the first cell.

[0024] The title line contains statements for action item 1, action item 2, action item 3, action item 4, ..., action item N. For example, action item n (n = 1, 2, 3, 4, ..., N) is a realization method. The title line is the first line excluding the first cell.

[0025] Each cell in m rows and n columns contains a value of 0 or 1. A cell value of 1 indicates that there is a correspondence between required item m and action item n, and a cell value of 1 indicates that there is no correspondence.

[0026] The reinforcement training data matrix file stores a reinforcement training data matrix that represents the correspondence between the sentences of the first and second items of a subdocument. An example of the reinforcement training data matrix is ​​shown in Figure 3. Here, the first item is an action item, and the second item is an explanation.

[0027] The title column contains sentences from Explanation 1, Explanation 2, Explanation 3, Explanation 4, ..., Explanation M. For example, Explanation m (m = 1, 2, 3, 4, ..., M) is a required item.

[0028] In the title line, a sentence for action item 1, a sentence for action item 2, a sentence for action item 3, a sentence for action item 4, . . . , a sentence for action item N are entered.

[0029] Each cell in m rows and n columns contains a value of 0 or 1. A cell value of 1 indicates that there is a correspondence between explanation m and action item n, and a cell value of 1 indicates that there is no correspondence.

[0030] The ratio data file contains ratio data that indicates the ratio between the pre-learning data and the evaluation data generated by the learning and evaluation data generating unit 11. For example, the ratio data file is a text file.

[0031] First, the operator creates a matrix file of correspondence between higher-level documents and lower-level documents, a reinforcement learning data matrix, and a ratio data file to be input to the learning and evaluation data generating unit 11 .

[0032] The creation of the higher-level document-lower-level document correspondence matrix file and the supplementary learning data matrix file will be described with reference to Fig. 4. First, as a first preparation, the operator creates one higher-level document and two lower-level documents, i.e., a first lower-level document and a second lower-level document.

[0033] The upper-level document lists required items. In this example, the upper-level document lists four required items, Required Item 1 to Required Item 4. The first lower-level document lists action items. In this example, the first lower-level document lists four action items, Action Item 1 to Action Item 4. The second lower-level document lists the chapter structure and the relationship between explanations and action items. In this example, Chapter 1 contains Explanation 1 and Explanation 2, and Chapter 2 contains Explanation 3. Furthermore, Explanation 1 contains Action Item 1 and Action Item 2, Explanation 2 contains Action Item 3, and Explanation 3 contains Action Item 4.

[0034] Next, as a second preparation, a higher-level document-lower-level document correspondence matrix file and a supplementary learning data matrix file are created from the higher-level document, the first lower-level document, and the second lower-level document created in the first preparation.

[0035] In creating a higher-level document-subordinate document correspondence matrix file, the operator first creates a correspondence matrix file by entering a statement for each action item in each cell of the title row and a statement for each required item in each cell of the title column. Next, the operator determines whether or not there is a correspondence between required item m (m = 1, 2, 3, 4) and action item n (n = 1, 2, 3, 4). If the operator determines that there is a correspondence between required item m and action item n, the operator enters a 1 in the cell in row m, column n. Conversely, if the operator determines that there is no correspondence between required item m and action item n, the operator enters a 0 in the cell in row m, column n. Once 0s or 1s have been entered into all cells in row m, column n, the higher-level document-subordinate document correspondence matrix file is complete.

[0036] In creating a supplementary training data matrix file, the operator first creates a correspondence matrix file by entering a sentence for each action item in each cell in the title row and a sentence for each explanation in each cell in the title column. Next, the operator determines whether there is a correspondence between explanation m (m = 1, 2, 3) and action item n (n = 1, 2, 3, 4). If the operator determines that there is a correspondence between explanation m and action item n, the operator enters a 1 in the cell in row m and column n. Conversely, if the operator determines that there is no correspondence between explanation m and action item n, the operator enters a 0 in the cell in row m and column n. Once 0s or 1s have been entered into all cells in row m and column n, the supplementary training data matrix file is complete.

[0037] The operator inputs the thus created upper-level document / lower-level document correspondence matrix file and the supplementary learning data matrix file into the learning and evaluation data generating unit 11 .

[0038] Next, creation of a ratio data file will be described with reference to FIG. 5 . The ratio data file contains ratio data representing the ratio between pre-learning data and evaluation data generated by the learning / evaluation data generation unit 11. For example, the ratio data file is a text file. The operator creates the ratio data file by inputting and saving ratio data representing the ratio XX:YY between pre-learning data and evaluation data into the text file. The operator inputs the created ratio data file into the learning / evaluation data generation unit 11.

[0039] (Natural Language Processing) Next, the natural language processing executed by the natural language processing apparatus 10 will be described with reference to Fig. 6. Fig. 6 is a flowchart showing the flow of the natural language processing executed by the natural language processing apparatus 10 according to the embodiment.

[0040] In step S1, the learning and evaluation data generating unit 11 receives a higher-level document-lower-level document correspondence matrix file, a supplementary learning data matrix file, and a ratio data file.

[0041] In step S2, the learning / evaluation data generating unit 11 generates reinforcement pre-learning data from the received reinforcement learning data matrix file. The process of generating reinforcement pre-learning data will be described in detail later.

[0042] In step S3, the learning / evaluation data generating unit 11 generates pre-learning data and evaluation data from the received higher-level document / lower-level document correspondence matrix file and ratio data file. The process of generating the pre-learning data and evaluation data will be described in detail later.

[0043] In step S4, the machine learning unit 12 generates machine learning model data using a machine learning algorithm that uses the pre-learning data and the reinforcement pre-learning data as input.

[0044] In step S5, the inference unit 13 generates inference result data representing the inference result of whether or not there is a correspondence between the sentences in the higher-level document and the sentences in the lower-level document using a machine learning algorithm that inputs the evaluation data and the machine learning model data.

[0045] (Process for Generating Pre-Learning Data and Evaluation Data) Next, the process for generating pre-learning data and evaluation data executed by the learning / evaluation data generation unit 11 will be described with reference to Fig. 7. Fig. 7 is a flowchart showing the flow of the process for generating pre-learning data and evaluation data executed by the natural language processing apparatus 10 according to the embodiment. First, integer-type arguments m and n, and character string-type argument X are prepared in advance.

[0046] In step S11, a ratio data file is opened, and the ratio between the pre-learning data and the evaluation data is set according to the stored ratio data.

[0047] In step S12, the upper-level document / lower-level document correspondence matrix file is opened.

[0048] In step S13, 1 is assigned to the argument m, and 1 is assigned to the argument n.

[0049] In step S14, it is determined whether the value of the argument m is greater than the vertical size, i.e., the number of rows, of the upper-level document / lower-level document correspondence matrix. If the result of the determination is false, the process proceeds to step S15.

[0050] In step S15, the sentence in the title of the mth row is extracted from the upper-level document / lower-level document correspondence matrix. The extracted sentence is linked to the argument X. Then, the delimiter "@" is linked to the argument X.

[0051] In step S16, the sentence in the title of the nth column is extracted from the upper-level document / lower-level document correspondence matrix. The extracted sentence is linked to the argument X. Then, the delimiter "@" is linked to the argument X.

[0052] In step S17, the value of the cell in row m and column n is extracted from the upper-level document / lower-level document correspondence matrix. The extracted value is linked to the argument X. Then, the delimiter "," is linked to the argument X.

[0053] In step S18, the value of the argument n is incremented by one.

[0054] In step S19, it is determined whether the value of argument n is equal to the horizontal size of the upper-level document-lower-level document correspondence matrix, i.e., the number of columns. If the result of the determination is false, the process returns to step S15, and steps S15 to S18 are performed again. In other words, as long as the result of the determination in step S19 is false, the process of steps S15 to S18 is repeated. If the result of the determination is true, the process proceeds to step S20.

[0055] In step S20, either learning or evaluation is randomly designated according to the ratio set in step S11. If learning is designated, the process proceeds to step S21, and if evaluation is designated, the process proceeds to step S22.

[0056] In step S21, the character string contained in the argument X is output to the pre-learning data file, and the character string contained in the argument X is cleared.

[0057] In step S22, the character string contained in the argument X is output to the evaluation data file, and the character string contained in the argument X is cleared.

[0058] In step S23, the value of argument m is incremented by 1, and the process returns to step S14. If the result of the determination in step S14 is false, the processes of steps S15 to S23 are performed again. That is, the processes of steps S14 to S23 are repeated while the result of the determination in step S14 is false. If the result of the determination in step S14 is true, the process proceeds to step S24.

[0059] In step S23, the pre-learning data file and the evaluation data file are saved and closed, and the process of generating pre-learning data and evaluation data is completed.

[0060] The upper part of FIG. 9 shows a schematic diagram of how the learning and evaluation data generating unit 11 generates pre-learning data and evaluation data from the higher-level document / lower-level document correspondence matrix and ratio data through the above-described processing.

[0061] The upper part of Figure 9 shows how, in response to the input of the higher-level document-subordinate document correspondence matrix and ratio data, the learning / evaluation data generation unit 11 processes the strings of characters that combine the sentences in each title column and each title row of the higher-level document-subordinate document correspondence matrix, specifying whether they are output for learning or evaluation for each row, and then sorting them into pre-learning data and evaluation data according to the output destination and outputting them.

[0062] (Generation Process of Reinforcement Pre-Learning Data) Next, the generation process of reinforcement pre-learning data executed by the learning / evaluation data generation unit 11 will be described with reference to Fig. 8. Fig. 8 is a flowchart showing the flow of the generation process of reinforcement pre-learning data executed by the natural language processing apparatus 10 according to the embodiment. First, integer-type arguments m and n, and character string-type argument X are prepared in advance.

[0063] In step S31, a supplementary learning data matrix file is opened.

[0064] In step S32, 1 is assigned to the argument m, and 1 is assigned to the argument n.

[0065] In step S33, it is determined whether the value of the argument m is greater than the vertical size, i.e., the number of rows, of the reinforcement learning data matrix. If the result of the determination is false, the process proceeds to step S34.

[0066] In step S34, the sentence in the title of the nth row is extracted from the supplementary learning data matrix. The extracted sentence is linked to the argument X. Then, the delimiter "@" is linked to the argument X.

[0067] In step S35, the sentence in the title of the nth column is extracted from the supplementary learning data matrix. The extracted sentence is linked to the argument X. Then, the delimiter "@" is linked to the argument X.

[0068] In step S36, the value of the cell in row m and column n is extracted from the supplementary learning data matrix. The extracted value is linked to the argument X. Then, the delimiter "," is linked to the argument X.

[0069] In step S37, the value of the argument n is incremented by one.

[0070] In step S38, it is determined whether the value of the argument n is equal to the horizontal size of the reinforcement learning data matrix, i.e., the number of columns. If the result of the determination is false, the process returns to step S34, and the processes of steps S34 to S37 are performed again. In other words, as long as the result of the determination in step S38 is false, the processes of steps S34 to S37 are repeated. If the result of the determination is true, the process proceeds to step S39.

[0071] In step S39, the character string contained in the argument X is output to the supplementary pre-learning data file, and the character string contained in the argument X is cleared.

[0072] In step S40, the value of argument m is incremented by 1, and the process returns to step S33. If the result of the determination in step S33 is false, the processes of steps S34 to S40 are performed again. That is, the processes of steps S34 to S40 are repeated while the result of the determination in step S33 is false. If the result of the determination in step S33 is true, the process proceeds to step S41.

[0073] In step S41, the reinforcement pre-learning data file is saved and closed, and the process of generating reinforcement pre-learning data is completed.

[0074] The lower part of FIG. 9 shows a schematic diagram of how the learning and evaluation data generating unit 11 generates reinforcement pre-learning data from the reinforcement learning data matrix through the above-described processing.

[0075] The lower part of Figure 9 shows how, in response to the input of the reinforcement learning data matrix, the learning / evaluation data generation unit 11 processes the input, and a string of characters combining the sentences in each title column and each title row of the reinforcement learning data matrix is ​​output to the reinforcement pre-learning data.

[0076] (Specific Example of Process for Generating Pre-Learning Data, Evaluation Data, and Reinforcement Pre-Learning Data) A specific example of the process for generating the pre-learning data, evaluation data, and reinforcement pre-learning data described above is illustrated in Fig. 10. Fig. 10 is a diagram showing a specific example of the process for generating pre-learning data, evaluation data, and reinforcement pre-learning data.

[0077] The higher-level document lists "take security measures," "take disaster prevention measures," "take measures to prevent emails from being sent to the wrong person," and so on as "essential items."

[0078] The lower-level document contains, under [Explanation], items such as "Malware can be detected using virus scanning software," "Information leaks can be prevented by setting access rights to files," "Recovery work can be carried out by taking regular backups," and "Email address check function can prevent emails from being sent," etc. Also, under [Implementation Items], it contains items such as "Install virus scanning software," "Limit file access rights to insiders," "Regularly back up data," and "Turn on the email address check function."

[0079] The parent-child document correspondence matrix is ​​a correspondence matrix between the sentences in the parent document's [Required Items] and the [Implementation Items] in the subordinate document. The title column contains entries such as "Implement security measures," "Implement disaster prevention measures," and "Implement measures to prevent emails from being sent to the wrong person." The title row contains entries such as "Install virus scanning software," "Limit file access privileges to insiders," "Regularly back up data," and "Turn on the email address check function." Each cell contains a 0 or 1 depending on the correspondence between the [Required Items] and the [Implementation Items].

[0080] A string of characters, each combining a sentence of [Required Items] and [Implementation Items], is designated as either learning or evaluation, and is set as pre-learning data (text data) or evaluation data (text data) according to the designation. For example, the pre-learning data consists of the text data "Take security measures @ Install virus scanning software. @1, Take security measures @ Limit file access privileges to insiders. @1, Take security measures @ Regularly back up data. @1, ...", while the evaluation data consists of the text data "Take disaster prevention measures @ Install virus scanning software. @0, Take disaster prevention measures @ Limit file access privileges to insiders. @0, Take disaster prevention measures @ Regularly back up data. @1, ...".

[0081] The supplementary learning data matrix is ​​a correspondence matrix between the sentences in the [Explanation] and [Actions] of the lower-level documents. The title column contains entries such as "Malware can be detected using virus scanning software," "Information leaks can be prevented by setting access rights to files," "Recovery work can be performed by taking regular backups," and "Email address check function can prevent emails from being sent." The title row contains entries such as "Install virus scanning software," "Limit file access rights to insiders," "Regularly back up data," and "Turn on email address check function." Each cell contains a 0 or 1 depending on the correspondence between the [Explanation] and [Actions].

[0082] The strings that combine the sentences [Explanation] and [Action Items] on each line are set as supplementary pre-learning data (text data). For example, the supplementary pre-learning data consists of the following text data: "Malware can be detected using virus scanning software. @Install virus scanning software. @1, Malware can be detected using virus scanning software. @Limit file access permissions to insiders. @1, Malware can be detected using virus scanning software. @Regularly back up data. @1, ..."

[0083] (Hardware Configuration) Next, a description will be given of the hardware configuration of the natural language processing apparatus 10. Here, an example in which the natural language processing apparatus 10 is configured by a computer 20 will be described.

[0084] 11 shows the hardware configuration of the computer 20 that constitutes the natural language processing device 10. The computer 20 has a processor 21, a read-only memory (ROM) 22, a random access memory (RAM) 23, an auxiliary storage device 24, and an input / output interface 25.

[0085] The processor 21 , ROM 22 , RAM 23 , auxiliary storage device 24 , and input / output interface 25 are electrically connected to one another via a bus 26 , and exchange data via the bus 26 .

[0086] The processor 21 is configured by a general-purpose hardware processor including, for example, a CPU (Central Processing Unit), a GPU (Graphical Processing Unit), etc. The processor 21 controls the ROM 22, the RAM 23, the auxiliary storage device 24, and the input / output interface 25 as a whole.

[0087] The ROM 22 is a non-volatile memory that constitutes part of the main storage device. The ROM 22 non-temporarily stores a startup program required when the processor 21 is started. The processor 21 starts up by executing the program in the ROM 22. The ROM 22 is configured, for example, by an EPROM (Erasable Programmable Read Only Memory), and stores various startup settings in addition to the startup program.

[0088] The RAM 23 is a volatile memory that constitutes part of the main storage device. The RAM 23 temporarily stores programs required for processing by the processor 21 and data required for executing the programs. The processor 21 executes the programs in the RAM 23 to perform calculations on the data in the RAM 23 and store the calculation results in the RAM 23.

[0089] The auxiliary storage device 24 is configured by a non-volatile memory such as an HDD (Hard Disk Drive) or an SSD (Solid State Drive). The auxiliary storage device 24 non-temporarily stores programs to be executed by the processor 21 and data required for executing the programs. The processor 21 loads the programs and data in the auxiliary storage device 24 into the RAM 23 and executes the programs to perform various functions.

[0090] The input / output interface 25 is connected to an external input device 31, an output device 32, etc., and enables input of information from the input device 31 and output of information to the output device 32. For example, the input / output interface 25 may be a wired interface or a wireless interface. The wired interface includes a port to which a device is connected, etc. The wireless interface includes Bluetooth (registered trademark), Wi-Fi (registered trademark), etc.

[0091] The input device 31 may include a keyboard, a mouse, a touch panel, a receiving device, a disk drive, etc. The input device 31 is not limited to these and may include any other input device. The output device 32 may include a display, a transmitting device, a disk drive, etc. The output device 32 is not limited to these and may include any other output device. The input device 31 and the output device 32 may be configured as an input / output device 33 that has the functions of both the input device 31 and the output device 32.

[0092] The input data, that is, the upper-level document / lower-level document correspondence matrix file, the supplementary learning data matrix file, and the ratio data file, are input to the learning and evaluation data generating unit 11 via the input device 31 .

[0093] The program non-temporarily stored in the auxiliary storage device 24 is provided to the computer 20, for example, via a recording medium 34 on which the program is non-temporarily recorded and which can be read by the computer 20. Such a recording medium 34 is called a non-temporarily computer-readable recording medium. Non-temporarily computer-readable recording media include disks such as flexible disks, optical disks (CD-ROM, CD-R, DVD-ROM, DVD-R, etc.), and magneto-optical disks (MO, etc.), as well as semiconductor memories.

[0094] The programs non-temporarily stored in the auxiliary storage device 24 include a natural language processing program. The natural language processing program causes the computer 20 to execute at least some of the functions of the components of the natural language processing device 10, namely, the learning / evaluation data generation unit 11, the machine learning unit 12, and the inference unit 13.

[0095] If the recording medium 34 is a disk, the program non-temporarily stored in the auxiliary storage device 24 is read into the auxiliary storage device 24 via a disk drive, which is the input device 31, and the input / output interface 25, or if the recording medium 34 is a semiconductor memory, via a port, which is the input / output interface 25, and non-temporarily stored therein. Alternatively, the program may be stored in a server on a network, downloaded from the server, and non-temporarily stored in the auxiliary storage device 24.

[0096] When the computer 20 starts up, the processor 21 executes a program in the ROM 22 and loads and starts the OS into the RAM 23. Under control of the OS, the processor 21 monitors input instructions, connections to external devices, and the like. Under control of the OS, the processor 21 also sets up a program area and a data area in the RAM 23. In response to an input instruction to start the natural language processing device 10, the processor 21 loads a natural language processing program from the auxiliary storage device 24 into the program area of ​​the RAM 23, and loads data required for executing the natural language processing program from the auxiliary storage device 24 into the data area of ​​the RAM 23. The processor 21 calculates data in the data area according to the natural language processing program and writes the calculation results to the data area. Through these operations, the processor 21, RAM 23, auxiliary storage device 24, input / output interface 25, and bus 26 work together to execute at least some of the functions of the components of the natural language processing device 10, namely, the learning / evaluation data generation unit 11, the machine learning unit 12, and the inference unit 13.

[0097] (Effect) In this embodiment, the learning / evaluation data generation unit 11 generates pre-learning data and evaluation data from the higher-level document / lower-level document correspondence matrix and ratio data. The higher-level document / lower-level document correspondence matrix is ​​created by inputting a 1 if there is a correspondence and a 0 if there is no correspondence to a correspondence matrix in which the title row contains sentences about the required items (goals) of the higher-level document and the title column contains sentences about the implementation details (implementation methods) of the lower-level document. This eliminates the need to compare the higher-level document and the lower-level document, saving the effort of extracting the two sentences.

[0098] Furthermore, the learning / evaluation data generation unit 11 generates supplementary pre-learning data from the supplementary learning data matrix. This makes it possible to compensate for any lack of learning data, thereby improving the accuracy of inference. Note that the supplementary learning data matrix can be created easily, since it is created in the same way as the upper-level document / lower-level document correspondence matrix.

[0099] The present invention is not limited to the above-described embodiments, and various modifications can be made in the implementation stage without departing from the spirit of the invention. Furthermore, the embodiments may be implemented in appropriate combinations, in which case the combined effects can be obtained. Furthermore, the above-described embodiments include various inventions, and various inventions can be extracted by combining selected elements from the disclosed elements. For example, if the problem can be solved and the desired effect can be obtained even if some elements are deleted from all elements shown in the embodiments, the configuration from which these elements are deleted can be extracted as an invention.

[0100] 10: Natural language processing device 11: Learning and evaluation data generation unit 12: Machine learning unit 13: Inference unit 20: Computer 21: Processor 22: ROM 23: RAM 24: Auxiliary storage device 25: Input / output interface 26: Bus 31: Input device 32: Output device 33: Input / output device 34: Recording medium

Claims

1. A natural language processing device having a learning / evaluation data generation unit that generates pre-learning data from a higher-level document / lower-level document correspondence matrix that represents the correspondence between sentences in a higher-level document and sentences in a lower-level document, and ratio data that represents the ratio between pre-learning data and evaluation data.

2. The natural language processing device according to claim 1, wherein the learning / evaluation data generation unit generates, in addition to the pre-learning data, supplementary pre-learning data from a supplementary learning data matrix representing the correspondence between sentences of the first item and sentences of the second item of the lower-level document.

3. The natural language processing device according to claim 2, wherein the learning / evaluation data generation unit generates evaluation data from the higher-level document / lower-level document correspondence matrix and the ratio data in addition to the pre-learning data and the supplementary pre-learning data.

4. The natural language processing device according to claim 3, further comprising a machine learning unit that generates machine learning model data by a machine learning algorithm that uses the pre-learning data and the supplementary pre-learning data as input.

5. The natural language processing device according to claim 4, further comprising an inference unit that generates inference result data representing an inference result as to whether or not there is a correspondence between a sentence in the higher-level document and a sentence in the lower-level document, using a machine learning algorithm that inputs the evaluation data and the machine learning model data.

6. A natural language processing method for generating pre-training data from a higher-level document-lower-level document correspondence matrix that indicates the correspondence between sentences in a higher-level document and sentences in a lower-level document, and ratio data that indicates the ratio between pre-training data and evaluation data.

7. A natural language processing program that causes a computer having a processor and a storage device to execute at least some of the functions of the components of the natural language processing device according to any one of claims 1 to 5.