Information processing system and program

The system addresses the lack of similar sentence display in conventional systems by vectorizing search sentences and documents, enabling effective differentiation and prioritization of similar sentences in search results.

JP2024116608APending Publication Date: 2024-08-28FUJIFILM BUSINESS INNOVATION CORP
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2023022306
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-16
Publication Date
2024-08-28

AI Technical Summary

Technical Problem

Conventional information processing systems fail to distinguish and display sentences similar to a user's search sentence within documents, limiting the effectiveness of keyword highlighting in search results.

Method used

An information processing system that vectorizes search sentences and documents, identifies similar sentences using sentence vectors, and controls their display to differentiate them from dissimilar sentences, utilizing cluster information and central vectors to prioritize and weight similar sentences.

Benefits of technology

Enables efficient and distinguishable display of similar sentences within documents, improving the relevance and organization of search results based on similarity to the search sentence.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024116608000001_ABST
    Figure 2024116608000001_ABST
Patent Text Reader

Abstract

To display a similar sentence of sentences included in a document, so as to be distinguished from a search sentence input by a user.SOLUTION: An information processing apparatus 2 includes: a preprocessing unit 10 which clusters sentences based on sentence vectors of the sentences included in a document, prepares a codebook in which the clusters and center vectors of the clusters are associated with each other, and classifies the sentences to any of the clusters; and a search processing unit 20 which specifies a cluster to which a search sentence belongs, on the basis of a search sentence vector of the input search sentence, and highlights sentences belonging to the specified cluster, as sentences similar to the search sentence.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

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

[0002] In recent keyword searches, search results are highlighted when displayed on a screen to make it easier to find keywords included in the search results. For example, in Patent Document 1, text is extracted from a public clinical trial database or a literature database, vectorized, and clustered, and when displaying keywords representing the clusters, words and numbers corresponding to the search keywords are highlighted. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Patent No. 7068106 Specification Summary of the Invention [Problem to be solved by the invention]

[0004] However, in the conventional technology, indicators and the like are displayed distinctively using markers to indicate the indicators contained in the search sentence or the numerical values ​​corresponding to those indicators, and sentences similar to the search sentence are not displayed distinctively.

[0005] An object of the present invention is to display, among sentences contained in a document, sentences similar to a search sentence input by a user in a differentiated manner from the others. [Means for solving the problem]

[0006] The information processing system of the present invention includes a processor that vectorizes a search statement including one or more sentences input by a user, and uses the sentence vector generated by vectorizing the search statement to search sentence vector information generated by vectorizing each sentence included in a document that is the search range, thereby identifying sentences that are similar to the search statement, and controlling the display of the document so that the similar sentences are distinguished from sentences that are not similar to the search statement.

[0007] The processor also acquires the sentence vector information, which includes cluster information indicating the characteristics of each cluster formed by similar sentences based on sentence vectors generated by vectorizing each sentence included in the document, and correspondence information including a correspondence between each sentence included in the document and the cluster to which the sentence belongs, refers to the cluster information to identify the cluster to which the search sentence belongs, and refers to the correspondence information to identify sentences belonging to the identified cluster as the similar sentences.

[0008] Furthermore, when the feature included in the cluster information is the central vector of the cluster, the processor weights each of the similar sentences according to the distance between the sentence vector of the similar sentence and the central vector of the cluster to which the similar sentence belongs, and controls the display of the similar sentences so that the weight of the similar sentences can be distinguished.

[0009] In addition, when the feature included in the cluster information is the central vector of the cluster, the processor compares the sentence vector of the search sentence with each of the central vectors of the cluster, thereby prioritizing the cluster to which the search sentence should belong, and controls the display of each sentence included in the document according to the priority of the cluster to which the sentence belongs.

[0010] In addition, when there are multiple documents within the search range, the processor determines the display order of the multiple documents according to the identified similar sentences.

[0011] The processor may also determine a display order for the plurality of documents depending on the degree of similarity between the search sentence and each of the similar sentences.

[0012] The processor may also determine a display order for the plurality of documents depending on the number of similar sentences contained in each of the plurality of documents.

[0013] The processor is also characterized in that, when the search sentence contains multiple sentences and each of the multiple sentences has a similar sentence, the processor controls the display to clearly show the correspondence between each of the multiple sentences and the similar sentences.

[0014] The processor is also characterized in that, when the user is editing a document, the processor automatically selects the search sentence from the document being edited at a timing when a specified condition is met, even if not input by the user.

[0015] The program of the present invention enables a computer to realize the following functions: vectorizing a search statement containing one or more sentences input by a user; identifying sentences similar to the search statement by searching sentence vector information generated by vectorizing each sentence contained in a document that is the search range using the sentence vector of the search statement generated by vectorization; and controlling the display of the document so that the similar sentences are distinguished from sentences that are not similar to the search statement. Effect of the Invention

[0016] According to the invention recited in claim 1, among the sentences contained in a document, sentences similar to a search sentence input by a user can be displayed in a distinguished manner.

[0017] According to the invention recited in claim 2, when a document contains a large number of sentences, similar sentences can be extracted from the document at high speed.

[0018] According to the invention as recited in claim 3, similar sentences that are considered to have a high similarity to the search sentence can be displayed in a distinguishable manner.

[0019] According to the invention as recited in claim 4, each sentence contained in the document can be displayed so that the degree of similarity with the search sentence can be discerned.

