Evaluation device, evaluation method, and program

The evaluation device and method address the issue of unfairly low similarity scores by using structural information to calculate text similarity through partial structure correspondence, enhancing accuracy and correlation with manual evaluations.

WO2024180766A1PCT designated stage expired Publication Date: 2024-09-06NIPPON TELEGRAPH & TELEPHONE CORP
View PDF 3 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Conventional methods for evaluating text similarity, such as those based on surface information matching and sentence embedding vectors, often assign unfairly low similarity scores to expressions with similar meanings but different surface information, failing to effectively utilize structural information.

Method used

An evaluation device and method that acquires partial structures from text using syntactic analysis and calculates similarity based on the correspondence between these partial structures, employing techniques like greedy and linear programming to determine substructure correspondence and vector similarity.

Benefits of technology

This approach allows for a more accurate evaluation of text similarity by incorporating structural information, improving correlation with manual evaluations and outperforming baseline methods in certain language pairs, while using monolingual data and an unsupervised model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2023007845_06092024_PF_FP
    Figure JP2023007845_06092024_PF_FP
Patent Text Reader

Abstract

This evaluation device comprises: a substructure acquisition unit that acquires a first substructure that is a substructure of first text and a second substructure that is a substructure of second text; an association unit that obtains an association for each substructure between one or more first substructures and one or more second substructures; and a similarity calculation unit that calculates a similarity between the first text and the second text on the basis of a calculated value that indicates a relationship between the associated first substructure and second substructure.
Need to check novelty before this filing date? Find Prior Art

Description

Evaluation device, evaluation method, and program

[0001] The present invention relates to a technique for calculating the similarity between two texts.

[0002] A conventional technique for calculating the similarity between two texts is disclosed in, for example, Non-Patent Document 1. Non-Patent Document 1 discloses a method for determining a correspondence between tokens in texts based on the cosine similarity of embedding vectors of tokens in the texts, and for calculating the similarity between the texts based on the correspondence.

[0003] Tianyi Zhang*, Varsha Kishore*, Felix Wu*, Kilian Q. Weinberger, and Yoav Artzi. Bertscore: Evaluating text generation with bert. In International Conference on Learning Representations, 2020.

[0004] However, in the conventional techniques such as Non-Patent Document 1, for example, expressions that have similar meanings despite having different surface information are assigned an unreasonably low similarity score. In other words, the conventional techniques have the problem of being unable to appropriately evaluate the similarity between texts.

[0005] The present invention has been made in view of the above points, and has an object to provide a technique for appropriately evaluating the similarity between texts.

[0006] According to the disclosed technology, an evaluation device is provided that includes: a partial structure acquisition unit that acquires a first partial structure that is a partial structure of a first text and a second partial structure that is a partial structure of a second text; a matching unit that determines a correspondence for each partial structure between one or more first partial structures and one or more second partial structures; and a similarity calculation unit that calculates a similarity between the first text and the second text based on a calculated value that represents the relationship between the matched first partial structure and second partial structure.

[0007] The disclosed technology provides a technology for appropriately evaluating the similarity between texts.

[0008] FIG. 1 is a configuration diagram of the evaluation device 100. FIG. 2 is a flowchart for explaining the operation of the evaluation device 100. FIG. 3 is a diagram for explaining a specific example of partial structure acquisition. FIG. 4 is a diagram for explaining a specific example of partial structure acquisition. FIG. 5 is a diagram showing an example of a phrase structure tree with phrase structure labels attached. FIG. 6 is a diagram showing an example of a dependency structure tree with edge labels attached. FIG. 7 is a diagram showing an example of the hardware configuration of the evaluation device 100. FIG. 8 is a diagram showing experimental results.

[0009] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. The embodiment described below is merely an example, and the embodiment to which the present invention is applied is not limited to the following embodiment.

[0010] In this specification, references are indicated by numbers such as "[1]", and the names of the references corresponding to the numbers are listed at the end of the specification.

