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

By segmenting and classifying words using a co-occurrence rate table, the method addresses the challenge of assigning vectors to polysemous words, improving analysis and translation accuracy.

JP7574857B2Active Publication Date: 2024-10-29FUJITSU LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2022558763
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-10-30
Publication Date
2024-10-29
Estimated Expiration
2040-10-30

AI Technical Summary

Technical Problem

Conventional methods struggle to assign appropriate vectors to polysemous words, leading to decreased accuracy in analysis and translation, particularly when distinguishing between different meanings of a word.

Method used

The method involves performing morphological analysis on input text to segment words, using a co-occurrence rate table to identify polysemous words and their meanings, and assigning vectors based on semantic classification to improve accuracy.

Benefits of technology

This approach allows for accurate assignment of vectors to polysemous words, enhancing the precision of analysis and translation by distinguishing between different meanings.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007574857000002
    Figure 0007574857000002
  • Figure 0007574857000003
    Figure 0007574857000003
  • Figure 0007574857000004
    Figure 0007574857000004
Patent Text Reader

Abstract

This information processing device executes a morphological analysis on input text so as to divide the input text into a plurality of words. The information processing device specifies a polysemous word among the plurality of words included in the input text and the meaning class of the polysemous word, on the basis of a cooccurrence table in which the cooccurrences of categories of polysemous words and single words differentiated for each meaning class are defined and the plurality of words included in the input text. The information processing device assigns a vector that corresponds to the meaning class of the polysemous word to the polysemous words included in the input text.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an information processing program and the like. [Background technology]

[0002] Word2Vec (Skip-Gram Model or CBOW) is a conventional technology that analyzes sentences and represents each word contained in a sentence as a vector. Words that are written differently but have similar meanings have the characteristic that their vector values ​​are similar. In the following explanation, word vectors are referred to as "word vectors." For example, Word2Vec represents word vectors in 200 dimensions.

[0003] A sentence vector is calculated by accumulating each word vector of multiple words that make up a sentence. In the following explanation, a sentence vector is denoted as a "sentence vector." Sentences that are similar in meaning, even if written differently, have the characteristic that the values ​​of their sentence vectors are similar. For example, the meaning of the sentence "I like apples" is the same as the meaning of the sentence "Apples are my favorite food," so the sentence vector of "I like apples" and the sentence vector of "Apples are my favorite food" will be similar.

[0004] There is also a technique called Poincare Embeddings that assigns word vectors (numerical values) to words. In this technique, words and their categories are defined in advance, and the words are embedded in the Poincare space based on the defined categories. In the Poincare space, a vector corresponding to the embedded word is assigned to the corresponding word. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] JP 2015-22398 A [Patent Document 2] JP 2018-206263 A Summary of the Invention [Problem to be solved by the invention]

[0006] However, the above-mentioned conventional techniques are unable to assign appropriate vectors to the multiple senses (meanings) of a polysemous word, which causes a problem of reduced accuracy in analysis and translation using vectors.

[0007] For example, the word "cool(1)" in the English sentence "Ichiro is cool" and the word "cool(2)" in the English sentence "This room is cool" have different semantics (meanings) of "cool." Note that the numbers in parentheses are added for convenience to distinguish between "cool" with different meanings.

[0008] If the same vector (numerical value) is assigned to "cool(1)" and "cool(2)" above, it will not be possible to properly assign a sentence vector to "Ichiro is cool." and "This room is cool."

[0009] Here, it is conceivable to set word vectors in advance for each semantic division for the multiple senses (meanings) of a polysemous word. In this case, when distinguishing whether "cool" in the English sentence "Ichiro is cool." corresponds to "cool(1)" or "cool(2)", it is estimated using an HMM (Hidden Markov Model) or the like. However, if the parameters of the HMM are set for all the semantic divisions of a polysemous word, the amount of information to be registered becomes enormous, which is not realistic. Note that measures are also needed for vectors of idioms that have different meanings, similar to polysemous words, by linking them with frequently occurring prepositions called stop words, such as "take off" and "take out".

[0010] In one aspect, the present invention aims to provide an information processing program, an information processing method, and an information processing device that can assign appropriate vectors and improve the accuracy of analysis using vectors. [Means for solving the problem]

[0011] In the first proposal, the computer is caused to execute the following process. The computer divides the input text into multiple words by executing morphological analysis on the input text. The computer identifies polysemous words and their semantic categories among the multiple words included in the input text based on a co-occurrence table that defines the co-occurrence rates of polysemous words and word categories distinguished by semantic category, and the multiple words included in the input text. The computer assigns vectors to the polysemous words included in the input text according to the semantic category of the polysemous words. Effect of the Invention

[0012] By assigning appropriate vectors, the accuracy of analysis using vectors can be improved. [Brief description of the drawings]

[0013] [Figure 1] FIG. 1 is a diagram for explaining the process of the information processing device according to the first embodiment. [Diagram 2] FIG. 2 is a functional block diagram of the information processing device according to the first embodiment. [Diagram 3] FIG. 3 is a diagram illustrating an example of a data structure of the first dictionary data. [Figure 4] FIG. 4 is a diagram illustrating an example of a data structure of the second dictionary data. [Diagram 5] FIG. 5 is a diagram illustrating an example of the first teacher data. [Figure 6] FIG. 6 is a diagram illustrating an example of the second teacher data. [Figure 7] FIG. 7 is a diagram illustrating an example of a data structure of the first co-occurrence rate table. [Figure 8]FIG. 8 is a diagram illustrating an example of a data structure of the second co-occurrence rate table. [Figure 9] FIG. 9 is a diagram illustrating an example of a data structure of the first category table. [Figure 10] FIG. 10 is a diagram illustrating an example of a data structure of the second category table. [Figure 11] FIG. 11 is a diagram illustrating an example of a data structure of the first vector table. [Figure 12] FIG. 12 is a diagram illustrating an example of a data structure of the second vector table. [Figure 13] FIG. 13 is a diagram for explaining the process of the allocation unit according to the first embodiment. [Figure 14] FIG. 14 is a flowchart (1) illustrating an example of a processing procedure of the information processing device according to the first embodiment. [Figure 15] FIG. 15 is a flowchart (2) illustrating an example of the processing procedure of the information processing device according to the first embodiment. [Figure 16] FIG. 16 is a diagram (1) for explaining vector dimensionality reduction. [Figure 17] FIG. 17 is a diagram (2) for explaining vector dimensionality reduction. [Figure 18] FIG. 18 is a diagram for explaining the process of the information processing device according to the second embodiment. [Figure 19] FIG. 19 is a functional block diagram of an information processing device according to the second embodiment. As shown in FIG. [Figure 20] FIG. 20 is a diagram illustrating an example of the data structure of a base file. [Figure 21] FIG. 21 is a diagram illustrating an example of a data structure of the conversion table. [Figure 22] FIG. 22 is a diagram showing an example of the data structure of a codon compressed file. [Figure 23] FIG. 23 is a diagram showing an example of the data structure of the codon transposition index. [Figure 24] FIG. 24 is a diagram illustrating an example of a data structure of the protein dictionary. [Diagram 25]FIG. 25 is a diagram illustrating an example of the data structure of a protein HMM. [Figure 26] FIG. 26 is a diagram illustrating an example of a data structure of a protein compression file. [Figure 27] FIG. 27 is a diagram showing an example of a data structure of a protein transposition index. [Figure 28] FIG. 28 is a diagram illustrating an example of a data structure of the category table. [Figure 29] FIG. 29 is a diagram illustrating an example of a data structure of the vector table. [Diagram 30] FIG. 30 is a diagram for explaining the process of the second encoding unit. [Diagram 31] FIG. 31 is a flowchart of a processing procedure of the information processing device according to the second embodiment. [Diagram 32] FIG. 32 is a diagram illustrating an example of a hardware configuration of a computer that realizes the same functions as the information processing apparatus according to the first embodiment. [Diagram 33] FIG. 33 is a diagram illustrating an example of a hardware configuration of a computer that realizes the same functions as the information processing apparatus of the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] Hereinafter, an information processing program, an information processing method, and an information processing device disclosed in the present application will be described in detail with reference to the accompanying drawings. Note that the present invention is not limited to the embodiments. EXAMPLES

