Generation method and information processing device

JP7552675B2Active Publication Date: 2024-09-18FUJITSU LTD
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
JP2022193695
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2022-12-02
Publication Date
2024-09-18
Estimated Expiration
2039-04-19

Smart Images

  • Figure 0007552675000006
    Figure 0007552675000006
  • Figure 0007552675000012
    Figure 0007552675000012
  • Figure 0007552675000019
    Figure 0007552675000019
Patent Text Reader

Abstract

This reduces the decrease in search accuracy caused by variations in the text of the search query. [Solution] An information processing device accepts a text file, identifies a first vector corresponding to one of the words contained in the accepted text file, refers to a memory unit that stores multiple vectors corresponding to multiple words, identifies a second vector from the multiple vectors that has a similarity to the first vector that is equal to or greater than a standard, and generates information that associates information indicating that the text file contains one of the words with the second vector.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a specification method and the like. [Background technology]

[0002] In conventional search techniques, when compressing and encoding text such as technical books, the text is lexically analyzed, and an inverted index that associates words with the offsets of the words in the text is generated and used for text search. For example, when a search query (text to be searched) is specified, the inverted index is used to identify offsets corresponding to the words in the search query, and text containing the words in the search query is searched. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2006-119714 A [Patent Document 2] JP 2018-180789 A [Patent Document 3] JP 2006-146355 A [Patent Document 4] JP 2002-230021 A [Non-patent literature]

[0004] [Non-Patent Document 1] Masajiro Iwasaki, "Release of NGT for high-speed neighborhood search in high-dimensional vector data",<https: / / techblog.yahoo.co.jp / lab / searchlab / ngt-1.0.0 / > , Retrieved March 12, 2019 Summary of the Invention [Problem to be solved by the invention]

[0005] However, in the above-mentioned conventional techniques, there are cases where a search cannot be performed due to variations in the notation of words and sentences in the granularity between the text of a technical book and the text of a search query.

[0006] For example, because the inverted index described above maps words to their offsets, it is difficult to search for words that do not match the words in the search query, even if they have the same meaning.

[0007] In one aspect, the present invention aims to provide an identification method, a generation method, a dimensionality reduction method, a display method, and an information processing device that suppress a decrease in search accuracy caused by spelling variations in the text of a search query. [Means for solving the problem]

[0008] In the first proposal, a computer executes the following process: the computer receives a text file, identifies a first vector corresponding to any one of the words included in the received text file, refers to a storage unit that stores a plurality of vectors corresponding to a plurality of words, identifies a second vector among the plurality of vectors that has a similarity to the first vector equal to or greater than a reference level, and generates information that associates information indicating that any one of the words is included in the text file with the second vector. Effect of the Invention

[0009] It is possible to suppress a decrease in search accuracy caused by variations in the text of the search query. [Brief description of the drawings]

[0010] [Figure 1] FIG. 1 is a diagram (1) for explaining the process of the information processing device according to the present embodiment. [Diagram 2] FIG. 2 is a diagram (2) for explaining the process of the information processing device according to the present embodiment. [Diagram 3] FIG. 3 is a functional block diagram illustrating a configuration of an information processing device according to the present embodiment. [Figure 4]FIG. 4 is a diagram illustrating an example of a data structure of the word vector table. [Diagram 5] FIG. 5 is a diagram illustrating an example of a data structure of a dimensionality reduction table. [Figure 6] FIG. 6 is a diagram illustrating an example of a data structure of a word index. [Figure 7] FIG. 7 is a diagram illustrating an example of the data structure of the synonym index. [Figure 8] FIG. 8 is a diagram illustrating an example of a data structure of the synonymous sentence index. [Figure 9A] FIG. 9A is a diagram for explaining the distributed arrangement of basis vectors. [Figure 9B] FIG. 9B is a diagram for explaining dimensionality reduction. [Figure 10] FIG. 10 is a diagram illustrating an example of a process of hashing an inverted index. [Figure 11] FIG. 11 is a diagram for explaining the dimension restoration. [Figure 12] FIG. 12 is a diagram for explaining the process of restoring a hashed bitmap. [Figure 13] FIG. 13 is a diagram illustrating an example of the graph information. [Figure 14] FIG. 14 is a flowchart (1) showing a processing procedure of the information processing device according to the present embodiment. [Figure 15] FIG. 15 is a flowchart (2) showing the processing procedure of the information processing device according to the present embodiment. [Figure 16] FIG. 16 is a diagram showing an example of a plurality of synonym indexes generated by the generation processing unit. [Figure 17] FIG. 17 is a diagram illustrating an example of a hardware configuration of a computer that realizes the same functions as the information processing device according to the present embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] Hereinafter, the present invention will be described in detail with reference to the accompanying drawings with respect to embodiments of the present invention, which disclose a method for specifying, a method for generating, a method for reducing dimensions, a method for displaying, and an information processing device. Note that the present invention is not limited to these embodiments. EXAMPLES

[0012] 1 and 2 are diagrams for explaining the processing of the information processing device according to the present embodiment. First, FIG. 1 will be explained. As shown in FIG. 1, a dimensionality reduction unit 150b of the information processing device acquires a word vector table 140a. The word vector table 140a is a table that holds information on the vector of each word. The vector of each word included in the word vector table 140a is a vector calculated in advance using Word2Vec or the like, and is, for example, a 200-dimensional vector.

[0013] The dimension compression unit 150b generates the dimension compressed word vector table 140b by compressing the dimension of each word vector in the word vector table 140a. The dimension compressed word vector table 140b is a table that holds information on the vector of each word that has been dimension compressed. The vector of each word included in the dimension compressed word vector table 140b is a three-dimensional vector.

[0014] The dimension reduction unit 150b reduces each of the 200 vectors a i e i (i=1~200) are distributed equally in a circle. i " is a basis vector. In the following description, the component decomposed vector is referred to as a basis vector. The dimension reduction unit 150b selects one prime basis vector and multiplies the basis vector by a value obtained by orthogonally transforming the basis vector of the other dimension. The dimension reduction unit 150b performs the above process on the three prime basis vectors that are divided by the prime number "3" and distributed, thereby reducing the dimension of a 200-dimensional vector to a three-dimensional vector. For example, the dimension reduction unit 150b reduces the dimension of a 200-dimensional vector to a three-dimensional vector by calculating the values ​​of the prime basis vectors of "1", "67", and "131".

[0015] In this embodiment, a three-dimensional vector is described as an example, but vectors of other dimensions may be used. By dividing by a prime number "three or more" and selecting a base vector of distributed prime numbers, it is possible to realize highly accurate dimension restoration, although it is lossy. Increasing the dividing prime number improves the accuracy, but the compression rate decreases. In the following description, a 200-dimensional vector is appropriately referred to as a "vector", and a vector compressed to three dimensions is appropriately referred to as a "compressed vector".

[0016] The generation processing unit 150c of the information processing device accepts a plurality of text files 10A. The text files 10A are files having a plurality of sentences each composed of a plurality of words. The generation processing unit 150c generates a plurality of compressed text files 10B by encoding each of the plurality of text files 10A on a word-by-word basis based on the dictionary information 15.