[0011] Below, we will explain the technology related to this embodiment, which is an evaluation method for determining the similarity between two texts based on the similarity between the substructures of these texts.To make this technology easier to understand, we will first explain the background technology and issues.

[0012] In the following description of the background art and problems, the contents disclosed in the reference documents are publicly known, but the explanations of the contents disclosed in the reference documents and the explanations of the problems are not publicly known.

[0013] (Background Art) A typical method for evaluating the similarity between two texts is a method based on matching of surface information, as exemplified by BLEU [1]. BLEU is the de facto standard for automatic evaluation measures in machine translation, and evaluates the similarity based on the degree of agreement of word n-grams between a translated text and a reference translation.

[0014] In recent years, many similarity measures based on the context embedding vectors of words and sentences using large-scale pre-trained models have been proposed. BERTScore [2] proposes a method of determining the correspondence between tokens in text based on the cosine similarity of the embedding vectors of text tokens and calculating the similarity between texts based on that correspondence. In this case, the pre-trained model used to calculate the embedding vectors does not undergo fine-tuning, so no training data is required.

[0015] On the other hand, BLEURT [3] proposes a method of calculating similarity by adding a linear layer on top of the [CLS] vector in the final layer of BERT [4]. In this case, the parameters of BERT and the linear layer are fine-tuned using manually annotated translation evaluation data, so manually created training data is required.

[0016] Additionally, methods based on paraphrase generation using a Sequence-to-Sequence (Seq2Seq) model have also been proposed. Prism [5] proposes a method that uses a paraphrase generator created as a Seq2Seq model to generate a paraphrase from a reference translation to a translation, or vice versa, as an evaluation metric. In this case, the paraphrase generator is created by training a multilingual translation model, which generates paraphrases between the same languages ​​in a framework similar to that of the zero-shot translation task. Furthermore, Prism supports 39 languages ​​and achieved comparable or higher correlations with all other evaluation metrics in segment-level evaluations of the WMT 2019 metric shared task.

[0017] (Problem) Methods based on surface information matching have the problem of assigning an unreasonably low similarity score to expressions that have similar meanings despite different surface information (or expressions that have different meanings despite similar surface information). Methods based on sentence embedding vectors and paraphrase generation have been proposed to address this problem.

[0018] However, these methods do not utilize structural information contained in texts. Texts have inherent structures, such as phrase structures, dependency structures, and rhetorical structures, that reflect word meanings, grammatical functions, and phrase roles. While text structure is thought to provide a useful clue for capturing differences between texts, it is unclear whether structural information is useful for measuring inter-text similarity. Texts inherently have structures that reflect word meanings, such as phrase structures, dependency structures, and rhetorical structures, that reflect word meanings, grammatical functions, and phrase roles. While text structure provides a useful clue for capturing differences between texts, it is unclear whether structural information is useful for measuring inter-text similarity.

[0019] Regarding methods based on sentence embedding vectors, it has been analyzed that pre-trained models retain structural information as latent representations [6], but this does not explicitly use structural information to calculate the similarity measure.

[0020] (Outline of the embodiment) In this embodiment, the evaluation device 100 uses structural information of the texts to acquire the partial structures of two texts, and calculates the similarity between the two texts based on the similarity between the partial structures that have a corresponding relationship between the two texts. More specifically, the evaluation device 100 lists the partial structures of each of the two texts for which similarity is to be calculated, then calculates the correspondence between the partial structures of the two texts, and finally calculates the similarity between the texts using the vector similarity between the partial structures based on the correspondence.

[0021] (Device Configuration Example) Fig. 1 shows a configuration example of an evaluation device 100 according to this embodiment. As shown in Fig. 1, the evaluation device 100 includes an input unit 150, a structure acquisition unit 110, a substructure acquisition unit 120, an association unit 130, a similarity calculation unit 140, and an output unit 160.