[0015] Fig. 1 is a diagram for explaining the processing of the information processing device according to the first embodiment. In Fig. 1, as an example, a case will be explained in which the information processing device assigns sentence vectors to Japanese input texts da1 and da2. For example, the sentence of the input text da1 is "Strawberries are sweet." The sentence of the input text da2 is "His thoughts are sweet."

[0016] Here, it is assumed that the information processing device performs processing using the first co-occurrence rate table 143a, the first category table 144a, and the first vector table 145a.

[0017] The first co-occurrence rate table 143a holds the relationship between the co-occurrence rate of polysemous words classified by semantic division and the word category. In the present embodiment 1, polysemous words are classified by a pair of the word and a number in parentheses. In FIG. 1, the polysemous word "sweet" is classified by "sweet (1)" and "sweet (2)".

[0018] Let's say that the meaning of "sweet (1)" is "tastes like sugar, honey, etc." In a sentence containing "sweet (1)," it is shown that the co-occurrence rate of words specified by category ID "α" is "78%." In a sentence containing "sweet (1)," it is shown that the co-occurrence rate of words specified by category ID "β" is "63%." In a sentence containing "sweet (1)," it is shown that the co-occurrence rate of words specified by category ID "η" is "1%." In a sentence containing "sweet (1)," it is shown that the co-occurrence rate of words specified by category ID "ζ" is "2%."

[0019] When other words co-occurring in a sentence containing the synonymous word "sweet" are words corresponding to category IDs "α" and "β," the information processing device identifies the synonymous word "sweet" as the synonymous word "sweet (1)."

[0020] The meaning of "sweet (2)" is "not being strict." In a sentence containing "sweet (2)," it is indicated that the co-occurrence rate of words specified by category ID "α" is "1%." In a sentence containing "sweet (2)," it is indicated that the co-occurrence rate of words specified by category ID "β" is "2%." In a sentence containing "sweet (2)," it is indicated that the co-occurrence rate of words specified by category ID "η" is "81%." In a sentence containing "sweet (2)," it is indicated that the co-occurrence rate of words specified by category ID "ζ" is "71%."

[0021] When other words co-occurring in a sentence containing the synonym "sweet" are words corresponding to category IDs "η" and "ζ", the information processing device identifies the synonym "sweet" as the synonym "sweet (2)".

[0022] The first category table 144a is a table that associates category IDs with words. Each word is classified into each category ID based on a thesaurus. For example, fruits such as strawberries, apples, and grapes are classified into the category ID "α". Words related to people such as "he" and "she" are classified into the category ID "η". Although explanations are omitted here, it is assumed that other words are also classified into one of the category IDs.

[0023] The first vector table 145a holds a word vector to be assigned to each word. For polysemous words, a word vector is set for each semantic category. The word vector of each word is assumed to have been calculated in advance by a conventional technique called Poincare Embeddings.

[0024] The process of assigning a sentence vector of an input text da1 by an information processing device will be described. The information processing device divides the input text da1 into words w1-1, w1-2, and w1-3 by executing a morphological analysis on the input text da1. Among the words w1-1, w1-2, and w1-3, the word w1-3 is a polysemous word. For example, the information processing device identifies the polysemous word by using dictionary data.

[0025] The information processing device compares the words w1-1 and w1-2 that co-occur with the word w1-3 with the first category table 144a to identify the category ID "α" of the word w1-1. Explanation of the category ID of the word w1-2 will be omitted.

[0026] The information processing device compares the relationship between the synonym "sweet" corresponding to the word w1-3 and the category ID "α" of the co-occurring w1-1 with the first co-occurrence rate table 143a, and determines that the word w1-3 corresponds to the synonym "sweet (1)".

[0027] The information processing device compares the words w1-1, w1-2, and w1-3 with the first vector table 145a to obtain the word vectors V 1-1 ,V 1-2 ,V (1) Here, the word vector assigned to the word w1-3 is the unique word vector V (1) The information processing device calculates the word vector V 1-1 ,V 1-2 ,V (1) The information processing device calculates a sentence vector "V1" by accumulating the sentences da1 and da2. The information processing device assigns the sentence vector "V1" to the input text da1.

[0028] The process of assigning a sentence vector of an input text da2 by an information processing device will be described. The information processing device divides the input text da2 into words w2-1, w2-2, w2-3, w2-4, and w2-5 by executing a morphological analysis on the input text da2. Among the words w2-1, w2-2, w2-3, w2-4, and w2-5, the word w2-5 is a polysemous word. For example, the information processing device identifies the polysemous word by using dictionary data.

[0029] The information processing device compares the words w2-1, w2-2, w2-3, and w2-4 that co-occur with the word w2-5 with the first category table 144a, and identifies the category ID "η" of the word w2-1. Description of the category IDs of the words w2-2 to w2-4 will be omitted.

[0030] The information processing device compares the relationship between the synonym "sweet" corresponding to the word w2-5 and the category ID "η" of the co-occurring w2-1 with the first co-occurrence rate table 143a, and determines that the word w2-5 corresponds to the synonym "sweet (2)".

[0031] The information processing device compares the words w2-1 to w2-5 with the first vector table 145a to obtain the word vectors V 2-1 ,V 2-2 ,V 2-3,V 2-4 ,V (2) Here, the word vector assigned to the word w2-5 is the unique word vector V (2) The information processing device calculates the word vector V 2-1 ,V 2-2 ,V 2-3 ,V 2-4 ,V (2) The information processing device calculates the sentence vector "V2" by accumulating the sentences da2 and da3. The information processing device assigns the sentence vector "V2" to the input text da2.

[0032] As described above, the information processing device according to the first embodiment identifies the meanings of the polysemous words included in the input text by using the first co-occurrence rate table 143a that defines the co-occurrence rates between the polysemous words classified by semantic division and the categories of other words, and assigns word vectors according to the meanings of the polysemous words. In this way, when the input text includes polysemous words, word vectors according to the meanings of the polysemous words are assigned, so that the accuracy of the sentence vectors corresponding to the input text can be improved.

[0033] Furthermore, the information processing device performs processing using a first co-occurrence rate table 143a that classifies words into category IDs based on a thesaurus and defines the co-occurrence rate between synonymous words classified into semantic categories and category IDs. Therefore, the amount of data in the first co-occurrence rate table 143a can be reduced compared to a conventional HMM that defines the co-occurrence rate for each word.

[0034] Next, a description will be given of the configuration of the information processing device according to the embodiment 1. Fig. 2 is a functional block diagram showing the configuration of the information processing device according to the embodiment 1. As shown in Fig. 2, the information processing device 100 has a communication unit 110, an input unit 120, a display unit 130, a storage unit 140, and a control unit 150.

[0035] The communication unit 110 is connected to an external device or the like by wire or wirelessly, and transmits and receives information to and from the external device or the like. For example, the communication unit 110 is realized by a NIC (Network Interface Card) or the like. The communication unit 110 may be connected to a network (not shown).

[0036] The input unit 120 is an input device that inputs various types of information to the information processing device 100. The input unit 120 corresponds to a keyboard, a mouse, a touch panel, or the like.

[0037] The display unit 130 is a display device that displays information output from the control unit 150. The display unit 130 corresponds to a liquid crystal display, an organic EL (Electro Luminescence) display, a touch panel, or the like.

[0038] The storage unit 140 has first dictionary data 141a, second dictionary data 141b, first teacher data 142a, second teacher data 142b, first co-occurrence rate table 143a, and second co-occurrence rate table 143b. The storage unit 140 has a first category table 144a, a second category table 144b, a first vector table 145a, and a second vector table 145b. The storage unit 140 has first text data 146a and second text data 146b. The storage unit 140 is realized by, for example, a semiconductor memory element such as a RAM (Random Access Memory) or a flash memory, or a storage device such as a hard disk or an optical disk.

[0039] The first dictionary data 141a is dictionary data in which the format of a Japanese word dictionary is extended, and in addition to Japanese words, Japanese polysemous words, idioms, technical terms, etc. are registered. Fig. 3 is a diagram showing an example of the data structure of the first dictionary data. For example, the first dictionary data 141a associates word character strings, parts of speech, classifications, polysemous word flags, etc.