[0017] When generating the compressed text file 10B based on the text file 10A, the generation processor 150c generates a word index 140c, a synonym index 140d, a synonymous sentence index 140e, a sentence vector 140f, and a dynamic dictionary 140g.

[0018] The dictionary information 15 is information (static dictionary) that associates words with codes. The generation processing unit 150c refers to the dictionary information 15, assigns each word in the text file 10A to a code, and compresses it. The generation processing unit 150c compresses words in the text file 10A that do not exist in the dictionary information 15 or words that occur infrequently by assigning dynamic codes, and registers the words and dynamic codes in the dynamic dictionary 140g.

[0019] Word index 140c associates a word code (or a word ID) with the position of the code of the word. The position of the code of the word is indicated by an offset in text compressed file 10B. The offset may be defined in any way in multiple text compressed files 10B. For example, if the offset of the code of the last word in a previous text compressed file is "N", the offset of the code of the first word in the next text compressed file may be "N+1", and so on.

[0020] The synonym index 140d associates a compressed vector of a word with the position of the code of the word that corresponds to the compressed vector. The position of the code of the word is indicated by an offset in the text compression file 10B. Here, the same compressed vector is assigned to words that are synonyms, even if the codes of the words are different. For example, the word A 1 , A 2 , A 3 are synonyms such as "apple" (Japanese), "apple" (English), and "pomme" (French), then word A 1 , A 2 , A 3 The compressed vectors of have almost identical values.

[0021] The synonymous sentence index 140e associates the compression vector of a sentence with the position of the sentence corresponding to the compression vector. The position of a sentence in the text compression file 10B is the position of the code of the first word among the codes of the words included in the sentence. The generation processing unit 150c calculates the compression vector of the sentence by accumulating the compression vector of each word included in the sentence, and stores it in the sentence vector table 140f. The generation processing unit 150c calculates the similarity of the compression vector of each sentence included in the text file 10A, and classifies multiple sentences whose similarity is equal to or greater than a threshold into the same group. The generation processing unit 150c identifies each sentence belonging to the same group as a synonymous sentence and assigns the same compression vector. Note that a three-dimensional compression vector is assigned to each sentence vector. It is also possible to distribute and assign each sentence vector to a circle in the order of appearance, and compress multiple sentences collectively.

[0022] As described above, the information processing device according to the present embodiment generates a dimension-compressed word vector table 140b by compressing the dimension of the word vector table 140a, and when compressing the text file 10A, generates a compressed vector, a synonym index 140d, and a synonym sentence index 140e that define the appearance positions of synonyms and synonym sentences corresponding to the compressed vector. The synonym index 140d is information that assigns the same compressed vector to each word belonging to the same synonym, and defines the appearance position of the word (synonym) corresponding to the compressed vector. In addition, the synonym sentence index 140e is information that assigns the same compressed vector to each sentence belonging to the same synonym sentence, and defines the appearance position of the sentence (synonym sentence) corresponding to the compressed vector. Therefore, the amount of data can be reduced compared to a method of assigning a 200-dimensional vector to each word or sentence.

[0023] 2. When the extraction unit 150d of the information processing device receives a search query 20A, the extraction unit 150d extracts characteristic words 21 and characteristic sentences 22 based on the dimension reduced word vector table 140b.

[0024] For example, the extraction unit 150d calculates compressed vectors of multiple sentences included in the search query 20A. First, the extraction unit 150d obtains compressed vectors of multiple words included in one sentence from the dimension compressed word vector table 140b, and restores the compressed vectors of the obtained words to 200-dimensional vectors.

[0025] The extraction unit 150d distributes each basis vector decomposed into 200 dimensions equally in a circular shape. The extraction unit 150d selects one basis vector other than the basis vectors of the three prime numbers "1", "67", and "131" divided by the prime number "3" selected by the dimension reduction unit 150b, and calculates the value of the selected one basis vector by accumulating the values ​​obtained by orthogonally transforming the basis vectors of the prime numbers "1", "67", and "131" for the selected basis vector. For example, the extraction unit 150d repeatedly executes the above process for each basis vector corresponding to "2 to 66, 68 to 130, and 132 to 200". By executing the above process, the extraction unit 150d restores the compressed vector of each word included in the search query 20A to a 200-dimensional vector.

[0026] Next, extraction unit 150d calculates a vector of a sentence by integrating vectors of multiple words included in one sentence. Extraction unit 150d similarly calculates vectors of the sentences for the other sentences included in search query 20A.

[0027] The extraction unit 150d calculates the vector of the search query 20A by integrating the vectors of multiple sentences included in the search query 20A. In the following description, the vector (200 dimensions) of the search query 20A is referred to as a "query vector."

[0028] The extraction unit 150d sorts the values ​​of each dimension of the query vector in descending order and identifies the top few dimensions. In the following description, the top few dimensions are referred to as "characteristic dimensions." The extraction unit 150d extracts, from among the multiple sentences included in the search query 20A, sentences that include many vector values ​​of the characteristic dimensions as characteristic sentences 22. In addition, the extraction unit 150d extracts, from among the multiple words included in the search query 20A, words that include many vector values ​​of the characteristic dimensions as characteristic words 21.

[0029] The identification unit 150e compares the compression vector of the characteristic word 21 with the compression vector of the synonym index 140d, and identifies the compression vector of the synonym index 140d whose similarity to the compression vector of the characteristic word 21 is equal to or greater than a threshold value. The identification unit 150e searches the multiple text compressed files 10B for a text compressed file corresponding to the characteristic word 21, based on the offset corresponding to the identified compression vector, and generates the searched text compressed file as a first candidate list 31.

[0030] The identification unit 150e compares the compression vector of the characteristic sentence 22 with the compression vector of the synonymous sentence index 140e, and identifies a compression vector of the synonymous sentence index 140e whose similarity to the compression vector of the characteristic sentence 22 is equal to or greater than a threshold. The identification unit 150e searches the multiple text compressed files 10B for a text compressed file corresponding to the characteristic sentence 22, based on the offset corresponding to the identified compression vector, and generates the searched text compressed file as a second candidate list 32.

[0031] As described above, when a search query 20A is given, the information processing device identifies the feature dimension of the search query 20A, and identifies feature words 21 and feature sentences 22 that contain many vector values ​​of the feature dimension. The information processing device generates a first candidate list 31 based on the compressed vector of the feature word 21 and the synonym index 140d. The information processing device generates a second candidate list 32 based on the compressed vector of the feature sentence 22 and the synonym sentence index 140e. The compressed vectors used in the feature words 21, feature sentences 22, synonym index 140d, and synonym sentence index 140e are three-dimensional vectors, so that it is possible to detect text compression files that contain words and sentences similar to the search query 20A while suppressing the cost of similarity calculation.

[0032] Next, an example of the configuration of the information processing device according to this embodiment will be described. Fig. 3 is a functional block diagram showing the configuration of the information processing device according to this embodiment. As shown in Fig. 3, this 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.