[0022] An overview of the operation of the evaluation device 100 will be described with reference to the flowchart in Fig. 2. In S101, text x and text y are input from the input unit 150. Each of text x and text y consists of a plurality of elements. In this embodiment, the elements that make up the text are words, but are not limited to words. "Text" may also be called "sentence."

[0023] In S102, the structure acquisition unit 110 acquires the structure information of each of the texts x and y. In S103, the substructure acquisition unit 120 acquires the substructure from each of the structure information of the text x and the structure information of the text y.

[0024] In S104, the association unit 150 calculates the association between the substructure of text x and the substructure of text y.

[0025] In S105, the similarity calculation unit 140 calculates the similarity between the text x and the text y based on the correspondence obtained in S104. In S106, the output unit 160 outputs the similarity.

[0026] The function of the structure acquisition unit 110 may be provided in the partial structure acquisition unit 120, so that the evaluation device 100 does not include the structure acquisition unit 110. Furthermore, the structure information obtained by the structure acquisition unit 110 may be calculated outside the evaluation device 100, and the structure information may be input from outside, so that the evaluation device 100 does not include the structure acquisition unit 110.

[0027] The processing of each of the above steps will be explained in more detail below, using specific examples where appropriate.

[0028] (S101, S102: Input, Structure Acquisition) In S101, text x=<x 1 , ..., x i 〉 and text y = 〈y 1 , ..., y j > is input. Each element of text x, which consists of i elements, is a word. Similarly, each element of text y, which consists of j elements, is a word.

[0029] Furthermore, the input unit 150 receives an embedding vector of text x, <vector x 1 , ..., vector x i 〉 and the embedding vector of text y〈vector y 1 , ..., vector y j > is input. The embedding vector may be calculated by the input unit 150 or the structure acquisition unit 110 from the texts x and y.

[0030] In the image of the formula inserted under the symbol "Number 1" etc., vectors are written in bold, but in the text of the specification, when a vector is represented, it is written as "vector x", unless it is clear from the context that it is a vector.

[0031] In S102, the structure acquisition unit 110 acquires structural information of the texts by using a syntax analysis method for each of the texts x and y.

[0032] The structural information to be acquired is not limited to a specific one, and any structural information may be used as long as it can represent the text as a directed graph (including a tree structure).

[0033] Furthermore, the structural information in this embodiment may be any information that includes at least information about the text divided into predetermined units and the relationships between those elements. The structural information may also include label information indicating the type of element or the type of relationship between the elements, or vector information used during structure extraction (e.g., during phrase structure analysis using a neural network).

[0034] Specifically, examples of structural information that can be used include discourse structure, phrase structure, dependency structure, Universal Dependencies, and AMR (Abstract Meaning Representation). Universal Dependencies is disclosed in, for example, "Joakim Nivre. Towards a universal grammar for natural language processing. In Computational Linguistics and Intelligent Text Processing, pp. 3-16. Springer, 2015."

[0035] In this embodiment, it is assumed that phrase structure trees or dependency structure trees, which are widely used among structural information and can be obtained with very high accuracy by the structure acquisition unit 110 (for example, an existing structural analyzer), are acquired as structural information.

[0036] (S103: Obtaining Substructures) In S103, the substructure obtaining unit 120 obtains (lists) substructures for which correspondence relationships are to be found from the structure information calculated in S102 for each of the text x and the text y.

[0037] For example, when a phrase structure tree is used as the structural information, the partial structure acquisition unit 120 acquires all subtrees for the phrase structure tree. Each subtree of all the subtrees is one partial structure. When a dependency structure tree is used as the structural information, the subtree does not include a substructure consisting of only individual words, so the partial structure acquisition unit 120 acquires each node and the path from the leaf node to each node as the partial structure in addition to the subtree.

[0038] The substructure of text x is s m , substructure s m The subscript string of the words included in m The substructure acquisition unit 120 defines the substructure s m Vector s corresponding to m of