[0040] A word string indicates the form of a word that actually appears as a string in a sentence (surface form), taking into account conjugation, spelling variations, etc. A part of speech indicates the part of speech of a word in a sentence. A classification indicates the classification of a word in a sentence. A polysemous word flag is a flag that indicates whether a word string is polysemous. If it is polysemous, the polysemous word flag is "1". If it is not polysemous, the polysemous word flag is "0".

[0041] The second dictionary data 141b is dictionary data in which the format of an English word dictionary is extended, and in addition to English words, English polysemous words, idioms, technical terms, etc. are registered. Fig. 4 is a diagram showing an example of the data structure of the second dictionary data. For example, the second dictionary data 141b associates word character strings, parts of speech, classifications, polysemous word flags, etc.

[0042] The explanations regarding the word string, parts of speech, classification, and ambiguity flags are the same as those given in FIG.

[0043] The first teacher data 142a is data used when calculating each co-occurrence rate (parameter) of the first co-occurrence rate table 143a for Japanese. FIG. 5 is a diagram showing an example of the first teacher data. As shown in FIG. 5, the first teacher data 142a includes a plurality of Japanese sentences. Furthermore, among the words included in the sentences, words that are polysemous are distinguished by a pair of the word and a number in parentheses. Sweet (1) and sweet (2) are words in different semantic categories.

[0044] The second teacher data 142b is data used when calculating each co-occurrence rate (parameter) of the second co-occurrence rate table 143b for English. FIG. 6 is a diagram showing an example of the second teacher data. As shown in FIG. 6, the second teacher data 142b includes a plurality of English sentences. Furthermore, among the words included in the sentences, words that are polysemous are distinguished by a pair of the word and a number in parentheses. cool(1) and cool(2) are words in different semantic categories.

[0045] The first co-occurrence rate table 143a holds the relationship between the co-occurrence rate of polysemous words (polysemous words in Japanese) classified by semantic division and the category of words (words in Japanese). FIG. 7 is a diagram showing an example of the data structure of the first co-occurrence rate table. As shown in FIG. 7, polysemous words of the same word character string are distinguished by a pair of a word and a number in parentheses. The explanation of the first co-occurrence rate table 143a in FIG. 7 is the same as the explanation of the first co-occurrence rate table 143a in FIG. 1.

[0046] The second co-occurrence rate table 143b holds the relationship between the co-occurrence rate of polysemous words (polysemous words in English) classified by semantic division and the category of words (English words). Fig. 8 is a diagram showing an example of the data structure of the second co-occurrence rate table. As shown in Fig. 8, polysemous words of the same word character string are distinguished by a pair of a word and a number in parentheses.

[0047] The meaning of "coo1(1)" is "cool." In a sentence containing "coo1(1)," it is indicated that the co-occurrence rate of a word specified by category ID "ε" is "75%." In a sentence containing "coo1(1)," it is indicated that the co-occurrence rate of a word specified by category ID "λ" is "60%." In a sentence containing "coo1(1)," it is indicated that the co-occurrence rate of a word specified by category ID "η" is "1%." In a sentence containing "coo1(1)," it is indicated that the co-occurrence rate of a word specified by category ID "ζ" is "2%."

[0048] When other words co-occurring in a sentence including the synonym "coo1" are words corresponding to the category IDs "ε" and "λ", the information processing device 100 identifies the synonym "coo1" as the synonym "coo1(1)".

[0049] The meaning of "coo1(2)" is "calm, composed." In a sentence containing "coo1(2)," it is indicated that the co-occurrence rate of a word specified by category ID "ε" is "1%." In a sentence containing "coo1(2)," it is indicated that the co-occurrence rate of a word specified by category ID "λ" is "2%." In a sentence containing "coo1(2)," it is indicated that the co-occurrence rate of a word specified by category ID "η" is "77%." In a sentence containing "coo1(2)," it is indicated that the co-occurrence rate of a word specified by category ID "ζ" is "75%."

[0050] When other words co-occurring in a sentence including the synonym "coo1" are words corresponding to the category IDs "η" and "ζ", the information processing device 100 identifies the synonym "coo1" as the synonym "coo1(2)".

[0051] The first category table 144a is a table that associates category IDs with Japanese words. FIG. 9 is a diagram showing an example of a data structure of the first category table. As shown in FIG. 9, the first category table 144a associates category IDs with words. The category ID is information that uniquely identifies a category. It is assumed that words are classified into each category ID based on a thesaurus.

[0052] For example, words such as "strawberry," "apple," and "grape" are classified into category ID "α." Words such as "cookie," "cake," and "ice cream" are classified into category ID "β." Words such as "he," "she," "you," and "that guy" are classified into category ID "η." Words such as "thought," "hope," and "idea" are classified into category "ζ."

[0053] The second category table 144b is a table that associates category IDs with English words. FIG. 10 is a diagram showing an example of a data structure of the second category table. As shown in FIG. 10, the second category table 144b associates category IDs with words. The category ID is information that uniquely identifies a category. It is assumed that the words are classified into each category ID based on a thesaurus.

[0054] For example, words such as "room", "place", and "hall" are classified into category ID "ε". Words such as "temperature", "air", and "atmosphere" are classified into category ID "λ". Words such as "he", "she", "you", and "chap" are classified into category ID "η". Words such as "thought", "hope", and "idea" are classified into category "ζ".

[0055] The first vector table 145a defines word vectors for Japanese words. For polysemous words, different word vectors are associated with each semantic category. FIG. 11 is a diagram showing an example of the data structure of the first vector table 145a. As shown in FIG. 11, the first vector table 145a associates words with word vectors. The dimension of the word vector is set to 200 dimensions.

[0056] For example, for the polysemous word "sweet," a word vector is associated with each semantic category. "Sweet (1)" is associated with the word vectors (200 dimensions) "Vj1-1 to Vj1-200." "Sweet (2)" is associated with the word vectors (200 dimensions) "Vj2-1 to Vj2-200."

[0057] The second vector table 145b defines word vectors for English words. For polysemous words, different word vectors are associated with each semantic category. For phrases, one word vector is associated with multiple words that make up the phrase. FIG. 12 is a diagram showing an example of the data structure of the second vector table 145b. As shown in FIG. 12, the second vector table 145b associates words with word vectors. The dimension of the word vector is set to 200 dimensions.

[0058] For example, for the polysemous word "cool," a word vector is associated with each semantic category. "cool(1)" is associated with the word vectors (200 dimensions) "Ve1-1 to Ve1-200." "cool(2)" is associated with the word vectors (200 dimensions) "Ve2-1 to Ve2-200."

[0059] Furthermore, one word vector (200 dimensions) "Ve4-1 to Ve4-200" is associated with the phrase "take off." One word vector (200 dimensions) "Ve5-1 to Ve5-200" is associated with the phrase "take out."

[0060] The word vectors described with reference to FIGS. 11 and 12 are assumed to be calculated in advance using a technique called Poincaré embedding.

[0061] In Poincaré embedding, vectors are assigned according to the position embedded in the Poincaré space, and the more similar the information, the closer it is to be embedded. Therefore, basic information classified into the same common concept is embedded in a close position in the Poincaré space, and similar vectors are assigned. For example, the Japanese word "sweet (1)" and the English word "sweet" have similar meanings, and so similar word vectors are assigned to them.

[0062] The first text data 146a is data including a plurality of Japanese sentences (input text). The control unit 150, which will be described later, performs a process of assigning sentence vectors to the input text included in the first text data 146a.

[0063] The second text data 146b is data including a plurality of English sentences (input text). The control unit 150, which will be described later, assigns sentence vectors to the input text included in the second text data 146b.

[0064] The control unit 150 includes a receiving unit 151, a calculating unit 152, a generating unit 153, and an allocating unit 154. The control unit 150 is realized by, for example, a central processing unit (CPU) or a micro processing unit (MPU). The control unit 150 may also be executed by, for example, an integrated circuit such as an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA).