[0033] The communication unit 110 is a processing unit that executes data communication with an external device (not shown) via a network or the like. The communication unit 110 corresponds to the communication device. For example, the communication unit 110 may receive information such as a text file 10A, dictionary information 15, and a search query 20A from the external device.

[0034] The input unit 120 is an input device for inputting various pieces of information to the information processing device 100. The input unit 120 corresponds to a keyboard, a mouse, a touch panel, etc. For example, a user may operate the input unit 120 to input a search query 20A.

[0035] The display unit 130 is a display device that displays various information output from the control unit 150. The display unit 130 corresponds to a liquid crystal display, a touch panel, etc. For example, the display unit 130 displays the first candidate list 31 and the second candidate list 32 identified by the identification unit 150e.

[0036] The storage unit 140 has a text file 10A, a text compressed file 10B, a word vector table 140a, a dimensional compressed word vector table 140b, a word index 140c, a synonym index 140d, and a synonymous sentence index 140e. The storage unit 140 has a sentence vector table 140f, a dynamic dictionary 140g, dictionary information 15, a search query 20A, a first candidate list 31, and a second candidate list 32. The storage unit 140 corresponds to a semiconductor memory element such as a RAM (Random Access Memory), a ROM (Read Only Memory), or a flash memory, or a storage device such as a HDD (Hard Disk Drive).

[0037] The text file 10A is information including a plurality of sentences. A sentence is information including a plurality of words. For example, sentences are separated by punctuation marks, periods, etc. In this embodiment, a plurality of text files 10A are registered in the storage unit 140.

[0038] The text compressed file 10B is information obtained by compressing the text file 10A. For example, the text compressed file 10A is compressed on a word-by-word basis based on the dictionary information 15 to generate the text compressed file 10B.

[0039] The word vector table 140a is a table that holds information on vectors for each word. FIG. 4 is a diagram showing an example of a data structure of the word vector table. As shown in FIG. 4, the word vector table 140a associates word IDs with vectors of words. The word IDs uniquely identify words. Instead of the word IDs, the codes of words defined in the dictionary information 15 or the like may be used. The vectors are vectors calculated in advance using Word2Vec or the like, and are, for example, 200-dimensional vectors.

[0040] The dimension compressed word vector table 140b is a table that holds information on the compressed vector of each word that has been dimension compressed. Fig. 5 is a diagram showing an example of the data structure of the dimension compressed table. As shown in Fig. 5, the dimension compressed word vector table 140b associates a word ID with a compressed vector of the word. Note that the code of the word may be used instead of the word ID.

[0041] The word index 140c associates a word code (or a word ID) with the position (offset) of the word ID. FIG. 6 is a diagram showing an example of a data structure of a word index. In the word index 140c shown in FIG. 6, the horizontal axis indicates the offset of the text compression file 10B. The vertical axis corresponds to the word ID. For example, a flag "1" is set at the intersection of the row of the word ID "A01" and the column of the offset "2". This indicates that the code of the word with the word ID "A01" is located at offset "2" in the text compression file 10B.

[0042] The offset used in this embodiment is the offset when multiple text compressed files 10B are concatenated in order, and indicates the offset from the first text compressed file 10B. Although not shown in the figure, it is assumed that the offset that is the boundary between the text compressed files is set in the word index 140c. The same applies to the offset of the synonym index 140d and the offset of the synonymous sentence index 140e, which will be described later.

[0043] The synonym index 140d associates the compression vector of a word with the position (offset) of the code of the word corresponding to the compression vector. FIG. 7 is a diagram showing an example of the data structure of a synonym index. In the synonym index 140d shown in FIG. 7, the horizontal axis indicates the offset of the text compressed file 10B. The vertical axis corresponds to the compression vector of the word. The same compression vector is assigned to multiple words belonging to the same synonym. For example, the compression vector of the synonym "W 3 The flag "1" is set at the intersection of the line "_Vec1" and the offsets "1" and "6". Therefore, the compressed vector "W 3 This indicates that among the codes of multiple words belonging to the synonyms of "_Vec1", one of the codes is located at offsets "1" and "6" in the text compression file 10B. Note that each dimension of the compression vector of the synonym is divided by a certain threshold value, so the compression vector has a certain granularity.

[0044] The synonymous sentence index 140e associates the compression vector of a sentence with the position (offset) of the sentence corresponding to the compression vector. The position of a sentence in the text compression file 10B is the position of the code of the first word among the codes of words contained in the sentence. FIG. 8 is a diagram showing an example of the data structure of the synonymous sentence index. In the synonymous sentence index 140e shown in FIG. 8, the horizontal axis indicates the offset of the text compression file 10B. The vertical axis corresponds to the compression vector of the sentence. The same compression vector is assigned to multiple sentences belonging to synonymous sentences with the same meaning. For example, the compression vector of a synonymous sentence "S 3 The flag "1" is set at the intersection of the line "_Vec1" and the offsets "3" and "30". Therefore, the compressed vector "S 3 This indicates that the code of the first word of one of the multiple sentences belonging to the synonymous sentences of "_Vec1" is located at offsets "3" and "30" in the text compression file 10B. Note that each dimension of the compression vector of the synonymous sentences is divided by a certain threshold value, so the compression vector has a certain granularity.

[0045] The sentence vector table 140f is a table that holds information on the compression vector of a sentence. The dynamic dictionary 140g is information that dynamically associates low-frequency words that appear during compression encoding and words and codes that are not registered in the dictionary information 15. The dictionary information 15 is information (static dictionary) that associates words and codes.

[0046] The search query 20A includes information about a sentence to be searched for. The search query 20A may be a text file including multiple sentences.

[0047] The first candidate list 31 is a list that includes the text compression files 10B detected based on the characteristic words 21 extracted from the search query 20A.

[0048] The second candidate list 32 is a list that includes the text compression files 10B detected based on the characteristic sentences 22 extracted from the search query 20A.

[0049] Returning to the description of Fig. 3, the control unit 150 has a reception unit 150a, a dimensional compression unit 150b, a generation processing unit 150c, an extraction unit 150d, an identification unit 150e, and a graph generation unit 150f. The control unit 150 can be realized by a CPU, an MPU (Micro Processing Unit), or the like. The control unit 150 can also be realized by hardwired logic such as an ASIC (Application Specific Integrated Circuit) or an FPGA (Field Programmable Gate Array).

[0050] The reception unit 150a is a processing unit that receives various information from the communication unit 110 or the input unit 120. When the reception unit 150a receives a plurality of text files 10A, the reception unit 150a registers the plurality of text files 10A in the storage unit 140. When the reception unit 150a receives a search query 20A, the reception unit 150a registers the search query 20A in the storage unit 140.

[0051] The dimension reduction unit 150b is a processing unit that generates the dimension-reduced word vector table 140b by compressing the dimension of the vector of each word in the word vector table 140a. FIG. 9A is a diagram for explaining the distribution arrangement of the basis vectors. First, the dimension reduction unit 150b generates the 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 a i e i The relationship between is defined by equation (1).

[0052]

number