[0039] The above formula (1) is calculated as follows: k This means calculating the average of each substructure s m For vector s m Ask for.

[0040] Here, aggr(s m ) is s m Any function may be used as long as it calculates a vector corresponding to the substructure t of text y, and it does not necessarily have to be the average of the word vectors included in the substructure as in formula (1). n The calculation is performed for text x in the same way.

[0041] <Specific Example of Partial Structure Acquisition> Here, a specific example of partial structure acquisition for a certain text will be described. 1 ~z 6 10 is a diagram showing an example of extracting all subtrees from the phrase structure tree of a text having the following structure:

[0042] A phrase structure tree is a tree structure (syntax tree) in which symbols (phrase structure labels) representing phrase types in text, such as noun phrases (NP), verb phrases (VP), prepositional phrases (PP), and sentences (S), are used as internal nodes (branching points), and each word in the text is used as a leaf node.

[0043] In the example of FIG. 3, the phrase type symbols of each internal node are omitted. 1 and Z 2 NP is composed of z 1 ~z 6 S is constructed as follows.

[0044] In the example of FIG. 3, each subtree is represented by a span (word length) of words (word subscripts). A span can be a single word. For example, (1, 1) is a span of one word z 1 Also, (1,6) is a subtree consisting of six words z 1 ~z 6 is a subtree with

[0045] FIG. 4 shows the word z 1 ~z 6 10 is a diagram showing an example of acquiring a substructure from a dependency structure tree of a text having the following structure:

[0046] A dependency structure tree is a tree structure (syntax tree) that represents the dependency relationships between words in a text, and each node represents a word, with an arrow attached from the dependency destination (root / parent) to the dependency source (leaf / child). In the example of Figure 4, each node (z 1 The paths from the leaf nodes to each node are extracted as substructures of length 2 and length 3. 6 A subtree rooted at is extracted as a substructure of length 6.

[0047] For reference, an example of a phrase structure tree in which phrase structure labels are attached to specific text is shown in Figure 5. Figure 6 shows an example of a dependency structure tree in which edge labels are attached to the same text as shown in Figure 5.

[0048] The most dominant word in a subtree is called the head. In a dependency structure tree, the head is the word closest to the root, and in a phrase structure tree, it is the word determined by the rules. Labels that indicate the role of each subtree in a phrase structure tree, such as the aforementioned S, NP, and VP, are called phrase structure labels. In a dependency structure tree, the labels attached to the arrows from word to word are called edge labels to the parent node.

[0049] (S104: Matching) In S104, the matching unit 130 matches the listed substructures s based on the similarity sim(s, t) between the substructures of the two texts. m , t n The corresponding substructures a(s) of the other text m ), a'(t m For example, for a certain substructure A in text x, a corresponding substructure B in text y is found. This process of finding correspondences (a process of finding a substructure in one text that corresponds to a substructure in the other text) is performed for each substructure in text x and for each substructure in text y.

[0050] The method by which the association unit 130 determines this correspondence is not limited to a specific method, but can use, for example, a greedy method, linear programming, or dynamic programming. Below, the greedy method and linear programming will be described as specific examples of methods for determining correspondence. When dynamic programming is used, a sequence of substructures sorted by word length or text appearance position can be used as input to determine the correspondence using general dynamic programming.

[0051] In this embodiment, the similarity sim(s, t) between the substructures used to calculate the correspondence relationship may be calculated using any method that can obtain a value equivalent to the similarity. Specific examples of calculation methods will be described later.

[0052] <Greedy Method> First, the greedy method will be described. The greedy method of this embodiment is based on BERTScore [2]. The matching unit 130 finds a correspondence by selecting the substructure of one text with the highest similarity score sim(s, t) from the substructure of the other text for each substructure of one text, as shown in the following formulas (2) and (3).