[0065] The receiving unit 151 receives various data from an external device or the like via a network, and stores the received data in the storage unit 140. For example, the receiving unit 151 receives first dictionary data 141a, second dictionary data 141b, first teacher data 142a, second teacher data 142b, first category table 144a, and second category table 144b, and stores them in the storage unit 140.

[0066] The calculation unit 152 executes Poincaré embedding to calculate word vectors of each word, phrase, technical term, etc. The calculation unit 152 calculates word vectors of words, phrases, technical terms, etc. based on the technology described in the non-patent document "Valentin Khrulkov1 et al. "Hyperbolic Image Embeddings" Cornell University, April 3, 2019" and the like, and registers them in the first vector table 145a and the second vector table 145b.

[0067] In addition, in the case where the word vectors of each word have been calculated in advance by an external device that performs Poincaré embedding, the receiving unit 151 receives the first vector table 145a and the second vector table 145b from the external device and stores them in the memory unit 140.

[0068] The generating unit 153 is a processing unit that generates the first co-occurrence rate table 143a and the second co-occurrence rate table 143b. The generating unit 153 stores the generated first co-occurrence rate table 143a and second co-occurrence rate table 143b in the storage unit 140.

[0069] An example of a process in which the generating unit 153 generates the first co-occurrence rate table 143a will be described. The generating unit 153 divides a Japanese sentence included in the first teacher data 142a into a plurality of words by performing a morphological analysis. The generating unit 153 identifies polysemous words from the divided plurality of words. As described in FIG. 5, in the first teacher data 142a, polysemous words are defined so as to be identifiable by a pair of a word and a number in parentheses. In the following, a process in which the generating unit 153 calculates a co-occurrence rate of the polysemous word "sweet (1)" will be described.

[0070] The generation unit 153 detects words that co-occur with the polysemous word "sweet (1)" and identifies the category ID of the word that co-occurs with the polysemous word "sweet (1)" by comparing the detected words with the first category table 144a. Here, the word that co-occurs with the polysemous word may be a word included in the same sentence as the polysemous word, may be a word located at the beginning of the same sentence as the polysemous word, or may be a word located at the end of the same sentence as the polysemous word.

[0071] For example, in the first teacher data 142a, the polysemous word “sweet (1)” is A In addition, the category ID “α” of the word that co-occurs with the polysemous word “sweet (1)” is L A In this case, the co-occurrence rate of the polysemous word "sweet (1)" and the category ID "α" is "L A / M A× 100". The generating unit 153 repeats the above process for each synonym (a combination of a word and a number in parentheses) to generate the first co-occurrence rate table 143a.

[0072] Next, an example of a process in which the generating unit 153 generates the second co-occurrence rate table 143b will be described. The generating unit 153 divides an English sentence included in the second teacher data 142b into a plurality of words by performing a morphological analysis. The generating unit 153 identifies polysemous words from the divided plurality of words. As described in FIG. 6, in the second teacher data 142b, polysemous words are defined so as to be identifiable by a pair of a word and a number in parentheses. In the following, a process in which the generating unit 153 calculates a co-occurrence rate of the polysemous word "cool(1)" will be described.

[0073] The generation unit 153 detects words that co-occur with the synonym "cool(1)" and compares the detected words with the second category table 144b to identify the category ID of the words that co-occur with the synonym "cool(1)". Here, the words that co-occur with the synonym may be words included in the same sentence as the synonym, may be words located at the beginning of the same sentence as the synonym, or may be words located at the end of the same sentence as the synonym.

[0074] For example, in the second training data 142b, the polysemous word “cool(1)” is B In addition, the category ID “α” of the word that co-occurs with the polysemous word “cool(1)” is L B In this case, the co-occurrence rate of the polysemous word "cool(1)" and the category ID "α" is "L B / M B × 100". The generating unit 153 repeats the above process for each synonym (a combination of a word and a number in parentheses) to generate the second co-occurrence rate table 143b.

[0075] The assignment unit 154 assigns sentence vectors to the Japanese input text included in the first text data 146a, and also assigns sentence vectors to the English input text included in the second text data 146b.

[0076] 13 is a diagram for explaining the processing of the assignment unit according to the embodiment 1. First, the processing of the assignment unit 154 assigning a sentence vector to a Japanese sentence (input text da1) included in the first text data 146a will be explained.

[0077] The assignment unit 154 performs morphological analysis on the input text da1 to divide it into words w1-1, w1-2, and w1-3. Among the words w1-1, w1-2, and w1-3, the word w1-3 is a polysemous word. The assignment unit 154 uses the first dictionary data 141a to identify the polysemous word "sweet."

[0078] The assignment unit 154 compares the words w1-1 and w1-2 that co-occur with the word w1-3 with the first category table 144a to identify the category ID of the word w1-1, "α (fruits)." Explanation of the category ID of the word w1-2 will be omitted.

[0079] The allocation unit 154 compares the relationship between the synonym "sweet" corresponding to the word w1-3 and the category ID "α" of the co-occurring w1-1 with the first co-occurrence rate table 143a, and identifies the co-occurrence rate for each semantic category. In FIG. 7, the co-occurrence rate between the synonym "sweet (1)" and the category ID "α" is "78%". On the other hand, the co-occurrence rate between the synonym "sweet (2)" and the category ID "α" is "1%". The allocation unit 154 identifies that the word w1-3 corresponds to the polysemous word "sweet (1)" because the co-occurrence rate between "sweet (1)" and the category ID "α" is the highest.

[0080] The allocation unit 154 compares the words w1-1, w1-2, and w1-3 with the first vector table 145a to determine the word vectors V 1-1 ,V 1-2 ,V (1)Although not shown in the figure, the word vector V 1-1 ,V 1-2 ,V (1) is a 200-dimensional vector.

[0081] The assignment unit 154 assigns the word vector V 1-1 ,V 1-2 ,V (1) The assignment unit 154 calculates a sentence vector "V1" by accumulating the sentences. The assignment unit 154 assigns the sentence vector "V1" to the input text da1. The assignment unit 154 also assigns sentence vectors to the other input texts included in the first text data 146a by repeatedly executing the above process.

[0082] Next, a process in which the assignment unit 154 assigns a sentence vector to an English sentence (input text da3) included in the second text data 146b will be described.

[0083] The assignment unit 154 performs a morphological analysis on the input text da3 to divide it into words w3-1, w3-2, and w3-3. Of the words w3-1, w3-2, and w3-3, the word w3-3 is a polysemous word. The assignment unit 154 identifies the polysemous word "cool" by using the second dictionary data 141b.

[0084] The assignment unit 154 compares the words w3-1 and w3-2 that co-occur with the word w3-3 with the second category table 144b. For example, the category ID of the word w3-1 is set to "η (person)." Explanation of the category ID of the word w3-2 is omitted.

[0085] The allocation unit 154 compares the relationship between the synonym "cool" corresponding to the word w3-3 and the category ID "η" of the co-occurring w3-1 with the second co-occurrence rate table 143b, and identifies the co-occurrence rate for each semantic category. In FIG. 8, the co-occurrence rate between the synonym "cool(1)" and the category ID "η" is "1%". On the other hand, the co-occurrence rate between the synonym "cool(2)" and the category ID "η" is "77%". The allocation unit 154 identifies that the word w3-3 corresponds to the synonym "cool(2)" because the co-occurrence rate between "cool(2)" and the category ID "η" is the highest.

[0086] The allocation unit 154 compares the words w3-1, w3-2, and w3-3 with the second vector table 145b to determine the word vectors V 3-1 ,V 3-2 ,V (3) Although not shown in the figure, the word vector V 3-1 ,V 3-2 ,V (3) is a 200-dimensional vector.

[0087] The assignment unit 154 assigns the word vector V 3-1 ,V 3-2 ,V (3) The assignment unit 154 calculates a sentence vector "V3" by accumulating the sentences. The assignment unit 154 assigns the sentence vector "V3" to the input text da3. The assignment unit 154 also assigns sentence vectors to the other input texts included in the second text data 146b by repeatedly executing the above process.

[0088] Next, an example of a processing procedure of the information processing device 100 according to the embodiment 1 will be described. Fig. 14 is a flowchart (1) showing an example of a processing procedure of the information processing device according to the embodiment 1. As shown in Fig. 14, the allocation unit 154 of the information processing device 100 acquires an input text from the first text data 146a (step S101).