[0053] As shown in FIG. 9A, the dimensionality reduction unit 150b reduces the 200 basis vectors a 1 e 1 ~a 200 e 200For the basis vectors, positive (solid line + circular arrow) is distributed in the right semicircle and negative (dotted line + circular arrow) is distributed in the left semicircle. The angles between the basis vectors are assumed to be equal. For example, the dimensionality reduction unit 150b distributes the basis vectors a 1 e 1 ~a 200 e 200 In this embodiment, as an example, the dimensionality reduction unit 150b selects a basis vector of a prime number divided by the prime number "3" from 1 e 1 and the basis vector a 67 e 67 and the basis vector a 131 e 131 Select and.

[0054] FIG. 9B is a diagram for explaining dimensionality reduction. First, the dimensionality reduction unit 150b reduces the basis vector a 1 e 1 For the remaining basis vector a 2 e 2 ~a 200 e 200 Each of these is orthogonally transformed, and each of the orthogonally transformed basis vectors a 2 e 2 ~a 200 e 200 By accumulating the values ​​of 1 e 1 Calculate the value of

[0055] As shown in FIG. 9B, the dimensionality reduction unit 150b reduces the basis vector a 67 e 67 For the remaining basis vector a 1 e 1 (solid line + arrow), a 2 e 2 , a 3 e 3 ~a 66 e 66 , a 68 e 68 ~a 200 e 200 Each of these is orthogonally transformed, and each of the orthogonally transformed basis vectors a 1 e 1 ~a 66 e 66 , a68 e 68 ~a 200 e 200 By accumulating the values ​​of 67 e 67 Calculate the value of

[0056] The dimension reduction unit 150b reduces the basis vector a 131 e 131 For the remaining basis vector a 1 e 1 ~a 130 e 130 , a 132 e 132 ~a 200 e 200 Each of these is orthogonally transformed, and each of the orthogonally transformed basis vectors a 1 e 1 ~a 130 e 130 , a 132 e 132 ~a 200 e 200 By accumulating the values ​​of 131 e 131 Calculate the value of

[0057] The dimension reduction unit 150b reduces the dimension of a 200-dimensional vector to a compressed vector, and converts each component of the compressed vector into a basis vector a 1 e 1 The value of the basis vector a 67 e 67 The value of the basis vector a 131 e 131 The value of "value of 200" is set as "value of 300". As a result, the 200-dimensional vector can be dimensionally compressed into a 3-dimensional vector divided by the prime number "3". The dimension compression unit 150b may perform the dimensional compression using KL expansion or the like. The dimension compression unit 150b performs the above-mentioned dimensional compression for each word in the word vector table 140a, thereby generating the dimension-compressed word vector table 140b.

[0058] The generation processing unit 150c receives a plurality of text files 10A, performs lexical analysis on character strings included in the text files 10A, and divides the character strings into word units. The generation processing unit 150c compresses the words included in the plurality of text files 10A on a word-by-word basis based on the dictionary information 15, and generates a plurality of compressed text files 10B. The generation processing unit 150c compares the words in the text files 10A with the dictionary information 15, and compresses each word into a code. The generation processing unit 150c assigns a dynamic code to words in the text files 10A that do not exist in the dictionary information 15, compresses them, and registers the words and the dynamic codes in the dynamic dictionary 140g.

[0059] Simultaneously with the above-mentioned compression and encoding, the generation processing unit 150c generates a word index 140c, a synonym index 140d, a synonym sentence index 140e, and a sentence vector table 140f based on the text file 10A.

[0060] An example of the process in which the generation processor 150c generates the "word index 140c" will be described. When the generation processor 150c hits a specific word ID (word code) in the process of scanning and compressing words in the text file 10A from the beginning, it identifies an offset from the beginning and sets a flag "1" to the part of the word index 140c where the identified offset intersects with the word ID. The generation processor 150c generates the word index 140c by repeatedly executing the above process. The initial value of each part of the word index 140c is set to "0".

[0061] An example of the process in which the generation processor 150c generates the "synonym index 140d" will be described. In the process of scanning and compressing words in the text file 10A from the beginning, the generation processor 150c acquires a compressed vector corresponding to the word to be compressed from the dimensional compressed word vector table 140b. In the following description, this acquired compressed vector will be referred to as a "target compressed vector" as appropriate.

[0062] The generation processing unit 150c calculates the similarity between the target compressed vector and the compressed vector of each synonym having a certain granularity in the synonym index 140d, and identifies the compressed vector that has the highest similarity to the target compressed vector among the compressed vectors in the synonym index 140d. The generation processing unit 150c sets a flag "1" in the intersection of the row of the identified compressed vector and the column of the word offset of the target compressed vector in the synonym index 140d.

[0063] For example, the generation processing unit 150c calculates the similarity of the compressed vector based on the formula (2). The formula (2) shows a case where the similarity between vector A and vector B is calculated and the similarity of the compressed vector is evaluated.

[0064]

number

[0065] The generation processor 150c repeatedly executes the above process to generate the synonym index 140d. Note that the initial value of each part of the synonym index 140d is set to "0".

[0066] An example of the process of generating the "synonymous sentence index 140e" by the generation processing unit 150c will be described. In the process of scanning and compressing the words of the text file 10A from the beginning, the generation processing unit 150c obtains the compression vectors of each word (code) from the first word (code) of a sentence to the last word (code) of the sentence from the dimensional compressed word vector table 140b, and calculates the compression vector of one sentence by accumulating each obtained compression vector. Note that the first word of a sentence is the first word of a sentence or the word next to a punctuation mark. The last word of a sentence is the word before a punctuation mark. In the following description, the calculated compression vector of a sentence is appropriately referred to as a "target compression vector".

[0067] The generation processing unit 150c calculates the similarity between the target compressed vector and the compressed vector of each synonymous sentence having a certain granularity in the synonymous sentence index 140e, and identifies the compressed vector that has the maximum similarity to the target compressed vector among the compressed vectors in the synonymous sentence index 140e. The generation processing unit 150c calculates the similarity between the target compressed vector and each compressed vector based on formula (2). The generation processing unit 150c sets a flag "1" at the intersection of the row of the identified compressed vector and the column of the offset of the first word of the sentence for the target compressed vector in the synonymous sentence index 140e.

[0068] The generation processor 150c repeatedly executes the above process to generate the synonymous sentence index 140d. Note that the initial value of each part of the synonymous sentence index 140e is set to "0".

[0069] Incidentally, when generating the word index 140c, the synonym index 140d, and the synonym sentence index 140e, the generation processor 150c may associate the compressed vectors having a certain granularity with the thresholds of the respective basis vectors without using the formula (2) in order to reduce the amount of calculation. Also, in order to reduce the amount of information, each of the transposed indexes 140c, 140d, and 140e may be hashed.

[0070] Fig. 10 is a diagram for explaining an example of processing for hashing a transposed index. In the example explained in Fig. 10, a 32-bit register is assumed, and the bitmap of each row of the word index 140c is hashed based on the prime numbers (bases) "29" and "31". Here, as an example, a case where hashed bitmaps h11 and h12 are generated from bitmap b1 will be explained.