[0053] If all the substructures listed are matched as in the above method, the problem occurs that the parent-child relationships in the tree structure are reversed or negated. To reduce the impact of this problem, only substructures s with the same word length l are matched. l n and l m The correspondence may be made as follows, with the constraint that the correspondence is limited to only between:

[0054] When determining correspondence by imposing constraints as described above, for example, if the partial structures of word length 1 (the number one) in text x are (1,1), (2,2), and (3,3), and the partial structures of word length 1 (the number one) in text y are (1,1), (2,2), and (3,3), the partial structure of text y to be matched with the partial structure (1,1) of word length 1 (the number one) in text x is the one of (1,1), (2,2), and (3,3) in text y that has the largest score with (1,1) in text x.

[0055] (Linear Programming) Next, linear programming will be described. Here, the association unit 130 finds the optimal correspondence between substructures by using linear programming to solve the problem of finding a set that maximizes the sum of the correspondence scores. For example, the association unit 130 finds the optimal correspondence by solving an integer programming problem formulated as follows:

[0056]

[0057] Furthermore, as with the greedy method, the above method also suffers from the problem of obtaining correspondences that reverse the parent-child relationships in the tree structure. To solve this problem, as with the greedy method, it is possible to impose a constraint that the word lengths must match. Furthermore, as a weaker constraint than the word length match, it is also possible to impose a constraint that the parent-child relationships must not be reversed. Correspondences that do not reverse the parent-child relationships can be obtained by adding the following linear inequality to the constraint equation in the above formulation.

[0058] For example, in the example of FIG. 3, between the substructure (1,1) and the substructure (1,2), the substructure (1,1) is the child and the substructure (1,2) is the parent.

[0059] The meaning of the above formula (10) will be explained. Here, the partial structure in text x is m 1 , m 2 Let the partial structure in text y be n 1 , n 2 Equation (10) is defined as "[0]m 1 Ga m 2 If it's a child of n 1 Ga n 2 The condition "child of" and "n 1 Ga n 2 If it's a child, 1 Ga m 2 If neither of the conditions "child of" is met, 1 , n 1 ) and (m 2 , n 2 ) do not occur simultaneously.

[0060] <Similarity Between Substructures> Next, the similarity sim(s, t) will be described. The similarity sim(s, t) between substructures represents the score of the similarity between substructures s and t, and is defined, for example, by using the degree of match of the surface information of the substructures (word overlap rate) or the similarity of vectors corresponding to the substructures. As a method based on the similarity of vectors corresponding to the substructures, it can be calculated, for example, as follows.

[0061] Alternatively, the following score may be used, which introduces filtering of correspondence based on the match between a label (s) corresponding to a substructure s and a label (t) corresponding to a substructure t.

[0062] According to the above formula, the score of correspondences with mismatched labels is 0, so correspondences with mismatched labels are not selected. In other words, correspondences are found only between substructures with the same label.

[0063] Here, the labels can be the head or phrase labels of the substructures, edge labels to parent nodes, etc. By filtering out candidates for correspondence in advance in this way, the amount of calculation required to determine correspondence can be reduced. Furthermore, if filtering is not performed, scores greater than 0 will be assigned to correspondences between substructures that do not correspond, which may result in noise in the similarity scale. However, by performing filtering in advance and assigning scores of 0 to substructures that do not clearly correspond, this problem can be alleviated and accuracy improved.

[0064] (S105, S106: Calculate and output similarity) In S105, the similarity calculation unit 140 calculates the similarity between text x and text y based on the correspondence calculated in S104. Here, it is assumed that the correspondence between the substructures of each word length l has been obtained.

[0065] The similarity calculation unit 140 first calculates a score F for the correspondence between the word length l between the text x and the text y. l Let P be the average score for the correspondence x. l and the average score R for y l Then, the following calculation is performed for each word length l.