[0020] According to the invention as recited in claim 5, the search results based on the search sentence can be displayed in a form convenient for the user according to the identified similar sentences.

[0021] According to the invention as set forth in claim 6, documents can be displayed in order of the number of documents that contain sentences having a high similarity to a search sentence.

[0022] According to the invention as set forth in claim 7, documents can be displayed in order of the number of similar sentences to the search sentence.

[0023] According to the invention recited in claim 8, the similar sentence can be displayed so that the user can discern which sentence contained in the search sentence the similar sentence is similar to.

[0024] According to the invention as recited in claim 9, the user does not need to input a search sentence.

[0025] According to the invention as recited in claim 10, among the sentences contained in the document, sentences similar to the search sentence input by the user can be displayed in a distinguished manner. [Brief description of the drawings]

[0026] [Figure 1] 1 is a block diagram showing an information processing device according to a first embodiment. [Diagram 2] 1 is a flowchart showing a pre-processing according to the first embodiment. [Diagram 3] 13 is a flowchart showing a sentence vector information creation process when sentences are clustered in the first embodiment. [Figure 4]4 is a diagram showing an example of a data configuration of a codebook stored in a sentence vector information storage unit in the first embodiment. FIG. [Diagram 5] FIG. 2 is a diagram showing a data structure of a corpus database in the first embodiment. [Figure 6] 4 is a flowchart showing a search process in the first embodiment. [Figure 7] 13 is a flowchart showing a similar sentence search process when sentences are clustered in the first embodiment. [Figure 8] FIG. 2 is a diagram showing a display example of a search screen in the first embodiment. [Figure 9] FIG. 9 is a diagram showing an example of a display screen that is displayed when any sentence is selected in FIG. 8. [Figure 10] FIG. 11 is a diagram showing another display example of the search screen in the first embodiment. [Figure 11] FIG. 11 is a diagram showing a data structure of a corpus database in the second embodiment. [Figure 12] 13 is a flowchart showing a search process in the second embodiment. [Figure 13] FIG. 11 is a diagram showing a display example of a search screen in the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0027] Hereinafter, preferred embodiments of the present invention will be described with reference to the drawings.

[0028] Embodiment 1 The information processing device in this embodiment can be realized by a general-purpose hardware configuration that has existed for a long time, such as a personal computer (PC), etc. That is, the information processing device in this embodiment can be realized by a configuration including a CPU, a ROM, a RAM, a storage means such as a hard disk drive (HDD), a communication means such as a network interface, an input means such as a mouse and a keyboard, and a user interface including a display means such as a display.

[0029] 1 is a block diagram showing an information processing device 2 according to the present embodiment. The information processing device 2 according to the present embodiment includes a preprocessing unit 10, a search processing unit 20, a corpus database (DB) 32, and a sentence vector information storage unit 34. Note that components not used in the description of the present embodiment are omitted from the figure.

[0030] Here, the terms "sentence" and "document" used in this embodiment will be defined.

[0031] First, a "sentence" is a string of one or more words that expresses a coherent message. The end of a sentence is generally delimited by a period (.). However, in this embodiment, the user is allowed to input a search sentence in multiple natural sentences, so there are exceptional cases where the "search sentence" is made up of multiple sentences. A "document" is a general term for anything written in characters, and is made up of one or multiple sentences.

[0032] The preprocessing unit 10 performs a process of creating data necessary for the search process performed by the search processing unit 20 in advance as preprocessing. The preprocessing unit 10 includes a document acquisition unit 12, a sentence vector generation unit 14, and a sentence vector information creation unit 16. The document acquisition unit 12 acquires documents stored and managed in the corpus database 32. The sentence vector generation unit 14 divides the documents acquired by the document acquisition unit 12 into sentences and generates sentence vectors by vectorizing each divided sentence. The term "sentence vector" refers to a sentence in a natural language that has been quantified. Generally, it is synonymous with a term called "sentence vector," but since a sentence may include multiple sentences, in this embodiment, a single sentence is distinguished and referred to as a "sentence vector." A method for generating a sentence vector may utilize a conventional method, such as sentence BERT, which is a type of BERT, a natural language processing model. The sentence vector information creation unit 16 creates sentence vector information based on the sentence vector of each sentence generated by the sentence vector generation unit 14, and registers the sentence vector information including the item data described later in the corpus database 32 and the sentence vector information storage unit 34.

[0033] The search processing unit 20 refers to the corpus database 32 and the sentence vector information storage unit 34, and performs a search process to search the corpus database 32 based on the search sentence specified and input by the user. That is, the documents stored in the corpus database 32 become the search range of the search processing unit 20. The search processing unit 20 includes a search sentence acquisition unit 22, a search sentence vector generation unit 24, a similar sentence search processing unit 26, and a display control unit 28.