[0071] Bitmap b1 indicates a bitmap obtained by extracting a certain row of a word index (for example, word index 140c shown in FIG. 6). Hashed bitmap h11 is a bitmap hashed using base "29". Hashed bitmap h12 is a bitmap hashed using base "31".

[0072] The generation processing unit 150c associates the remainder obtained by dividing the position of each bit in the bitmap b1 by one low with the position of the hashed bitmap. When a "1" is set in the position of the bit in the corresponding bitmap b1, the generation processing unit 150c performs a process of setting a "1" in the associated position of the hashed bitmap.

[0073] An example of a process for generating a hashed bitmap h11 with a base of "29" from a bitmap b1 will be described. First, the generation processing unit 150c copies information from positions "0 to 28" of the bitmap b1 to the hashed bitmap h11. Next, since the remainder when the bit position "35" of the bitmap b1 is divided by the base "29" is "6", the position "35" of the bitmap b1 is associated with the position "6" of the hashed bitmap h11. Since "1" is set to the position "35" of the bitmap b1, the generation processing unit 150c sets "1" to the position "6" of the hashed bitmap h11.

[0074] The remainder when the bit position "42" of the bit in the bitmap b1 is divided by the low "29" is "13", so the position "42" of the bitmap b1 corresponds to the position "13" of the hashed bitmap h11. Since "1" is set to the position "42" of the bitmap b1, the generation processing unit 150c sets "1" to the position "13" of the hashed bitmap h11.

[0075] The generation processing unit 150c repeatedly executes the above process for positions "29" and above in the bitmap b1 to generate a hashed bitmap h11.

[0076] An example of a process for generating a hashed bitmap h12 with a base of "31" from a bitmap b1 will be described. First, the generation processing unit 150c copies information from positions "0 to 30" of the bitmap b1 to the hashed bitmap h12. Next, since the remainder when the bit position "35" of the bitmap b1 is divided by the base "31" is "4", the position "35" of the bitmap b1 is associated with the position "4" of the hashed bitmap h12. Since "1" is set to the position "35" of the bitmap b1, the generation processing unit 150c sets "1" to the position "4" of the hashed bitmap h12.

[0077] The remainder when the bit position "42" of the bit in the bitmap b1 is divided by the low "31" is "11", so the position "42" of the bitmap b1 corresponds to the position "11" of the hashed bitmap h12. Since "1" is set to the position "42" of the bitmap b1, the generation processing unit 150c sets "1" to the position "11" of the hashed bitmap h12.

[0078] The generation processing unit 150c repeatedly executes the above process for positions equal to or greater than position "31" in the bitmap b1, thereby generating a hashed bitmap h12.

[0079] The generation processor 150c hashes the word index 140c by compressing each row of the word index 140c using the folding technique described above. The hashed bitmaps of bases "29" and "31" are given information on the row (type of encoded word) of the original bitmap. In FIG. 10, the generation processor 150c hashes the word index 140c, but the synonym index 140d and the synonymous sentence index 140e are hashed in the same manner.

[0080] Returning to the description of FIG. 3, the extraction unit 150d calculates compressed vectors of multiple sentences included in the search query 20A. First, the extraction unit 150d obtains compressed vectors of multiple words included in one sentence from the dimension compressed word vector table 140b, and restores the compressed vectors of the obtained words to 200-dimensional vectors. The compressed vectors in the dimension compressed word vector table 140b are calculated using the basis vector a 1 e 1 The value of the basis vector a 67 e 67 The value of the basis vector a 133 e 133 is a vector whose values ​​are the dimensions of each.

[0081] FIG. 11 is a diagram for explaining dimension restoration. In FIG. 11, as an example, a basis vector a divided by the prime number "3" is 1 e 1 , basis vector a 67 e 67 , basis vector a 131 e 131 Based on this, the basis vector a 45 e 45 The extraction unit 150d restores the value of the basis vector a 45 e 45 For the basis vector a 1 e 1 , basis vector a 67 e 67 , basis vector a 131 e 131 By accumulating the orthogonal transformed values, the basis vector a 45 e 45 Restore the value of

[0082] The extraction unit 150d extracts the basis vector a 45 e 45 Similarly, by repeatedly executing the above process, the three-dimensional compressed vector is restored to a 200-dimensional vector.

[0083] Next, the extraction unit 150d calculates a vector of a sentence by integrating vectors of multiple words included in one sentence using the dimension reduced word table 140b. The extraction unit 150d similarly calculates vectors of sentences included in the search query 20A. The extraction unit 150d also calculates a "query vector" of the search query 20A by integrating vectors of multiple sentences included in the search query 20A.

[0084] The extraction unit 150d sorts the values ​​of each dimension of the query vector in descending order and identifies the top "feature dimension." Of the multiple sentences included in the search query 20A, the extraction unit 150d extracts sentences that include many vector values ​​of the feature dimension as characteristic sentences 22. In addition, the extraction unit 150d extracts words that include many vector values ​​of the feature dimension as characteristic words 21 from the multiple words included in the search query 20A. The extraction unit 150d outputs information on the characteristic words 21 and information on the characteristic sentences 22 to the identification unit 150e.

[0085] The identification unit 150e compares the compression vector of the characteristic word 21 with the compression vector of the synonym index 140d, and identifies the compression vector of the synonym index 140d whose similarity to the compression vector of the characteristic word 21 is equal to or greater than a threshold value. The identification unit 150e searches the multiple text compressed files 10B for a text compressed file corresponding to the characteristic word 21, based on the offset corresponding to the identified compression vector, and generates the searched text compressed file as a first candidate list 31.

[0086] When the specification unit 150e calculates the similarity between the compressed vector of the characteristic word 21 and the compressed vector of the synonym index 140d, the formula (2) is used. Here, the compressed vector of the synonym index 140d whose similarity to the compressed vector of the characteristic word 21 is equal to or greater than a threshold value is referred to as a "similar compressed vector."

[0087] When there are multiple similar compression vectors, the identification unit 150e sorts the similar compression vectors in descending order of similarity and ranks the similar compression vectors in descending order of similarity. When generating the first candidate list 31, the identification unit 150e registers the searched text compressed files in the first candidate list 31 based on the offset corresponding to the similar compression vector with the greater similarity. The identification unit 150e may register the text compressed files in the first candidate list 31 in rank order.

[0088] The identification unit 150e compares the compression vector of the characteristic sentence 22 with the compression vector of the synonymous sentence index 140e, and identifies a compression vector of the synonymous sentence index 140e whose similarity to the compression vector of the characteristic sentence 22 is equal to or greater than a threshold. The identification unit 150e searches the multiple text compressed files 10B for a text compressed file corresponding to the characteristic sentence 22, based on the offset corresponding to the identified compression vector, and generates the searched text compressed file as a second candidate list 32.

[0089] The identification unit 150e decrypts each of the text compressed files 10B registered in the first candidate list 31 based on the dictionary information 15 and the dynamic dictionary 140g, and outputs the decrypted first candidate list 31 to the display unit 130 for display. The identification unit 150e may also transmit the decrypted first candidate list 31 to the external device that transmitted the search query 20A.