[0089] The assignment unit 154 performs a morphological analysis on the input text and divides it into a plurality of words (step S102). The assignment unit 154 identifies polysemous words from the plurality of words based on the first dictionary data 141a (step S103). The assignment unit 154 identifies category IDs of the plurality of words based on the first category table 144a (step S104).

[0090] The assigning unit 154 identifies the semantic classification of the synonymous word based on the synonymous word, the co-occurring category ID, and the first co-occurrence rate table 143a (step S105). The assigning unit 154 identifies the word vector of each word and synonymous word based on the first vector table 145a (step S106).

[0091] The assignment unit 154 calculates a sentence vector by accumulating the word vectors of each word and each synonym (step S107). The assignment unit 154 assigns the sentence vector to the input text (step S108).

[0092] Fig. 15 is a flowchart (2) showing an example of the processing procedure of the information processing device according to the embodiment 1. As shown in Fig. 14, the allocation unit 154 of the information processing device 100 acquires an input text from the second text data 146b (step S201).

[0093] The assignment unit 154 performs morphological analysis on the input text and divides it into a plurality of words (step S202). The assignment unit 154 identifies polysemous words from the plurality of words based on the second dictionary data 141b (step S203). The assignment unit 154 identifies category IDs of the plurality of words based on the second category table 144b (step S204).

[0094] The allocation unit 154 identifies the semantic classification of the synonymous word based on the synonymous word, the co-occurring category ID, and the second co-occurrence rate table 143b (step S205). The allocation unit 154 identifies the word vector of each word and synonymous word based on the second vector table 145b (step S206).

[0095] The assignment unit 154 calculates a sentence vector by accumulating the word vectors of each word and each synonym (step S207). The assignment unit 154 assigns the sentence vector to the input text (step S208).

[0096] Next, the effect of the information processing device 100 according to the first embodiment will be described. The information processing device 100 identifies the meaning of a polysemous word included in an input text by using a first co-occurrence rate table 143a (second co-occurrence rate table 143b) that defines the co-occurrence rate between a polysemous word classified by semantic division and a category of other words. The information processing device 100 assigns a word vector according to the meaning of the polysemous word based on the identification result. In this way, when the input text includes a polysemous word, the accuracy of the sentence vector corresponding to the input text can be improved because a word vector according to the meaning of the polysemous word is assigned.

[0097] The information processing device 100 performs processing using a first co-occurrence rate table 143a (second co-occurrence rate table 143b) that classifies words into category IDs based on a thesaurus and defines the co-occurrence rate between synonyms classified into semantic categories and category IDs. Therefore, the amount of data in the first co-occurrence rate table 143a (second co-occurrence rate table 143b) can be reduced compared to a conventional HMM that defines the co-occurrence rate for each word. In addition, the HMM associated with a category reduces the average number of matching operations, thereby speeding up processing.

[0098] The information processing device 100 calculates the word vector of each word by performing Poincaré embedding. This makes it possible to assign a word vector according to the meaning. In addition, it is also possible to assign one word vector according to the meaning to a phrase consisting of multiple words.

[0099] Here, a description will be given of another process 1 of the information processing device 100 described in the first embodiment. The information processing device 100 may execute a recurrent neural network (RNN) machine learning using training data in which a first sentence in Japanese is associated with a second sentence obtained by translating the first sentence into English, to generate a machine learning model that translates Japanese into English.

[0100] For example, the information processing device 100 performs morphological analysis on the first sentence included in the training data and assigns a word vector to each word. In addition, by performing the above processing, when the first sentence includes a polysemous word, the information processing device 100 assigns a word vector corresponding to the semantic classification of the polysemous word.

[0101] Similarly, the information processing device 100 performs morphological analysis on the second sentence included in the training data and assigns a word vector to each word. In addition, by performing the above processing, when the second sentence includes a polysemous word, the information processing device 100 assigns a word vector corresponding to the semantic classification of the polysemous word.

[0102] The information processing device 100 executes RNN machine learning using the relationship between the word vector assigned to each word in the first sentence and the word vector assigned to each word in the second sentence.

[0103] Next, a description will be given of other processing 2 of the information processing device 100 described in the embodiment 1. The word vectors in the first vector table 145a and the second vector table 145b described in the embodiment 1 are 200-dimensional vectors, but they may be converted into low-dimensional (e.g., three-dimensional) word vectors by performing dimensional compression.

[0104] 16 and 17 are diagrams for explaining the dimensional compression of a vector. Referring to FIG. 16, the calculation unit 152 of the information processing device 100 calculates 200 basis vectors a i e i (i=1 to 200) are equally distributed on a circle (semicircle). Note that the vector A before decomposition and each decomposed basis vector ai e i The relationship between is defined by equation (1).

[0105]

number

[0106] 17 will be described. The calculation unit 152 calculates the remaining basis vectors a2e2 to a 200 e 200 Each of these is orthogonally transformed, and each of the orthogonally transformed basis vectors a2e2~a 200 e 200 The value of the basis vector a1e1 is calculated by accumulating the values ​​of

[0107] The calculation unit 152 calculates the basis vector a 67 e 67 For the remaining basis vectors a1e1 (solid line + arrow), a2e2, a3e3~a 66 e 66 , a 68 e 68 ~a 200 e 200 Each of these is orthogonally transformed, and the orthogonally transformed basis vectors a1e1 to a 66 e 66 , a 68 e 68 ~a 200 e 200 By accumulating the values ​​of 67 e 67 Calculate the value of

[0108] The calculation unit 152 calculates the basis vector a 131 e 131 For the remaining basis vectors a1e1~a 130 e 130 , a 132 e 132 ~a 200 e 200 Each of these is orthogonally transformed, and the orthogonally transformed basis vectors a1e1 to a 130 e 130 , a 132 e 132 ~a 200 e200 By accumulating the values ​​of 131 e 131 Calculate the value of

[0109] The calculation unit 152 calculates each component of the compressed vector obtained by compressing the 200-dimensional vector as “the value of the basis vector a1e1, the value of the basis vector a 67 e 67 The value of the basis vector a 131 e 131 The calculation unit 152 calculates other dimensions in the same manner. The calculation unit 152 may perform dimensional compression using KL expansion or the like. The calculation unit 152 performs the above-mentioned dimensional compression on each of the word vectors in the first vector table 145a and the second vector table 145b, thereby performing dimensional compression on the word vectors.

[0110] By performing dimensionality reduction as described above, it is possible to reduce the amount of calculations related to the word vectors compared to handling 200-dimensional word vectors. Note that the dimensionality reduced word vectors can be restored to 200 dimensions, although this is lossy. EXAMPLES

[0111] The information processing device according to the second embodiment handles a "base file." A base file is information in which a plurality of base symbols A, G, C, and T (or U) are arranged, and a codon of a combination of three bases corresponds to a predetermined amino acid. A combination of a plurality of consecutive amino acids corresponds to a predetermined protein, and a combination of a plurality of proteins corresponds to a primary structure. Furthermore, a combination of a plurality of primary structures becomes a higher-order structure.

[0112] In this embodiment 2, as an example, a case where a vector is assigned to a protein will be described. Fig. 18 is a diagram for explaining the processing of the information processing device according to this embodiment 2. In Fig. 18, it is assumed that the information processing device performs processing using a protein HMM 246, a category table 250, and a vector table 251.

[0113] Protein HMM246 holds the relationship between the co-occurrence rate of a protein and a protein category. For example, it is indicated that the co-occurrence rate of protein P1 and a protein specified by category ID "CL1" is "78%". It is indicated that the co-occurrence rate of protein P1 and a protein specified by category ID "CL2" is "63%". It is indicated that the co-occurrence rate of protein P1 and a protein specified by category ID "CL3" is "1%". It is indicated that the co-occurrence rate of protein P1 and a protein specified by category ID "CL4" is "2%".