[0034] The search statement acquisition unit 22 acquires a search statement designated and input by a user. The search statement vector generation unit 24 generates a statement vector (hereinafter, "search statement vector") of the search statement by vectorizing the search statement acquired by the search statement acquisition unit 22. When the search statement is composed of a plurality of sentences, the search statement vector generation unit 24 generates a search statement vector for each of the sentences. The similar sentence search processing unit 26 refers to the search statement vector generated by the search statement vector generation unit 24 and identifies sentences similar to the search statement (hereinafter, "similar sentences") from each document registered in the corpus database 32 as search results. In other words, sentences hit by a search process based on the search statement are extracted as similar sentences similar to the search statement, and become search results. The display control unit 28 controls the display of the search results. The display control unit 28 in this embodiment controls the display so that documents including similar sentences are included in the search results and displayed, but controls the display so that similar sentences are distinguished from sentences that are not similar to the search statement (hereinafter, "non-similar sentences") when displaying the documents. For example, as a method of distinguishing and displaying similar sentences, the similar sentences are highlighted.

[0035] The data stored in the corpus database 32 and the sentence vector information storage unit 34 is created and registered in preprocessing, so it will be explained together with the explanation of the preprocessing.

[0036] Each of the components 10 and 20 in the information processing device 2 is realized by cooperative operation between a computer forming the information processing device 2 and a program running on a CPU mounted on the computer. Also, the storage means 32 and 34 are realized by an HDD mounted on the information processing device 2. Alternatively, a RAM or an external storage means may be used via a network.

[0037] In this embodiment, the information processing device 2 is assumed to be realized by one computer, but the components 10, 20, 32, and 34 and the units 12, 14, 16, 22, 24, 26, and 28 of the components 10 and 20 may be distributed among a plurality of computers connected by a communication network to form an information processing system. In this embodiment, the term "system" includes both a system composed of a plurality of devices and a system composed of a single device.

[0038] Furthermore, the programs used in the present embodiment can be provided not only by communication means, but also by being stored in a computer-readable recording medium such as a CD-ROM or a USB memory. The programs provided from the communication means or recording medium are installed in a computer, and various processes are realized by the computer's CPU sequentially executing the programs.

[0039] Next, the operation of this embodiment will be described.

[0040] The processing performed in this embodiment can be broadly divided into a search processing and a pre-processing for preparing data required for performing the search processing. First, the pre-processing will be described with reference to the flowchart shown in FIG.

[0041] The document acquisition unit 12 acquires documents to be stored in the corpus database 32 (step 110). The document acquisition path does not need to be particularly limited, and the document may be acquired by inputting the document by the user, or may be acquired from a storage location designated by the user.

[0042] Next, the sentence vector generation unit 14 divides the acquired document into sentences (step 120). Basically, a document can be divided into sentences by separating it with periods. Next, the sentence vector generation unit 14 generates sentence vectors by vectorizing each sentence (step 130). Next, the sentence vector information creation unit 16 performs a sentence vector information creation process to create sentence vector information based on the sentence vectors (step 140).

[0043] In this embodiment, even if a document to be processed contains a huge number of sentences, the sentences are clustered to improve the efficiency of the process. The process of creating sentence vector information when clustering is performed will be described with reference to the flowchart shown in Fig. 3. If multiple documents are stored in the corpus database 32, the process described below will be performed on each document.

[0044] First, the sentence vector information creation unit 16 clusters sentences by referring to the sentence vector of each sentence (step 141). Each cluster formed by clustering is formed from sentences contained in a document that are determined to be similar based on the sentence vector.

[0045] Next, the text vector information creation unit 16 calculates a central vector of the cluster, also called a centroid, for each cluster formed by executing the clustering (step 142).The text vector information creation unit 16 then creates a codebook by linking the central vector of the cluster to a cluster ID as identification information assigned to each cluster, and registers the codebook in the text vector information storage unit 34 (step 143).

[0046] Fig. 4 is a diagram showing an example of the data configuration of a codebook stored in the sentence vector information storage unit 34 in this embodiment. As shown in Fig. 4, the cluster IDs and central vectors obtained by the above process are associated with each other and registered in the codebook. As described above, the central vector is a value calculated from the sentence vectors of similar sentences belonging to each cluster, and therefore can be said to be cluster information indicating the characteristics of each cluster.

[0047] In this embodiment, it is sufficient that a cluster is formed of one or more sentences.

[0048] Next, the sentence vector information creation unit 16 compares the sentence vector of each sentence with the central vector of each cluster, classifies each sentence into the cluster that is closest to the central vector, and links each sentence with the cluster ID of the cluster into which it is classified (step 144).The sentence vector information creation unit 16 then registers the cluster ID linked to each sentence in the corpus database 32 (step 145).

[0049] FIG. 5 is a diagram showing the data structure of the corpus database 32 in this embodiment. Note that FIG. 5 does not show data items other than those used to explain this embodiment. In the corpus database 32, information about registered documents is structured and set and registered. That is, as information about a document, a document ID as identification information of the registered document, a document name, and information specifying the storage location of the document are set. Furthermore, as information about each sentence included in the document, a sentence ID, a sentence, position information, and a cluster to which the sentence belongs (weight) are set. The sentence ID is identification information of the sentence. The sentence itself, which is indicated by text characters or the like, is set as the sentence. The position information is information for specifying the position and range in which the sentence is written in the document. In FIG. 5, the position information is indicated by the page number and the coordinate data of the first and last characters of the sentence on the page. Of course, this way of expressing the position information is one example, and the position of the sentence may be specified by other methods. In step 145, the cluster ID of the cluster to which the sentence belongs is set as the cluster to which the sentence belongs. Note that the weight will be described later.