[0066] In the above example, the similarity is calculated using the sim function described above as a calculated value representing the relationship between partial structures, but this is just an example and the method is not limited to using the sim function.

[0067] Next, the similarity calculation unit 140 calculates the score F for the plurality of word lengths obtained above. l Based on this, the final inter-text similarity F is calculated as follows:

[0068] Here, I x , I y are sets of word length types of the substructures of x and y, respectively, and I = I x ∪I y Also, w l is a weight parameter according to the word length l, and is defined as follows depending on the setting, for example: Depending on the setting, one of const, length, depth, and learn can be selected.

[0069] The weights described above allow for adjustment of the influence that the similarity of the substructure with respect to the word length l has on the final text similarity. In particular, in learn, θ is used as a learnable parameter, and by learning so that the text similarity F fits to ground truth data such as manual evaluation, a more appropriate text similarity F can be obtained.

[0070] (Hardware Configuration Example) The evaluation device 100 described in this embodiment can be realized, for example, by causing a computer to execute a program. This computer may be a physical computer or a virtual machine on the cloud.

[0071] That is, the device can be realized by executing a program corresponding to the processing performed by the device using hardware resources such as a CPU and memory built into a computer. The program can be recorded on a computer-readable recording medium (such as a portable memory) and stored or distributed. The program can also be provided via a network such as the Internet or email.

[0072] Fig. 7 is a diagram showing an example of the hardware configuration of the computer. The computer in Fig. 7 includes a drive device 1000, an auxiliary storage device 1002, a memory device 1003, a CPU 1004, an interface device 1005, a display device 1006, an input device 1007, an output device 1008, and the like, all of which are interconnected by a bus BS. The computer may further include a GPU.

[0073] The program that realizes the processing on the computer is provided by a recording medium 1001, such as a CD-ROM or a memory card. When the recording medium 1001 storing the program is set in the drive device 1000, the program is installed from the recording medium 1001 to the auxiliary storage device 1002 via the drive device 1000. However, the program does not necessarily have to be installed from the recording medium 1001, but may be downloaded from another computer via a network. The auxiliary storage device 1002 stores the installed program as well as necessary files, data, etc.

[0074] The memory device 1003 reads and stores the program from the auxiliary storage device 1002 when an instruction to start the program is received. The CPU 1004 realizes functions related to the evaluation device 100 in accordance with the program stored in the memory device 1003. The interface device 1005 is used as an interface for connecting to a network, etc. The display device 1006 displays a GUI (Graphical User Interface) or the like according to the program. The input device 1007 is composed of a keyboard, mouse, buttons, a touch panel, etc., and is used to input various operation instructions. The output device 1008 outputs the results of calculations.

[0075] (Effects of the Embodiments) The techniques according to the embodiments described above make it possible to appropriately evaluate the similarity between texts.

[0076] In order to confirm the effectiveness of the technology related to this embodiment (hereinafter referred to as the proposed method), we conducted an experiment to confirm the correlation between the inter-text similarity between machine-translated sentences and reference translations using the proposed method and manual evaluations. This experiment will be described below.

[0077] <Settings> The dataset used was data from the system-level assessment task of the Metrics Shared Task [7, 8] for WMT20 and WMT21. Because a language capable of analyzing multiple types of syntax and determining heads was required for the comparison of the structures used, we only used language pairs with English as the target language. For WMT20, we used {cs,de,iu,ja,km,pl,ps,ru}-en, and for WMT21, we used the reference translations called ref-A of {cs,de,is,ja,ru,zh}-en. For baselines, we used Prism [5] and BLEURT [3] for WMT20, and Prism and BERTScore [2] for WMT21, from the scales used in the task in each year. For the assessment scales, we used Pearson's correlation coefficient, as per WMT20, and Williams' test for significance testing between scales.

[0078] The proposed method uses SpanBERT [9] as a pre-trained model.,The structural information is derived from dependency structure, and the,dependency structure analyzer is based on spaCy's RoBERTa,based pipeline.