[0090] When the identification unit 150e calculates the similarity between the compressed vector of the characteristic sentence 22 and the compressed vector of the synonymous sentence index 140e, the formula (2) is used. Here, the compressed vector of the synonymous sentence index 140e whose similarity with the compressed vector of the characteristic sentence 22 is equal to or greater than a threshold value is referred to as a "similar compressed vector."

[0091] When there are multiple similar compression vectors, the identification unit 150e sorts the similar compression vectors in descending order of similarity and ranks the similar compression vectors in descending order of similarity. When generating the second candidate list 32, the identification unit 150e registers the searched text compressed files in the second candidate list 32 based on the offset corresponding to the similar compression vector with the greater similarity. The identification unit 150e may register the text compressed files in the first candidate list 31 in rank order.

[0092] The identification unit 150e decrypts each of the text compressed files 10B registered in the second candidate list 32 based on the dictionary information 15 and the dynamic dictionary 140g, and outputs the decrypted second candidate list 32 to the display unit 130 for display. The identification unit 150e may also transmit the decrypted second candidate list 32 to the external device that transmitted the search query 20A.

[0093] Incidentally, when the synonym index 140d and the synonymous sentence index 140e are hashed, the identification unit 150e restores the hashed bitmaps. Fig. 12 is a diagram for explaining a process of restoring a hashed bitmap. Here, as an example, a case will be explained in which the identification unit 150e restores a bitmap b1 based on the hashed bitmap h11 and the hashed bitmap h12.

[0094] The specification unit 150e generates an intermediate bitmap h11' from the hashed bitmap h11 of base "29." The specification unit 150e copies the values ​​at positions 0 to 28 of the hashed bitmap h11 to positions 0 to 28 of the intermediate bitmap h11', respectively.

[0095] For values ​​after position 29 in the intermediate bitmap h11', the specification unit 150e repeatedly executes a process of copying the values ​​at positions 0 to 28 in the hashed bitmap h11 for each "29." The example shown in Fig. 12 shows an example in which the values ​​at positions 0 to 14 in the hashed bitmap h11 are copied to positions 29 to 43 in the intermediate bitmap h11'.

[0096] The specification unit 150e generates an intermediate bitmap h12' from the hashed bitmap h12 of base "31." The specification unit 150e copies the values ​​at positions 0 to 30 of the hashed bitmap h12 to positions 0 to 30 of the intermediate bitmap h12', respectively.

[0097] For values ​​after position 31 in the intermediate bitmap h12', the specification unit 150e repeatedly executes a process of copying the values ​​at positions 0 to 30 in the hashed bitmap h12 for each "31." The example shown in Fig. 12 shows an example in which the values ​​at positions 0 to 12 in the hashed bitmap h12 are copied to positions 31 to 43 in the intermediate bitmap h12'.

[0098] After generating the intermediate bitmap h11' and the intermediate bitmap h12', the identification unit 150e performs an AND operation on the intermediate bitmap h11' and the intermediate bitmap h12' to restore the bitmap b1 before hashing. The identification unit 150e repeats the same process for the other hashed bitmaps to restore each bitmap corresponding to the word code (restores the synonym index 140d and the synonymous sentence index 140e).

[0099] The graph generating unit 150f is a processing unit that generates graph information based on the specified text file 10A when it receives the designation of the text file 10A (or the text compression file 10B) via the input unit 120 or the like. FIG. 13 is a diagram showing an example of the graph information. The graph G10 shown in FIG. 13 is a graph showing the position corresponding to the compression vector of each word included in the text file 10A and the distribution state of the word. The graph G11 is a graph showing the position corresponding to the compression vector of each sentence included in the text file 10A and the transition state of the sentence. The graph G12 is a graph showing the position corresponding to the compression vector obtained by adding up a plurality of sentence vectors of the text file 10A. The horizontal axis of the graphs G10 to G12 is an axis corresponding to the first dimension of the compression vector, and the vertical axis is an axis corresponding to the second dimension (a dimension different from the first dimension). For example, when graphing a university syllabus (lecture summary), the horizontal axis is set to the era or year, and the vertical axis is set to the dimension related to the region or place. It is assumed that the first and second dimensions are set in advance, and their values ​​are respectively accumulated and transformed from the three-dimensional compressed vector by orthogonal transformation.

[0100] An example of the process of the graph generating unit 150f generating the graph G10 will be described. The graph generating unit 150f performs lexical analysis on the character string included in the text file 10A and extracts words from the beginning. The graph generating unit 150f compares the extracted words with the dimension compressed word vector table 140b to identify compressed vectors, and generates the graph 10 by repeatedly executing a process of plotting points on the graph G10 positions corresponding to the first and second dimension values ​​from the identified compressed vectors.

[0101] An example of a process in which the graph generating unit 150f generates the graph G11 will be described. The graph generating unit 150f performs lexical analysis on character strings included in the text file 10A and extracts sentences in order from the beginning. The graph generating unit 150f compares each word included in the sentence with the dimension compressed word vector table 140b to identify the compressed vector of the word, and executes a process of calculating the compressed vector of the sentence for each sentence by integrating the words included in the sentence. The graph generating unit 150f repeatedly executes a process of plotting points on the graph G11 positions corresponding to the first and second dimension values ​​for the compressed vector of each sentence, thereby generating the graph 10. The graph generating unit 150f may connect the points of the graph G11 according to the order of appearance of the sentences included in the text file 10A.

[0102] An example of a process in which the graph generating unit 150f generates the graph G12 will be described. The graph generating unit 150f performs lexical analysis on a character string included in the text file 10A and extracts sentences from the beginning. The graph generating unit 150f compares each word included in the sentence with the dimension compressed word vector table 140b to identify the compressed vector of the word, and executes a process of calculating the compressed vector of the sentence for each sentence by accumulating the words included in the sentence. In addition, the graph generating unit 150f calculates the compressed vector of the text file 10A by accumulating the compressed vector of each sentence. The graph generating unit 150f generates the graph G12 by plotting the compressed vector of the text file 10A at points on the graph G11 corresponding to the first dimension value and the second dimension value.

[0103] In the above description, the graph generating unit 150f generates the graphs G10 to G12 separately, but the graph generating unit 150f may generate the graphs G10 to G12 simultaneously. For example, the graph generating unit 150f may calculate the compression vector of the sentence and the compression vector of the text file 10A together in the process of performing a lexical analysis on a character string included in the text file 10A, extracting words in order from the beginning, and identifying a compression vector.

[0104] Next, an example of a processing procedure of the information processing device 100 according to the present embodiment will be described. Fig. 14 is a flowchart (1) showing the processing procedure of the information processing device according to the present embodiment. The reception unit 150a of the information processing device 100 receives the text file 10A and registers it in the storage unit 140 (step S101).

[0105] The dimensionality reduction unit 150b of the information processing device 100 acquires the word vector table 140a (step S102). The dimensionality reduction unit 150b generates the dimensionality reduced word vector table 140b by reducing the dimensions of each vector in the word vector table (step S103).