[0050] When clustering and classifying sentences, in addition to the codebook stored in the sentence vector information storage unit 34, the sentence vector information is created by associating each sentence with the cluster to which it belongs, as described above, specifically by associating the sentence ID with the cluster to which it belongs.

[0051] If the sentences are not clustered, the sentence vector information creating unit 16 does not generate a codebook and sets the sentence vector of the sentence in place of the cluster to which the sentence belongs in the corpus database 32.

[0052] In the preprocessing, a codebook to be used in the search process is generated as described above, and association information that associates each sentence with the cluster to which the sentence belongs is set in the corpus database 32. The search process that becomes executable after the preprocessing is completed will be described below with reference to the flowchart shown in FIG.

[0053] First, the user specifies a search sentence by inputting the search sentence into a predetermined search screen. When the user inputs a search sentence, the user specifies the search sentence in natural sentences. The search sentence acquisition unit 22 acquires the search sentence specified by the user (step 150). Note that, unless otherwise specified, the following description is given assuming that the search sentence is specified in one sentence.

[0054] Next, the search statement vector generation unit 24 generates a search statement vector by vectorizing the acquired search statement (step 160). The method for generating the search statement vector may be the same as the method for generating the statement vector in step .

[0055] Next, the similar sentence search processing unit 26 performs a similar sentence search process to search for sentences similar to the search sentence, thereby identifying sentences similar to the search sentence, i.e., similar sentences (step 170). Since the present embodiment is described assuming that sentences are clustered, the similar sentence search process in this case will be described using the flowchart shown in FIG.

[0056] First, the similar sentence search processor 26 refers to the search sentence vector of the search sentence, checks which cluster the search sentence belongs to, and identifies the cluster ID of the cluster to which it belongs (step 171). In detail, the similar sentence search processor 26 refers to the codebook and compares the search sentence vector with the center vector of each cluster. Then, it determines that the search sentence belongs to the cluster linked to the closest center vector, and obtains the cluster ID of that cluster.

[0057] Next, the similar sentence search processor 26 searches the corpus database 32 using the cluster ID of the identified similar sentence (step 172). As a result, the similar sentence search processor 26 hits sentences linked to the identified cluster ID, i.e., sentences belonging to the cluster. The similar sentence search processor 26 identifies the hit sentence as a similar sentence to the search sentence, and extracts it as a search result of the similar sentence search process (step 173).

[0058] When a plurality of natural sentences are specified as a search sentence, the above-described search process may be executed for each natural sentence.

[0059] If sentence clustering is not performed, in the similar sentence search process in step 170, the similar sentence search processing unit 26 searches the corpus database 32 with the search sentence vector, identifies sentences corresponding to sentence vectors that show a similarity to the search sentence vector equal to or greater than a predetermined threshold value as similar sentences to the search sentence, and extracts them as search results of the similar sentence search process.

[0060] The display control unit 28 controls the similar sentence search processing unit 26 to highlight the search results obtained as described above on the screen (step 180). In Fig. 8 to 10, the highlight display is solid-filled to make it easy to see even in grayscale, but in the case of color display, it is sufficient to display similar sentences in a display form that allows them to be distinguished from dissimilar sentences by using various colors, fluorescent display, character decoration, or a combination of these.

[0061] The output destination of the search results may not be the display of the information processing device 2, but may be, for example, a display or storage means connected to another information processing device via a network, but in this embodiment, the search results are described as being displayed on a display of the information processing device 2. In this case, strictly speaking, it is the display means such as a display that displays the search results, but in this embodiment, for the sake of convenience, the display control unit 28 is described as displaying them.

[0062] FIG. 8 is a diagram showing an example of a display screen for displaying search results in this embodiment. A search result display screen (hereinafter, "search screen") 40 is provided with a search statement input area 42 and a search result display area 44. When a user inputs a search statement from the input area 42 and selects a search button 46, the search processing unit 20 executes the above-mentioned search process and displays the search results in the display area 44. FIG. 8 shows an example in which four documents including similar sentences 48 to the search statement are displayed. In this embodiment, as shown in FIG. 8, not only the hit similar sentences 48 are displayed, but also the document in which the similar sentences 48 are included is displayed so that the user can see. In addition, from the display example of the similar sentences 48, the user can see that the document 41a contains three similar sentences 48 and the document 41b contains two similar sentences 48. In this embodiment, the entire similar sentences 48 are displayed on the screen so that the contents of the similar sentences 48 can be seen.

[0063] Incidentally, this embodiment is characterized in that similar sentences 48 are displayed in a manner that distinguishes them from non-similar sentences. To this end, in this embodiment, similar sentences 48 are highlighted. In FIG. 8, similar sentences 48 are extracted from the sentences contained in the document and displayed in a bulleted list, but the display format of similar sentences does not need to be limited to this. For example, the entire document or a block unit such as a paragraph containing similar sentences 48 in the document may be displayed. Even in this case, similar sentences 48 are highlighted, making them easy to find within the document.

[0064] When the user wishes to display more detailed information about the similar sentence 48 on the screen, the user selects the similar sentence 48 by clicking or other selection operation. Here, it is assumed that similar sentence 48d has been selected. An example of the display screen when similar sentence 48d is selected is shown in FIG. 9.

[0065] As shown in Fig. 9, a page 50 including the selected similar sentence 48d from the document 41a is displayed. In this embodiment, the page 50 is displayed superimposed on the search screen 40, but the display form is not limited to this. In this way, the user can view information related to the similar sentence 48d to the search sentence.