[0079] The matching was performed using a greedy method with word length restrictions, and filtering was introduced using the head of the substructure as a label for the similarity score between substructures. l for const The values ​​used were

[0080] <Experimental Results> The experimental results are shown in Figure 8. Figure 8 shows the correlation coefficients for each language pair in WMT20 / WMT21. Bold indicates the best score among the three measures. Also, † indicates that this is a development dataset.

[0081] As shown in Figure 8, WMT20 achieves higher or equal accuracy than the baseline for language pairs other than de-en and ps-en, and WMT21 achieves accuracy other than zh-en. While the baselines Prism and BLEURT require large-scale multilingual parallel corpora and manually evaluated data as training data, the proposed method achieves such accuracy despite being an unsupervised method using a language model pre-trained with relatively readily available monolingual data.

[0082] This suggests that taking structure into account in inter-text similarity measures is effective. However, compared to BERTScore, which, like the proposed method, is based on a pre-trained language model using monolingual data, a significant decrease in accuracy is observed for some data. While BERTScore is based on token-level alignment, the proposed method is considered to have expanded that alignment to the substructure level, and it is therefore thought that the constraint of alignment based on structural information is actually causing a decrease in accuracy.

[0083] The following additional notes are provided regarding the above-described embodiments.

[0084] <Supplementary Notes> (Supplementary Item 1) An evaluation device including a memory and at least one processor connected to the memory, wherein the processor acquires first substructures that are substructures of a first text and second substructures that are substructures of a second text, determines correspondences for each substructure between one or more first substructures and one or more second substructures, and calculates a similarity between the first text and the second text based on a calculated value representing the relationship between the determined first substructures and the determined second substructures. (Supplementary Item 2) The evaluation device according to Supplementary Item 1, wherein the processor determines correspondences only between first and second substructures that have the same word length. (Supplementary Item 3) The evaluation device according to Supplementary Item 1 or 2, wherein the processor determines correspondences between the first and second substructures so that a parent-child relationship between the first and second substructures is not reversed. (Supplementary Item 4) The evaluation device according to any one of Supplementary Items 1 to 3, wherein the processor determines correspondences only between first and second substructures that have the same label. (Supplementary Item 5) The evaluation device according to any one of Supplementary Items 1 to 4, wherein the processor calculates the similarity using a calculated value between a first substructure and a second substructure associated with the first substructure, and a calculated value between the second substructure and the first substructure associated with the second substructure. (Supplementary Item 6) The evaluation device according to any one of Supplementary Items 1 to 5, wherein the processor calculates the similarity using the calculated value and a weight for the word length of the substructure. (Supplementary Item 7) An evaluation method executed by a computer, comprising: acquiring a first substructure that is a substructure of a first text and a second substructure that is a substructure of a second text; determining a correspondence for each substructure between one or more first substructures and one or more second substructures; and calculating a similarity between the first text and the second text based on a calculated value that represents the relationship between the associated first substructures and second substructures. (Supplementary Item 8) A non-transitory storage medium storing a program for causing a computer to function as each unit in the evaluation device according to any one of Supplementary Items 1 to 6.