[0114] It is indicated that the co-occurrence rate between protein P2 and a protein identified by category ID "CL1" is "1%". It is indicated that the co-occurrence rate between protein P2 and a protein identified by category ID "CL2" is "2%". It is indicated that the co-occurrence rate between protein P2 and a protein identified by category ID "CL3" is "81%". It is indicated that the co-occurrence rate between protein P2 and a protein identified by category ID "CL4" is "71%".

[0115] The category table 250 is a table that associates category IDs with proteins. Proteins with the same characteristics are classified into the same category ID. Protein A1, protein A2, protein A3, etc. are classified into category ID "CL1". Protein B1, protein B2, protein B3, etc. are classified into category ID "CL2". Although not shown in the figure, "thrombin", "chymotrypsin", and "nattokinase" are classified into the same category ID.

[0116] A vector table 251 holds a vector to be assigned to each protein. It is assumed that the vector of each protein has been calculated in advance by a conventional technique called Poincare Embeddings.

[0117] The information processing device 100 uses various dictionary data to identify protein delimiters and identify the protein type from the beginning of the base file 241. The various dictionary data will be described later. In the process of identifying the protein type, the information processing device may encounter multiple protein types as candidates.

[0118] In the example shown in FIG. 18, the candidate protein following protein A1 is either protein P1 or protein P2.

[0119] The information processing device identifies the category ID "CL1" of protein A1 based on protein A1 and the category table 250. The information processing device identifies the co-occurrence rate "78%" between the category ID "CL1" and protein P1 based on protein HMM246. The information processing device identifies the co-occurrence rate "1%" between the category ID "CL1" and protein P2 based on protein HMM246.

[0120] Since the co-occurrence rate between the category ID "CL1" and protein P1 is greater than the co-occurrence rate between the category ID "CL1" and protein P2, the information processing device identifies the protein following protein A1 as protein P1. The information processing device also repeatedly executes the process of identifying the type of protein for the proteins following protein P1 based on the co-occurrence rate.

[0121] After completing the identification of the proteins, the information processing device assigns vectors to the proteins based on the vector table 251. In the example shown in Fig. 18, the information processing device assigns vector Vp1 to protein A1 and vector Vp2 to protein A1. The information processing device calculates the vectors of the base file 241 by accumulating the vectors of each protein included in the base file 241.

[0122] As described above, the information processing device according to the second embodiment identifies the type of protein included in the base file 241 and assigns a vector based on the protein HMM 246 that defines the co-occurrence rate between a protein and a protein category. This makes it possible to identify the exact type of protein using the co-occurrence rate and assign an appropriate vector even if the type of protein included in the base file 241 cannot be uniquely identified.

[0123] In addition, the information processing device classifies proteins into category IDs based on the similarity of the proteins, and performs processing using protein HMM246, which defines the co-occurrence rate between the protein and the category ID. Therefore, the amount of data of protein HMM246 can be reduced compared to the case where the co-occurrence rate is defined for each protein and HMM.

[0124] Next, a description will be given of the configuration of an information processing device according to the present embodiment 2. Fig. 19 is a functional block diagram showing the configuration of an information processing device according to the present embodiment 2. As shown in Fig. 19, this information processing device 200 has a communication unit 210, an input unit 220, a display unit 230, a storage unit 240, and a control unit 260.

[0125] The communication unit 210 is connected to an external device or the like via a wired or wireless connection, and transmits and receives information to and from the external device or the like. For example, the communication unit 210 is realized by a NIC or the like. The communication unit 210 may be connected to a network (not shown).

[0126] The input unit 220 is an input device that inputs various types of information to the information processing device 200. The input unit 220 corresponds to a keyboard, a mouse, a touch panel, or the like.

[0127] The display unit 230 is a display device that displays information output from the control unit 260. The display unit 230 corresponds to a liquid crystal display, an organic EL display, a touch panel, or the like.

[0128] The storage unit 240 has a base file 241, a conversion table 242, a codon compressed file 243, a codon transposition index 244, a protein dictionary 245, and a protein HMM 246. The storage unit 240 also has a dictionary index 247, a protein compressed file 248, a protein transposition index 249, a category table 250, and a vector table 251. The storage unit 240 is realized by, for example, a semiconductor memory element such as a RAM or a flash memory, or a storage device such as a hard disk or an optical disk.

[0129] The base file 241 is a file that holds information on an arrangement of multiple bases. Figure 20 is a diagram showing an example of the data structure of a base file. There are four types of bases in DNA or RNA, which are represented by the symbols "A", "G", "C", "T" and "U". A group of three base sequences is called a codon, which determines 20 types of amino acids. Each amino acid is represented by the symbols "A" to "Y".

[0130] The conversion table 242 is a table that associates codons with the codes corresponding to the codons. Fig. 21 is a diagram showing an example of the data structure of the conversion table. As shown in Fig. 21, each codon is associated with each code. For example, the code of the codon "UUU" is "40h (01000000)". "h" indicates a hexadecimal number.

[0131] The codon compressed file 243 is a file that holds information in which a plurality of encoded codons are arranged. FIG. 22 is a diagram showing an example of the data structure of a codon compressed file. As shown in FIG. 22, the codon compressed file 243 is information in which codes in units of codons are arranged. For convenience, in this second embodiment, the base (codon) before encoding is shown in parentheses next to the code. For example, the codon "AUG" is converted to the code "63h", and the converted code is expressed as "(AUG)63h". "h" indicates that it is a hexadecimal number.

[0132] The codon transposition index 244 is information that associates an offset from the beginning of the codon compressed file 243 with a type of codon (codon code). FIG. 23 is a diagram showing an example of the data structure of a codon transposition index. In FIG. 23, the horizontal axis of the codon transposition index 244 is an axis corresponding to the offset. The vertical axis of the codon transposition index 244 is an axis corresponding to the type of codon (codon code). The codon transposition index 244 is represented by a bitmap of "0" or "1", and all bitmaps are set to "0" in the initial state.

[0133] For example, the offset of the code of the first codon in the codon compressed file 243 is "0." If the seventh position from the beginning of the codon compressed file 243 contains the codon code "(AUG)63h," the bit at the position where the column of offset "6" in the codon transposition index 244 intersects with the row of the codon code "(AUG)63h" is "1."

[0134] The protein dictionary 245 is information that associates protein information with a codon code sequence corresponding to the protein. Fig. 24 is a diagram showing an example of a data structure of the protein dictionary. As shown in Fig. 24, the protein dictionary 245 associates protein information with an amino acid code sequence and a codon code sequence.

[0135] Protein information includes the protein's "code," the "group" to which the protein belongs, and the protein's "name." An amino acid code sequence is a sequence of amino acid codes that correspond to a protein's code (protein type). A codon code sequence is a sequence of codon codes that correspond to a protein's code (protein type).

[0136] For example, the protein "type 1 collagen" belongs to the group "collagen" and has the code "8000h". The amino acid code sequence for the code "8000h" is "02h46h59h...03h". Also, the codon code sequence is "02h63h78h...03h".

[0137] The protein HMM 246 holds information about the co-occurrence rate between a protein and a category ID to which a subsequent protein belongs. Fig. 25 is a diagram showing an example of the data structure of a protein HMM. As shown in Fig. 25, the protein HMM 246 associates protein information with the co-occurrence rate.

[0138] The protein information includes the “code” of the protein, the “group” to which the protein belongs, and the “name” of the protein. The co-occurrence rate is set to the co-occurrence rate between the protein and the category ID.

[0139] For example, consider the record in the first row of protein HMM246. The probability (co-occurrence rate) that the protein following the protein code "8000h" is a protein in category ID "CL1" is "78%". The probability (co-occurrence rate) that the protein following the protein code "8000h" is a protein in category ID "CL2" is "63%". The probability (co-occurrence rate) that the protein following the protein code "8000h" is a protein in category ID "CL3" is "1%". The probability (co-occurrence rate) that the protein following the protein code "8000h" is a protein in category ID "CL4" is "2%".

[0140] The dictionary index 247 is information that holds the offset of a break in each codon code sequence (a block of codon code sequences corresponding to a protein) included in the codon compressed file 243. For example, in the dictionary index 247, each break is indicated by an offset from the beginning of the codon compressed file 243. In the present embodiment 2, as an example, the break is indicated by the offset of the first codon code of the subsequent codon code sequence. Note that in addition to the codon code sequence, it may be associated with an amino acid code sequence (omitted hereafter).