[0106] When compressing the text file 10A, the generation processing unit 150c of the information processing device 100 uses the dimension compressed word vector table 140b to generate a word index 140c, a synonym index 140d, a synonym sentence index 140e, a sentence vector table 140f, and a dynamic dictionary 140g (step S104).

[0107] The generation processing unit 150c registers the word index 140c, the synonym index 140d, the synonymous sentence index 140e, the sentence vector table 140f, and the dynamic dictionary 140g in the storage unit 140, and generates the text compression file 10B (step S105).

[0108] 15 is a flowchart (2) showing the processing procedure of the information processing device according to the present embodiment. The receiving unit 150a of the information processing device 100 receives the search query 20A (step S201). The extracting unit 150d of the information processing device 100 calculates a compressed vector of each sentence included in the search query 20A based on the dimension compressed word vector table 140b (step S202).

[0109] The extraction unit 150d restores the dimension of the compressed vector of each sentence to 200 dimensions and identifies the feature dimension (step S203). The extraction unit 150d extracts feature words and feature sentences based on the feature dimension, and identifies the compressed vectors of the feature words and the compressed vectors of the feature sentences (step S204).

[0110] The identification unit 150e of the information processing device 100 generates a first candidate list 31 based on the compression vector of the characteristic word and the synonym index, and outputs it to the display unit 130 (step S205). The identification unit 150e generates a second candidate list 32 based on the compression vector of the characteristic sentence and the synonym sentence index 140e, and outputs it to the display unit 130 (step S206).

[0111] Next, the effect of the information processing device 100 according to the present embodiment will be described. The information processing device 100 generates a dimension-compressed word vector table 140b by compressing the dimension of the word vector table 140a, and generates a synonym index 140d and a synonymous sentence index 140e when compressing the text file 10A. The synonym index 140d is information that assigns the same compressed vector to each word belonging to the same synonym, and defines the position where the word (synonym) corresponding to the compressed vector appears. The synonymous sentence index 140e is information that assigns the same compressed vector to each sentence belonging to the same synonymous sentence, and defines the position where the sentence (synonymous sentence) corresponding to the compressed vector appears. Therefore, the amount of data can be reduced compared to the conventional method of assigning a 200-dimensional vector to each word.

[0112] When a search query 20A is given, the information processing device 100 identifies the feature dimension of the search query 20A, and identifies the feature word 21 and the feature sentence 22 that maximize the vector value of the feature dimension. The information processing device 100 generates a first candidate list 31 based on the compressed vector of the feature word 21 and the synonym index 140d. The information processing device 100 generates a second candidate list 32 based on the compressed vector of the feature sentence 22 and the synonym sentence index 140e. The compressed vectors used in the feature word 21, the feature sentence 22, the synonym index 140d, and the synonym sentence index 140e are three-dimensional vectors, so that it is possible to detect a text compression file 10B that includes words and sentences similar to the search query 20A while suppressing the cost of similarity calculation.

[0113] The information processing device 100 generates and displays a graph G10 based on the compression vectors of multiple words included in the text file 10A, a graph G11 based on the compression vectors of multiple sentences, and a graph G12 based on the compression vector of the text file 10A. This makes it possible to visualize words, sentences, and text files (texts).

[0114] Incidentally, the information processing device 100 according to the present embodiment uses one synonym index 140d to detect the text compression file 10B including the characteristic word extracted from the search query 20A and generates the first candidate list 31, but is not limited to this. The information processing device 100 may generate multiple synonym indexes 140d with different granularities (different classification levels) and generate the first candidate list 31 using the multiple synonym indexes 140d.

[0115] Fig. 16 is a diagram showing an example of a plurality of synonym indexes generated by the generation processing unit. In Fig. 16, as an example, a case where three synonym indexes 140d-1, 140d-2, and 140d-3 are generated will be described. A first reference value, a second reference value, and a third reference value are set for the synonym indexes 140d-1, 140d-2, and 140d-3, respectively. The magnitude relationship between the reference values ​​is first reference value<second reference value<third reference value. The synonym index 140d-1 has the smallest granularity, followed by the synonym index 140d-2 and the synonym index 140d-3 in that order.

[0116] In the process of scanning and compressing words in the text file 10A from the beginning, the generation processing unit 150c repeatedly executes a process of acquiring compressed vectors corresponding to words to be compressed from the dimensional compressed word vector table 140b.

[0117] The generation processing unit 150c calculates the similarity of each compressed vector, and determines that a group of compressed vectors whose similarity is equal to or greater than a first reference value is a synonym. The generation processing unit 150c specifies the average value of multiple compressed vectors included in the same group as a representative value of multiple compressed vectors included in the same group, and sets a flag "1" in the synonym index 140d-1 based on the representative value (compressed vector) and the offset of the word corresponding to the compressed vector. The generation processing unit 150c sets each flag in the synonym index 140d-1 by repeatedly executing the above process for each group.

[0118] The generation processing unit 150c calculates the similarity of each compressed vector, and determines that a group of compressed vectors whose similarity is equal to or greater than a second reference value is a synonym. The generation processing unit 150c specifies the average value of multiple compressed vectors included in the same group as a representative value of multiple compressed vectors included in the same group, and sets a flag "1" in the synonym index 140d-2 based on the representative value (compressed vector) and the offset of the word corresponding to the compressed vector. The generation processing unit 150c sets each flag in the synonym index 140d-2 by repeatedly executing the above process for each group.

[0119] The generation processing unit 150c calculates the similarity of each compressed vector, and determines that a group of compressed vectors whose similarity is equal to or greater than a third reference value is a synonym. The generation processing unit 150c specifies the average value of multiple compressed vectors included in the same group as a representative value of multiple compressed vectors included in the same group, and sets a flag "1" in the synonym index 140d-3 based on the representative value (compressed vector) and the offset of the word corresponding to the compressed vector. The generation processing unit 150c sets each flag in the synonym index 140d-3 by repeatedly executing the above process for each group.

[0120] The identification unit 150e compares the compressed vector of the characteristic word 21 extracted by the extraction unit 150d with the synonym indices 140d-1 to 140d-3, and identifies compressed vectors from the synonym indices 140d-1 to 140d-3 whose similarity to the compressed vector of the characteristic word 21 is equal to or greater than a threshold value.

[0121] The identification unit 150e searches for a plurality of text compression files (first text compression files) corresponding to an offset based on the offset of the compression vector of the synonym index 140d-1 whose similarity to the compression vector of the characteristic word 21 is equal to or greater than a threshold. The identification unit 150e searches for a plurality of text compression files (second text compression files) corresponding to an offset based on the offset of the compression vector of the synonym index 140d-2 whose similarity to the compression vector of the characteristic word 21 is equal to or greater than a threshold. The identification unit 150e searches for a plurality of text compression files (third text compression files) corresponding to an offset based on the offset of the compression vector of the synonym index 140d-3 whose similarity to the compression vector of the characteristic word 21 is equal to or greater than a threshold.