[0066] As illustrated in FIG. 8, the similar sentence 48d is located in the middle of the three similar sentences 48c, 48d, and 48e in the document 41a. Therefore, the display control unit 28 displays the arrow keys 52 across the page 50. When the forward button 52a is selected, the display control unit 28 displays a page including the similar sentence 48e that is displayed one page after the similar sentence 48d in FIG. 8, that is, immediately after the similar sentence 48d. On the other hand, when the forward button 52b is selected, the display control unit 28 displays a page including the similar sentence 48c that is displayed one page before the similar sentence 48d in FIG. 8, that is, immediately before the similar sentence 48d. This eliminates the need to return to the search screen 40 in FIG. 8 each time you want to display other similar sentences 48c and 48e.

[0067] However, when multiple similar sentences exist in one document, as in the above example, it is necessary to determine the display order of the sentences. Also, when multiple documents contain sentences similar to the search sentence, it is necessary to determine the display order of the documents.

[0068] First, regarding the display order of the sentences, similar sentences 48 may be simply displayed in the order in which they appear in the document, but in this embodiment, as shown in FIG. 5, a weight is assigned to each sentence, and the display order of the sentences is determined by referring to the weight.

[0069] Each sentence is classified into a cluster corresponding to a central vector that is closest to the sentence vector of the sentence according to the distance from the central vector of each cluster. However, even if a sentence vector is closest to the central vector, the distance from the central vector is the closest, and it may be farther away from the central vector than other sentences belonging to the same cluster. Therefore, in this embodiment, a weight is calculated and set for each sentence according to the distance between the sentence vector of each sentence and the central vector of the cluster to which the sentence belongs. In other words, the closer the distance from the central vector is to the sentence vector, the more weight is assigned to it. Specifically, a larger number is assigned. Since the central vector is a value indicating the characteristics of the cluster, in the case of a sentence that belongs to the same cluster as the search sentence, in this embodiment, it is estimated that the sentence closer to the central vector is more similar to the search sentence.

[0070] According to the data setting example shown in Figure 5, sentence "s1" and sentence "s4" belong to the same cluster ID "C1", but sentence "s1" has a higher weight than sentence "s4". In other words, sentence "s1" is closer to the center vector of cluster "C1" than sentence "s4".

[0071] Here, when the search sentence is classified into cluster "C1", sentences "s1" and "s4" are extracted as sentences similar to the search sentence, but since sentence "s1" is closer to the central vector of cluster "C1" than sentence "s4", it is determined that sentence "s1" has a higher similarity to the search sentence, that is, is more similar to the search sentence. As a result, when displaying multiple similar sentences belonging to the same document "R0123", the display control unit 28 displays sentence "s1" higher than sentence "s4". In this way, when displaying similar sentences belonging to the same document, the display control unit 28 displays the weights of the similar sentences in a distinguishable manner. For this reason, in order to obtain the information the user desires, it is likely to be efficient to display detailed information, as exemplified in FIG. 9, from the similar sentences displayed at the top.

[0072] Furthermore, the documents may be displayed in the order in which they were registered in the corpus database 32, based on the registration date and time. However, in this embodiment, since each sentence is weighted as described above, the document display order may be determined according to the weighting of similar sentences.

[0073] For example, documents may be displayed in descending order of the number of similar sentences. Alternatively, the sum of the weights of the similar sentences may be calculated and the documents may be displayed in descending order of the sum. Alternatively, the sentence with the largest weight in each document may be identified and the documents may be displayed in descending order of the weights of the identified sentences. Thus, in this embodiment, it is estimated that the greater the weight of a sentence, the higher the similarity, i.e., the more similar it is to the search sentence, so the display order of documents may be determined according to the similarity between the search sentence and each of the similar sentences.

[0074] Fig. 10 is a diagram showing another display example of the search screen 40 in this embodiment. While Fig. 8 shows a case where the search sentence is composed of one natural sentence, Fig. 10 shows a display example of the search screen 40 where the search sentence is composed of multiple (two in Fig. 10) natural sentences.

[0075] When a plurality of natural sentences 45a, 45b are input in the search sentence input field 43, each natural sentence is highlighted in a different display form. Then, the display control unit 28 displays the similar sentences so that the correspondence between each natural sentence 45a, 45b and the natural sentence 45a, 45b can be easily visually recognized. In FIG. 10, the similar sentences 48a, 48b are highlighted in the same manner as the natural sentences 45a, 45b, so that the correspondence between the natural sentences 45a, 45b and the similar sentences 48a, 48b can be easily recognized. In the display example shown in FIG. 10, it can be easily recognized that the similar sentence 48a corresponds to the natural sentence 45a, and the similar sentence 48b corresponds to the natural sentence 45b.

[0076] In Fig. 10, the natural sentences 45a and 45b are treated equally, but the natural sentences 45a and 45b may be weighted and the display order of similar sentences or documents may be determined according to the weights. For example, the order of natural sentences input as search sentences may be weighted. For example, the natural sentence 45b input later may be weighted so that a similar sentence to the natural sentence 45b input later is displayed higher in the document. This makes it possible to present search results that strongly reflect the meaning of the input part.