[0141] The protein compressed file 248 is a file that holds information in which the codes of multiple proteins are arranged. Fig. 26 is a diagram showing an example of the data structure of the protein compressed file. As shown in Fig. 26, the protein compressed file 248 is information in which the codes of protein units are arranged.

[0142] The protein transposition index 249 is information that associates an offset from the beginning of the protein compressed file 248 with a protein type (protein code). FIG. 27 is a diagram showing an example of a data structure of a protein transposition index. In FIG. 27, the horizontal axis of the protein transposition index 249 is an axis corresponding to the offset. The vertical axis of the protein transposition index 249 is an axis corresponding to the protein type (protein code). The protein transposition index 249 is represented by a bitmap of "0" or "1", and all bitmaps are set to "0" in the initial state.

[0143] For example, the offset of the code of the first protein in the protein compressed file 248 is set to "0." If the protein code "8000h (type I collagen)" is included in the eighth position from the beginning of the protein compressed file 248, the bit at the position where the column of offset "7" in the protein transposition index 249 intersects with the row of the protein code "8000h (type I collagen)" is set to "1."

[0144] The category table 250 is a table that defines a category ID to which a protein (protein code) belongs. FIG. 28 is a diagram showing an example of the data structure of the category table. As shown in FIG. 28, the category table 250 associates a category ID with a protein code. For example, protein codes "8000h", "8001h", "8002h", etc. are associated with the category ID "CL1". Proteins associated with the same category ID are proteins with similar characteristics.

[0145] The vector table 251 holds vectors assigned to protein codes. Fig. 29 is a diagram showing an example of the data structure of the vector table. As shown in Fig. 29, the vector table 251 associates protein codes with vectors. It is assumed that the vectors of protein codes are calculated in advance using a technique called Poincaré embedding.

[0146] The control unit 260 includes a reception unit 261, a first encoding unit 262, a second encoding unit 263, and an allocation unit 264. The control unit 260 is realized by, for example, a CPU or an MPU. The control unit 260 may also be executed by, for example, an integrated circuit such as an ASIC or an FPGA.

[0147] The reception unit 261 is a processing unit that acquires various information from an external device (not shown) connected to the network via the communication unit 110. For example, when the reception unit 261 acquires the base file 241 from the external device, the reception unit 261 stores the base file 241 in the storage unit 240. Note that, when the base file 241 is compressed by ZIP or the like, the reception unit 261 decompresses the compressed base file 241.

[0148] The first encoding unit 262 is a processing unit that generates the codon-compressed file 243 based on the base file 241 and the conversion table 242. The first encoding unit 262 extracts three bases from the base file 241, compares the extracted three bases with the conversion table 242, identifies codes corresponding to the three bases (codons), and converts the three bases into codes. For example, the first encoding unit 262 converts the codon "AUG" into the code "63h". The first encoding unit 262 generates the codon-compressed file 243 by repeatedly executing the above process.

[0149] When generating the codon compressed file 243, the first encoding unit 262 generates the codon permutation index 244. For example, the first encoding unit 262 sets “1” to a bitmap of the codon permutation index 244 corresponding to the code of the converted codon and the offset of the code in the codon compressed file 243.

[0150] The second encoding unit 263 is a processing unit that generates the protein compressed file 248 and the protein transposition index 249 .

[0151] The second encoding unit 263 identifies breaks in the codon code sequence of each protein included in the codon compressed file 243 based on the dictionary index 247. The second encoding unit 263 identifies a protein code corresponding to the codon code sequence between each break based on the codon code sequence between each break and the protein dictionary 245, and converts the codon code sequence into a protein code.

[0152] Here, when the codon code sequence following the protein code (break) corresponds to codes for multiple proteins, the second encoding unit 263 identifies the code for the protein with the highest co-occurrence rate among the codes for the multiple corresponding proteins based on the protein HMM 246.

[0153] 30 is a diagram for explaining the process of the second encoding unit. As shown in FIG. 30, from offset P to offset N of a certain break in the codon-compressed file 243 A The codon code sequence from offset P to offset N corresponds to the code of protein A (e.g., 8011h), B The code sequence of the codons up to may match the code of protein B (e.g., 8225h). Also, the code of the immediately preceding protein is "8000h."

[0154] The second encoding unit 263 compares the code "8011h" of protein A with the category table 250 and determines that the category of protein A is the category ID "CL1". The second encoding unit 263 compares the code "8225h" of protein B with the category table 250 and determines that the category of protein A is the category ID "CL4".

[0155] The second encoding unit 263 compares the code "8000h" and category ID "CL1" of the straight line protein with the protein HMM 246 to determine a co-occurrence rate of "78%". The second encoding unit 263 compares the code "8000h" and category ID "CL4" of the straight line protein with the protein HMM 246 to determine a co-occurrence rate of "2%".

[0156] Since the co-occurrence rate of the protein code "8000h" and the category ID "CL1" is greater than the co-occurrence rate of the protein code "8000h" and the category ID "CL4", the second encoding unit 263 identifies the protein code following the code "8000h" as "8011h". The second encoding unit 263 converts the codon code sequence by the identified code "8011h". For example, the second encoding unit 263 converts the offset P to P+N in FIG. A The code of the codon is the code of protein A, and the offset is P+N A The above process is repeated at +1 to generate a protein compressed file 248.

[0157] When generating the protein compressed file 248, the second encoding unit 263 generates a protein transposition index 249. The protein transposition index 249 is information that associates an offset from the beginning of the protein compressed file 248 with a code of the protein.

[0158] The assignment unit 264 is a processing unit that compares the code of each protein included in the protein compressed file 248 with the vector table 251 and assigns a vector to the code of the protein. The assignment unit 264 may calculate the vector of the protein compressed file 248 by accumulating the vectors assigned to the code of each protein included in the protein compressed file 248.

[0159] Next, an example of a processing procedure of the information processing device 200 according to the embodiment 2 will be described. Fig. 31 is a flowchart showing the processing procedure of the information processing device according to the embodiment 2. As shown in Fig. 31, the first encoding unit 262 of the information processing device 200 compresses the base file 241 in units of codons to generate a codon compressed file 243 and a codon transposition index 244 (step S301).

[0160] The second encoding unit 263 of the information processing device 200 identifies the code of the protein included in the codon-compressed file 243 based on the protein dictionary 245 and the codon transposition index 244 (step S302).

[0161] The second encoding unit 263 registers the break of the protein included in the codon-compressed file 243 in the dictionary index 247 (step S303). The second encoding unit 263 identifies the code of the subsequent protein included in the codon-compressed file 243 based on the protein dictionary 245 and the dictionary index 247 (step S304).

[0162] When there are multiple candidates for the code of the subsequent protein, the second encoding unit 263 identifies the code of the protein based on the protein HMM 246 and the category table 250 (step S305).

[0163] The second encoding unit 263 updates the protein compressed file 248, the protein transposition index 249, and the dictionary index 247 (step S306). The allocation unit 264 of the information processing device 200 allocates a vector to the code of the protein based on the vector table 251 (step S307).

[0164] If the end has not been reached (step S308, No), the information processing device 200 proceeds to step S304. On the other hand, if the end has been reached (step S308, Yes), the information processing device 200 ends the process.

[0165] Next, the effect of the information processing device 200 according to the second embodiment will be described. The information processing device 200 identifies the type of protein included in the base file 241 based on the protein HMM 246 that defines the co-occurrence rate between a protein and a protein category, and assigns a vector. As a result, even if the type of protein included in the base file 241 cannot be uniquely identified, the accurate type of protein can be identified using the co-occurrence rate, and an appropriate vector can be assigned.

[0166] Furthermore, the information processing device 200 performs processing using a protein HMM 246 in which proteins are classified into category IDs based on the similarity of the proteins and the co-occurrence rate between the proteins and the category IDs is defined. Therefore, the amount of data of the protein HMM 246 can be reduced compared to the case where the co-occurrence rate is defined for each protein and the HMM. Furthermore, the average number of matching times is reduced by the HMM associated with the category, so that the processing speed can be increased.