[0122] The identification unit 150e may register the first to third text compressed files in the first candidate list 31, or may register the text compressed file that is detected the greatest number of times among the first to third text compressed files in the first candidate list 31.

[0123] Furthermore, the identification unit 150e may first use the synonym index 140d-3 with the greatest granularity to search for text-compressed files, and if the number of searched text-compressed files is less than a predetermined number, switch to the synonym index 140d-2 with the next greatest granularity to search for text-compressed files. Furthermore, the identification unit 150e may use the synonym index 140d-2 to search for text-compressed files, and if the number of searched text-compressed files is less than a predetermined number, switch to the synonym index 140d-1 with the next greatest granularity to search for text-compressed files. In this way, by switching the synonym indexes, the number of search result candidates can be adjusted.

[0124] In the above example, the case where the first, second, and third reference values ​​are set for the synonym index 140d to generate the synonym indexes 140d-1 to 140d-3 with different granularities has been described, but the present invention is not limited to this. The generation processing unit 150c may set the first, second, and third reference values ​​for the synonym sentence index 140e to generate the synonym sentence indexes with different granularities. In addition, the user may operate the input unit 120 or the like to change the first, second, and third reference values ​​as appropriate. When the generation unit 150c receives a change to the first, second, and third reference values, the generation unit 150c may dynamically regenerate the synonym index 140d and the synonym sentence index 140e with different granularities.

[0125] The dimension compression unit 150b according to the first embodiment calculates the values ​​of the basis vectors of three prime numbers "1", "67", and "131" divided by the prime number "3", respectively, to obtain one compressed vector for one word, but is not limited thereto. For example, when calculating a compressed vector, the dimension compression unit 150b may set basis vectors of multiple prime numbers divided by multiple types of prime numbers, and calculate multiple types of compressed vectors for one word. For example, the dimension compression unit 150b may calculate the basis vectors of three prime numbers "1", "67", and "131" divided by the prime number "3", the basis vectors of five prime numbers "1", "41", "79", "127", and "163" divided by the prime number "5", and the basis vectors of seven prime numbers "1", "29", "59", "83", "113", "139", and "173" divided by the prime number "7", and register multiple types of compressed vectors for one word in the dimension compressed word vector table 140b. When the generation processing unit 150d and the extraction processing unit 150d use the dimensional compressed word vector table 140b, they may selectively use any of the compressed vectors to generate a transposed index and extract characteristic words and characteristic sentences.

[0126] Next, an example of a hardware configuration of a computer that realizes the same functions as the information processing device 100 shown in this embodiment will be described. Fig. 17 is a diagram showing an example of a hardware configuration of a computer that realizes the same functions as the information processing device according to this embodiment.

[0127] 17, computer 500 has CPU 501 for executing various arithmetic processes, input device 502 for receiving data input from a user, and display 503. Computer 500 also has reading device 504 for reading programs and the like from a storage medium, and interface device 505 for transmitting and receiving data to and from external devices and the like via a wired or wireless network. Computer 500 also has RAM 506 for temporarily storing various information, and hard disk device 507. Each of devices 501 to 507 is connected to bus 508.

[0128] The hard disk device 507 has a receiving program 507a, a dimension compression program 507b, a generation processing program 507c, an extraction program 507d, a specification program 507e, and a graph generation program 507f. The CPU 501 reads out the receiving program 507a, the dimension compression program 507b, the generation processing program 507c, the extraction program 507d, the specification program 507e, and the graph generation program 507f and loads them in the RAM 506.

[0129] The receiving program 507a functions as a receiving process 506a. The dimension reduction program 507b functions as a dimension reduction process 506b. The generation processing program 507c functions as a generation processing process 506c. The extraction program 507d functions as an extraction process 506d. The identification program 507e functions as a identification process 506e. The graph generation program 507f functions as a graph generation process 506f.

[0130] The processing of the reception process 506a corresponds to the processing of the reception unit 150a. The processing of the dimensional compression process 506b corresponds to the processing of the dimensional compression unit 150b. The processing of the generation processing process 506c corresponds to the processing of the generation processing unit 550c. The processing of the extraction process 506d corresponds to the processing of the extraction unit 150d. The processing of the identification process 506e corresponds to the processing of the identification unit 150e. The processing of the graph generation process 506f corresponds to the processing of the graph generation unit 150f.

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

[0132] 10A Text Files 10B Text Compression File 15 Dictionary information 20A Search Query 31 First Candidate List 32 Second candidate list 100 Information processing device 110 Communications Department 120 Input section 130 Display section 140 Storage section 140a Word Vector Table 140b dimensional compressed word vector table 140c Word Index 140d Synonym Index 140e Synonym Index 140f Sentence Vector Table 140g Dynamic Dictionary 150 Control section 150a Reception 150b Dimensional compression section 150c Generation processing unit 150d Extraction part 150e Specific part 150f Graph generation section

Claims

1. Accepts multiple text files, Identifying a first vector corresponding to any word included in the received plurality of text files; referring to a storage unit that stores a plurality of vectors corresponding to a plurality of words included in the received plurality of text files, and identifying, as one second vector, an average value of vectors included in a group of the plurality of vectors whose similarity to the first vector is equal to or greater than a reference value, Generate information indicating that any one of the words is included in the plurality of text files, and associate the information with the second vector. A generating method characterized in that the processing is executed by a computer.

2. A process of identifying the second vector based on a plurality of reference values ​​of similarity according to classification levels, and a process of generating information for associating the same second vector with each word belonging to a word group having a similarity between vectors equal to or greater than a reference value among a plurality of words included in the text file, for each different classification level; The method according to claim 1, further comprising the step of generating an inverted index for each different classification level, the inverted index associating offsets of words belonging to a word group included in the text file with the same second vector for each word belonging to the word group.

3. Accepts text contained in search criteria, Identifying a vector corresponding to any word contained in the received text; The method according to claim 2, further comprising the step of: identifying, from among the plurality of text files, a text file that contains a word corresponding to the vector, based on the identified vector and any of the inverted indexes for each classification level.

4. 4. The method according to claim 3, wherein in the process of identifying the text files, the inverted index is switched based on the number of text files identified based on any one of the inverted indexes for each classification level.

5. A reception unit that receives a plurality of text files; a generation processing unit that identifies a first vector corresponding to any one of words included in the received plurality of text files, refers to a storage unit that stores a plurality of vectors corresponding to a plurality of words included in the received plurality of text files, identifies an average value of vectors included in a group having a similarity to the first vector equal to or higher than a reference value among the plurality of vectors as one second vector, and generates information indicating that any one of the words is included in the plurality of text files, and associates the information with the second vector; 13. An information processing device comprising:

Citation Information

Patent Citations

  • Method and device for retrieving document and record medium

    JP2000207404A

  • Information retrieval device and method, and storage medium

    JP2002230021A

  • Computer executable method for reducing dimension, program for executing the method, dimension reduction device, and search engine using the device

    JP2005050197A

  • Apparatus, method, and program for generating database for inter-word similarity judgment, and recording medium

    JP2006119714A

  • Method and device for retrieving similar document

    JP2006146355A