[0077] In the above description, the search statement acquisition unit 22 has been described as acquiring a search statement input by a user from a search screen, but this is not necessarily limited to this. For example, a statement selected by a user from a document displayed on the screen by a selection operation such as right-clicking may be acquired as a search statement. Alternatively, when a user is editing a document using an application, a predetermined statement may be automatically selected as a search statement from the document being edited at a timing when a predetermined condition is met. "Editing" includes creating a new document and modifying an existing document. Examples of the predetermined condition include a sentence delimited by a period when the user inputs a period, a sentence of N characters when a predetermined number of characters N is input, a sentence consisting of characters input within a predetermined time, a corrected sentence, and multiple sentences forming one block (i.e., a collection of sentences) such as a chapter, section, or paragraph. When a search statement is formed by multiple sentences, each sentence may be weighted as described above.

[0078] Embodiment 2 In clustering, one ideal form is to divide the clusters so that the distance between the cluster centers is equal. However, in reality, the distance between the cluster centers varies. As a result, the sentence vector of a sentence located near the boundary between two clusters will be classified into a slightly closer cluster even if the difference in distance between the two cluster center vectors is small. Therefore, even if a sentence is similar to the search sentence, it may not be extracted as a similar sentence because it does not belong to the cluster to which the search sentence belongs.

[0079] Therefore, in this embodiment, instead of classifying each sentence into just one cluster closest to the central vector as in the above-mentioned first embodiment, multiple clusters are selected and registered in the corpus database 32 according to the distance between the sentence vector of the sentence and the central vector of each cluster.

[0080] Fig. 11 is a diagram showing the data structure of the corpus database 32 in this embodiment. Although the way in which the data structure is expressed is slightly different from that in Fig. 5, items other than the cluster information may be the same as those in Fig. 5.

[0081] In the cluster information in this embodiment, one or more clusters are linked to each sentence according to the distance between the sentence vector of each sentence and the central vector of each cluster. Specifically, clusters are prioritized in the order of proximity of the central vector to the sentence vector of the sentence. In FIG. 11, a frame is provided for linking up to four clusters to each sentence, but the number of frames may be more than one. The clusters linked to each sentence may be, for example, the top n clusters (n=4 in FIG. 11) in the order of prioritization (referred to as "priority" or "priority order"), or each sentence may be linked to a cluster according to a predetermined condition, such as a cluster whose distance to the central vector is equal to or less than a predetermined threshold. At this time, a priority is assigned to the clusters in the order of proximity. FIG. 11 shows an example in which the latter method of comparing with a threshold is adopted.

[0082] The configuration of the information processing device 2 in this embodiment may be the same as that in the first embodiment. The preprocessing is slightly different from that in the first embodiment. In the first embodiment, in step 144 shown in FIG. 3, each sentence is linked to only the cluster corresponding to the central vector closest to the sentence vector of the sentence. In this embodiment, each sentence is linked to one or more clusters whose distance from the central vector is equal to or less than a predetermined threshold. Then, a priority is assigned to the linked clusters in the order of the distance between the central vector and the sentence vector. This priority becomes the priority order of the processing. Note that the cluster with the priority of 1 is the same as the belonging cluster registered in the corpus database 32 in the first embodiment. The other processing steps in the preprocessing may be the same as those in the first embodiment. Note that in this embodiment, it is assumed that clustering is performed. Hereinafter, the search processing in this embodiment will be described with reference to the flowchart shown in FIG. 12. Note that the same processing steps as those in the first embodiment shown in FIGS. 6 and 7 are assigned the same step numbers, and the description will be omitted as appropriate.

[0083] When the search statement vector generation unit 24 generates a search statement vector (steps 150 and 160), the similar sentence search processing unit 26 sets 1 as an initial value of the priority (step 201). Next, the similar sentence search processing unit 26 refers to the search statement vector of the search statement, and identifies the cluster ID of the cluster to which the search statement is the nth closest (step 202). Here, since n=1, the cluster ID of the cluster associated with the search statement vector and the first, i.e., the closest, central vector is acquired as in the first embodiment. The processing when n=1 is the same as in the first embodiment. Therefore, the subsequent processing of searching for and highlighting similar sentences (steps 172 to 180) is the same as steps 172, 173, and 180 in the embodiment. The display contents of the search screen in this case are the same as in the first embodiment.

[0084] Here, if the search results expected by the user are included in the similar sentences displayed on the screen (Y in step 203), the search process may be terminated in the same manner as in the first embodiment. On the other hand, if the search results expected by the user are not included (N in step 203), the user requests a search again, for example, by selecting a search again button (not shown) from the search screen 40. The similar sentence search processing unit 26 raises the priority of the cluster by one in response to the user's request (step 204). Next, the similar sentence search processing unit 26 refers to the cluster information in the corpus database 32 and checks whether a cluster ID is registered at the current priority (in this example, n=2nd). In the setting example shown in FIG. 11, since a cluster ID is registered (Y in step 205), the process returns to step 202. If a cluster ID is not registered in the cluster information at the priority level raised in step 204 (N in step 205), the search processing unit 20 displays on the screen a message to the effect that there are no more sentences that match the search sentence, i.e., sentences that are candidates for the expected sentence, in the corpus database 32, and then ends the search process.