[0085] Although the present embodiment has been described above, the present invention is not limited to such a specific embodiment, and various modifications and changes are possible within the scope of the gist of the present invention described in the claims. [References] [1] Kishore Papineni, Salim Roukos, Todd Ward, and Wei-Jing Zhu. Bleu: a method for automatic evaluation of machine translation. In Proceedings of the 40th Annual Meeting of the Association for Computational Linguistics, pp. 311-318, Philadelphia, Pennsylvania, USA, July 2002. Association for Computational Linguistics. [2] Tianyi Zhang*, Varsha Kishore*, Felix Wu*, Kilian Q. Weinberger, and Yoav Artzi. Bertscore: Evaluating text generation with bert. In International Conference on Learning Representations, 2020. [3] Thibault Sellam, Dipanjan Das, and Ankur Parikh. BLEURT: Learning robust metrics for text generation. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pp. 7881-7892, Online, July 2020. Association for Computational Linguistics. [4] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova.Bert: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the NAACL-2019, pp. 4171-4186, 2019. [5] Brian Thompson and Matt Post. Automatic machine translation evaluation in many languages via zeroshot paraphrasing. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), Online, November 2020. Association for Computational Linguistics. [6] John Hewitt and Christopher D. Manning. A structural probe for finding syntax in word representations. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pp. 4129-4138, Minneapolis, Minnesota, June 2019. Association for Computational Linguistics. [7] Nitika Mathur, Johnny Wei, Markus Freitag, Qingsong Ma, and Ondrej Bojar. Results of the WMT20 metrics shared task. In Proceedings of the Fifth Conference on Machine Translation, pp.688-725, Online, November 2020. Association for Computational Linguistics. [8] Markus Freitag, Ricardo Rei, Nitika Mathur, Chi-kiu Lo, Craig Stewart, George Foster, Alon Lavie, and Ondrej Bojar. Results of the WMT21 metrics shared task: Evaluating metrics with expert-based human evaluations on TED and news domain. In Proceedings of the Sixth Conference on Machine Translation, pp. 733-774, Online, November 2021. Association for Computational Linguistics. [9] Mandar Joshi, Danqi Chen, Yinhan Liu, Daniel S. Weld, Luke Zettlemoyer, and Omer Levy. SpanBERT: Improving pre-training by representing and predicting spans. Transactions of the Association for Computational Linguistics, Vol. 8, pp. 64-77, 2020.

[0086] REFERENCE SIGNS LIST 100 Evaluation device 110 Structure acquisition unit 120 Substructure acquisition unit 130 Correspondence unit 140 Similarity calculation unit 150 Input unit 160 Output unit 1000 Drive device 1001 Recording medium 1002 Auxiliary storage device 1003 Memory device 1004 CPU 1005 Interface device 1006 Display device 1007 Input device 1008 Output device

Claims

1. An evaluation device comprising: a substructure acquisition unit that acquires a first substructure that is a substructure of a first text and a second substructure that is a substructure of a second text; a matching unit that determines a correspondence for each substructure between one or more first substructures and one or more second substructures; and a similarity calculation unit that calculates a similarity between the first text and the second text based on a calculated value that represents the relationship between the matched first substructure and second substructure.

2. The evaluation device according to claim 1, wherein the matching section finds a match only between a first substructure and a second substructure having the same word length.

3. The evaluation device according to claim 1, wherein the matching unit determines a correspondence between the first substructure and the second substructure such that a parent-child relationship between the first substructure and the second substructure is not reversed.

4. The evaluation device according to claim 1, wherein the matching section finds a correspondence only between a first substructure and a second substructure having the same label.

5. The evaluation device described in claim 1, wherein the similarity calculation unit calculates the similarity using a calculated value between a first substructure and a second substructure associated with the first substructure, and a calculated value between the second substructure and the first substructure associated with the second substructure.

6. The evaluation device according to claim 1, wherein the similarity calculation unit calculates the similarity using the calculated value and a weight for the word length of the partial structure.

7. An evaluation method executed by a computer, comprising: obtaining a first substructure that is a substructure of a first text and a second substructure that is a substructure of a second text; determining a correspondence between one or more of the first substructures and one or more of the second substructures; and calculating a similarity between the first text and the second text based on a calculated value that indicates a relationship between the associated first substructure and second substructure.

8. A program for causing a computer to function as each unit in the evaluation device according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • System and method for machine translation and computer program

    JP2004318344A

  • Sentence similarity calculation device, trained model generation device, and variance expression model

    JP2022029273A

  • Text comparing device, text comparing method, and text comparing program

    WO2021010260A1