[0167] The information processing device 200 according to the second embodiment assigns a vector to each protein included in the base file 241 using the protein HMM 246 that defines the co-occurrence rate for the protein, but is not limited to this. For example, the information processing device 200 may assign a vector to the primary structure of each protein included in the base file 241 using a primary structure HMM that defines the co-occurrence rate for the primary structure of the protein.

[0168] The present invention is also applicable not only to the base file 241 but also to a chemical structure file including a chemical structure. A chemical structure file includes a plurality of functional groups. When allocating vectors to such functional groups, if there are a plurality of functional group candidates, the information processing device 200 uses a functional group HMM to identify a functional group that appears frequently, and allocates a vector according to the identified functional group. In addition, the same category ID may be allocated to a plurality of similar functional groups to reduce the data of the functional group HMM.

[0169] Next, a description will be given of an example of a hardware configuration of a computer that realizes the same functions as the information processing device 100 described in the above embodiment 1. Fig. 32 is a diagram illustrating an example of a hardware configuration of a computer that realizes the same functions as the information processing device of the embodiment 1.

[0170] 32, computer 300 has CPU 301 for executing various arithmetic processes, input device 302 for receiving data input from a user, and display 303. Computer 300 also has communication device 304 for transmitting and receiving data to and from external devices etc. via a wired or wireless network, and interface device 305. Computer 300 also has RAM 306 for temporarily storing various information, and hard disk device 307. Each of devices 301 to 307 is connected to bus 308.

[0171] The hard disk device 307 includes a receiving program 307a, a calculation program 307b, a generation program 307c, and an allocation program 307d. The CPU 301 reads out each of the programs 307a to 307e and loads them in the RAM 306.

[0172] The receiving program 307a functions as the receiving process 306a. The calculation program 307b functions as the calculation process 306b. The generation program 307c functions as the generation process 306c. The allocation program 307d functions as the allocation process 306d.

[0173] The processing of the reception process 306a corresponds to the processing of the reception unit 151. The processing of the calculation process 306b corresponds to the processing of the calculation unit 152. The processing of the generation process 306c corresponds to the processing of the generation unit 153. The processing of the allocation process 306d corresponds to the processing of the allocation unit 154.

[0174] It is not necessary that each of the programs 307a to 307d is stored in the hard disk device 307 from the beginning. For example, each program may be stored in a "portable physical medium" such as a flexible disk (FD), CD-ROM, DVD, magneto-optical disk, or IC card that is inserted into the computer 300. Then, the computer 300 may read and execute each of the programs 307a to 307d.

[0175] Next, a description will be given of an example of a hardware configuration of a computer that realizes the same functions as the information processing device 200 described in the above embodiment 2. Fig. 33 is a diagram illustrating an example of a hardware configuration of a computer that realizes the same functions as the information processing device of the embodiment 2.

[0176] 33, the computer 400 has a CPU 401 that executes various arithmetic processes, an input device 402 that accepts data input from a user, and a display 403. The computer 400 also has a communication device 404 that transmits and receives data to and from external devices, etc., via a wired or wireless network, and an interface device 405. The computer 400 also has a RAM 406 that temporarily stores various information, and a hard disk device 407. The devices 401 to 407 are connected to a bus 408.

[0177] The hard disk device 407 has a receiving program 407a, a first encoding program 407b, a second encoding program 407c, and an allocation program 407d. The CPU 401 reads out each of the programs 407a to 407d and develops them in the RAM 406.

[0178] The reception program 407a functions as the reception process 406a. The first encoding program 407b functions as the first encoding process 406b. The second encoding program 407c functions as the second encoding process 406c. The allocation program 407d functions as the allocation process 406d.

[0179] The processing of the reception process 406a corresponds to the processing of the reception unit 261. The processing of the first encoding process 406b corresponds to the processing of the first encoding unit 262. The processing of the second encoding process 406c corresponds to the processing of the second encoding unit 263. The processing of the allocation process 406d corresponds to the processing of the allocation unit 264.

[0180] It is not necessary that each of the programs 407a to 407d is stored in the hard disk device 307 from the beginning. For example, each program may be stored in a "portable physical medium" such as a flexible disk (FD), CD-ROM, DVD, magneto-optical disk, or IC card that is inserted into the computer 400. Then, the computer 400 may read and execute each of the programs 407a to 407d. [Explanation of symbols]

[0181] 100,200 Information processing equipment 110,210 Communications Department 120,220 Input section 130,230 Display section 140,240 storage section 141a First Dictionary Data 141b Second dictionary data 142a First teacher data 142b Second teacher data 143a First Co-occurrence Table 143b Second Co-occurrence Table 144a First Category Table 144b Second Category Table 145a First Vector Table 145b Second Vector Table 146a First text data 146b Second text data 150,260 Control section 151,261 Reception 152 Calculation section 153 Generation part 154,264 Allocated 241 base file 242 Conversion Table 243 codon compressed file 244 Codon Transposition Index 245 Protein Dictionary 246 Protein HMMs 247 Dictionary Index 248 Protein Compressed File 249 Protein Transposition Index 250 Category Table 251 Vector Table 262 1st encoding section 263 Second encoding section

Claims

1. On the computer, classifying a plurality of words included in a predetermined document data into categories defined in a thesaurus, and generating a co-occurrence rate table that defines the co-occurrence rate of each category for polysemous words classified into a certain semantic division, based on a relationship between polysemous words classified into a certain semantic division included in the predetermined document data and categories of words that co-occur with the polysemous words classified into the certain semantic division; performing a morphological analysis on the input text to divide the input text into a plurality of words; Identifying categories to which the plurality of words belong, Identifying the polysemous words and the semantic classifications of the polysemous words among the multiple words included in the input text based on the identified category and the co-occurrence rate table; A vector according to a semantic classification of the polysemous word is assigned to the polysemous word included in the input text. An information processing program that causes a process to be executed.

2. The information processing program according to claim 1, further comprising a process of calculating vectors of words and vectors of semous words distinguished by semantic division by executing Poincaré embedding, and a process of assigning the vectors assigning vectors to the semous words and the words contained in the input text based on a calculation result of the process of calculating the vectors.

3. 3. The information processing program according to claim 2, wherein the process of calculating the vector further calculates word vectors of phrases and technical terms by the Poincaré embedding.

4. 1. A computer-implemented information processing method, comprising: classifying a plurality of words included in a predetermined document data into categories defined in a thesaurus, and generating a co-occurrence rate table that defines the co-occurrence rate of each category for polysemous words classified into a certain semantic division, based on a relationship between polysemous words classified into a certain semantic division included in the predetermined document data and categories of words that co-occur with the polysemous words classified into the certain semantic division; performing a morphological analysis on the input text to divide the input text into a plurality of words; Identifying categories to which the plurality of words belong, Identifying the polysemous words and the semantic classifications of the polysemous words among the multiple words included in the input text based on the identified category and the co-occurrence rate table; A vector according to a semantic classification of the polysemous word is assigned to the polysemous word included in the input text.

2. An information processing method comprising:

5. A generating unit which classifies a plurality of words included in a specified document data into categories defined in a thesaurus, and generates a co-occurrence rate table which defines the co-occurrence rate of each category for polysemous words classified into a certain semantic division, based on the relationship between polysemous words classified into a certain semantic division included in the specified document data and categories of words which co-occur with the polysemous words classified into the certain semantic division; an assignment unit that performs a morphological analysis on an input text to divide the input text into a plurality of words, identifies categories to which the plurality of words belong, identifies polysemous words and semantic classifications of the polysemous words among the plurality of words included in the input text based on the identified categories and the co-occurrence rate table, and assigns vectors according to the semantic classifications of the polysemous words to the polysemous words included in the input text; An information processing device comprising:

Citation Information

Patent Citations

  • Language resource information generation device and method, and program and recording medium

    JP2010282517A

  • Apparatus and method for generation of morphological analyzer, and program

    JP2015022398A

  • Predicate term structure model generation apparatus, predicate term structure analysis apparatus, method and program

    JP2018206263A

  • Generation method, generation program, and information processing apparatus

    WO2020021609A1