[0085] Returning to step 202, the similar sentence search processing unit 26 references the search sentence vector of the search sentence and identifies the cluster ID of the cluster to which the search sentence is the nth closest (step 202). Here, since n=2, the search sentence vector identifies the cluster ID of the cluster linked to the second closest central vector. The subsequent processing has already been explained and will not be described. In this embodiment, by expanding the range of sentences similar to the search sentence, in other words, by increasing the number of candidate similar sentences although there is a possibility of lowering the similarity, it is possible to more reliably provide the user with sentences that are truly similar to the search sentence.

[0086] FIG. 13 is a diagram showing a display example of a search screen in this embodiment. Basically, the display contents are the same as those of the search screen in the first embodiment (FIG. 8). However, the display control unit 28 displays the similar sentences 48 in different display forms according to the priority order so that the similarity order of the similar sentences can be distinguished. As shown in FIG. 13, the display control unit 28 displays a guidance 49 explaining the difference in highlight display according to the priority order. The guidance 49 shows the priority of the cluster to the user as "similarity order". According to the screen display example shown in FIG. 13, it can be easily determined from the difference in highlight display that the similar sentence 48a corresponds to the similar sentence with the first priority and the similar sentence 48b corresponds to the similar sentence with the second priority.

[0087] In this embodiment, not only the most similar cluster (cluster when n=1 in the flow chart shown in FIG. 12), but also sentences belonging to clusters that are second or more similar to the search sentence (clusters when n≧2 in the flow chart shown in FIG. 12) can be displayed as similar sentences. As a result, as described above, it may be possible to present to the user sentences that are truly similar to the search sentence, but on the other hand, sentences that are not actually similar will also be presented to the user as similar sentences. In other words, the search processing unit 20 displays many garbage sentences, that is, dissimilar sentences, as similar sentences in the search result in addition to similar sentences to the search sentence that the user expects. In order to avoid this, the cluster priority may be combined with the weighting of sentences described in the first embodiment to narrow down sentences that are similar to the search sentence.

[0088] For example, a sentence that does not belong to the cluster to which the search sentence belongs (i.e., the "belonging cluster") but belongs to a cluster adjacent to the belonging cluster (herein referred to as an "adjacent cluster") and is relatively far from the central vector of the adjacent cluster (a sentence that is farther than a predetermined threshold) may have a sentence vector that is located halfway between the central vector of the belonging cluster and the central vector of the adjacent cluster, but is likely to be a similar sentence to the search sentence if the sentence vector is located further away from the search sentence vector. Therefore, the search processing unit 20 may refer to the weighting of sentences that belong to the adjacent cluster and selectively highlight sentences that are farther than a predetermined threshold out of the sentences that belong to the adjacent cluster as similar sentences.

[0089] In the above embodiments, the term "processor" refers to a processor in a broad sense, including general-purpose processors (e.g., CPU: Central Processing Unit, etc.) and dedicated processors (e.g., GPU: Graphics Processing Unit, ASIC: Application Specific Integrated Circuit, FPGA: Field Programmable Gate Array, programmable logic device, etc.).

[0090] In addition, the operations of the processor in the above embodiments may be performed not only by one processor, but also by multiple processors located at physically separate locations working together. The order of the operations of the processor is not limited to the order described in the above embodiments, and may be changed as appropriate.

[0091] (Additional Note) (((1))) A processor is provided. The processor, A search query containing one or more sentences input by a user is vectorized; A sentence vector information generated by vectorizing each sentence included in a document to be searched is searched for using the sentence vector of the search sentence generated by vectorization, thereby identifying sentences similar to the search sentence; and controlling the display of the document so that the similar sentences are distinguished from sentences that are not similar to the search sentence. An information processing system comprising: (((2))) The processor, acquiring the sentence vector information including cluster information indicating characteristics of each cluster formed by similar sentences based on sentence vectors generated by vectorizing each sentence included in the document, and association information including associations between each sentence included in the document and a cluster to which the sentence belongs; Identifying a cluster to which the search statement belongs by referring to the cluster information; referring to the association information, and identifying sentences belonging to the identified cluster as the similar sentences; 1. The information processing system according to claim 1, (((3))) The processor, When the feature included in the cluster information is a central vector of the cluster, weighting each of the similar sentences according to the distance between the sentence vector of the similar sentence and the central vector of the cluster to which the similar sentence belongs; Controlling the display of the similar sentences so as to distinguish the weights of the similar sentences; 2. The information processing system according to claim 1 , (((4))) The processor, If the feature included in the cluster information is a center vector of the cluster, the cluster to which the search query should belong is prioritized by comparing the sentence vector of the search query with each of the center vectors of the cluster; displaying each sentence contained in the document in order of priority of the cluster to which the sentence belongs; 2. An information processing system according to claim 1, wherein the information processing system comprises: (((5))) The information processing system described in any one of ((1)) to (((4))) is characterized in that, when there are multiple documents within the search range, the processor determines the display order of the multiple documents based on the identified similar sentences. (((6))) The information processing system according to ((5)) is characterized in that the processor determines the display order of the plurality of documents according to the degree of similarity between the search sentence and each of the similar sentences. (((7))) The information processing system according to ((5)) is characterized in that the processor determines the display order of the plurality of documents according to the number of similar sentences contained in each of the plurality of documents. (((8))) The information processing system of any one of ((1)) to (((7))) is characterized in that, when the search sentence contains multiple sentences and each of the multiple sentences has a similar sentence, the processor displays a correspondence between each of the multiple sentences and the similar sentences in a distinguishable manner. (((9))) The information processing system described in any one of (((1))) to (((8))) is characterized in that, when the user is editing a document, the processor automatically selects the search sentence from the document being edited at a timing when a specified condition is met, even if not specified by the user. (((10))) On the computer, A function for vectorizing a search query containing one or more sentences entered by a user; A function of identifying sentences similar to the search sentence by searching sentence vector information generated by vectorizing each sentence included in a document to be searched, using the sentence vector of the search sentence generated by vectorization; a function of controlling display of the similar sentences in a manner that distinguishes them from sentences that are not similar to the search sentence when displaying the document; A program to achieve this.

[0092] According to the invention described in (((1))), sentences similar to a search sentence input by a user can be displayed in a distinguished manner among sentences contained in a document. According to the invention described in (((2))), when a document contains a large number of sentences, similar sentences can be extracted from the document at high speed. According to the invention described in (((3))), similar sentences that are considered to have a high similarity to the search sentence can be displayed in a distinguishable manner. According to the invention described in (((4))), each sentence contained in the document can be displayed in such a way that the degree of similarity with the search sentence can be determined. According to the invention described in (((5))), the search results based on the search sentence can be displayed to the user in a form convenient for the user according to the identified similar sentences. According to the invention described in (((6))), documents can be displayed in order of the number of sentences that are most similar to a search query. According to the invention described in (((7))), documents can be displayed in order of the number of similar sentences to a search sentence. According to the invention described in (((8))), the similar sentences can be displayed so that the user can distinguish which sentences contained in the search sentence the similar sentences are similar to. According to the invention described in (((9))), the user does not need to input a search sentence. According to the invention described in (((10))), sentences similar to a search sentence input by a user can be displayed in a distinguished manner among sentences contained in a document. [Explanation of symbols]

[0093] 2 information processing device, 10 preprocessing unit, 12 document acquisition unit, 14 sentence vector generation unit, 16 sentence vector information creation unit, 20 search processing unit, 22 search sentence acquisition unit, 24 search sentence vector generation unit, 26 similar sentence search processing unit, 28 display control unit, 32 corpus database (DB), 34 sentence vector information storage unit.

Claims

1. A processor is provided. The processor, vectorizing a query string including one or more sentences input by a user; A sentence vector information generated by vectorizing each sentence included in a document to be searched is searched for using the sentence vector of the search sentence generated by vectorization, thereby identifying sentences similar to the search sentence; and controlling the display of the document so that the similar sentences are distinguished from sentences that are not similar to the search sentence. An information processing system comprising:

2. The processor, acquiring the sentence vector information including cluster information indicating characteristics of each cluster formed by similar sentences based on sentence vectors generated by vectorizing each sentence included in the document, and association information including associations between each sentence included in the document and a cluster to which the sentence belongs; Identifying a cluster to which the search statement belongs by referring to the cluster information; referring to the association information, and identifying sentences belonging to the identified cluster as the similar sentences; 2. The information processing system according to claim 1 .

3. The processor, When the feature included in the cluster information is a central vector of the cluster, weighting each of the similar sentences according to the distance between the sentence vector of the similar sentence and the central vector of the cluster to which the similar sentence belongs; Controlling the display of the similar sentences so as to distinguish the weights of the similar sentences; 3. The information processing system according to claim 2.

4. The processor, If the feature included in the cluster information is a center vector of the cluster, the cluster to which the search query should belong is prioritized by comparing the sentence vector of the search query with each of the center vectors of the cluster; Controlling display of each sentence included in the document in accordance with the priority order of the cluster to which the sentence belongs; 3. The information processing system according to claim 2.

5. 2. The information processing system according to claim 1, wherein, when there are a plurality of documents within the search range, the processor determines a display order of the plurality of documents according to the identified similar sentences.

6. 6. The information processing system according to claim 5, wherein the processor determines a display order of the plurality of documents according to a similarity between the search sentence and each of the similar sentences.

7. 6. The information processing system according to claim 5, wherein the processor determines a display order of the plurality of documents depending on the number of similar sentences contained in each of the plurality of documents.

8. The information processing system according to claim 1, characterized in that, when the search statement contains multiple sentences and each of the multiple sentences has a similar sentence, the processor controls the display so that the correspondence between each of the multiple sentences and the similar sentences is displayed in a distinguishable manner.

9. The information processing system according to claim 1, wherein, when the user is editing a document, the processor automatically selects the search sentence from the document being edited at a timing when a specified condition is met, even if not input by the user.

10. On the computer, A function for vectorizing a search query containing one or more sentences entered by a user; A function of identifying sentences similar to the search sentence by searching sentence vector information generated by vectorizing each sentence included in a document to be searched, using the sentence vector of the search sentence generated by vectorization; a function of controlling display of the similar sentences in a manner that distinguishes them from sentences that are not similar to the search sentence when displaying the document; A program to achieve this.

Citation Information

Patent Citations

  • Information processor, computer program, and information processing method

    JP2017041133A

  • System and method for finding similar documents based on semantic factual similarity

    US20180150459A1

  • System and method for providing automated and unsupervised inline question answering

    US20210240775A1

  • Method and system for searching for and displaying related document

    WO2020261479A1

  • Retrieval method, retrieval program, and information processing device

    WO2022264385A1