Automatic measurement of semantic similarity between conversations
By encoding conversational texts into semantic representations and calculating a minimum edit distance, the method addresses the challenge of measuring semantic similarity in conversations, achieving improved accuracy and alignment.
Patent Information
- Application Number
- JP2024513042
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-10-04
- Filing Date
- 2022-09-07
- Publication Date
- 2024-10-16
- Estimated Expiration
- 2042-09-07
AI Technical Summary
Existing methods struggle to accurately measure semantic similarity in conversational texts due to their unique characteristics, such as multiple authors and ordered flow of utterances, which traditional text representation methods fail to account for.
A method that encodes conversational texts into sequences of semantic representations and calculates a minimum edit distance, considering operations like deletions, insertions, and replacements, with specific costs assigned to these operations to quantify semantic similarity and align utterances.
The method effectively captures the semantic similarity and flow of conversations, outperforming traditional methods in correlation with human perception and structural similarity, providing a more accurate alignment and similarity measurement.
Smart Images

Figure 2024537605000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to the field of natural language processing and text processing. [Background technology]
[0002] Measuring semantic text similarity is at the heart of many natural language and text processing tasks, such as sentence classification, information retrieval, and question answering.
[0003] Traditional text representation techniques such as high-dimensional sparse feature vectors were given a boost by the introduction of efficiently learned embeddings to unleash the full power of dense semantic representations of words. Later, new methods for contextual representation of words, sentences, paragraphs and documents were developed, facilitating the assessment of semantic similarity between larger pieces of text.
[0004] Nevertheless, there remains a need for new methods to measure semantic text similarity. One such particular need arises in the domain of semantically comparing conversational texts. Conversations are different from most other types of documents. Traditional documents usually compound multiple sentences or paragraphs in an unstructured way to express one or more ideas. Traditional documents usually have one author (or multiple authors working together on all or most parts of the document). Conversations, on the other hand, can be considered as semi-structured documents consisting of a sequence of utterances. Conversations have their own characteristics, such as the presence of an author for each utterance and an ordered conversational flow that can be considered as a skeleton built up of dialogue acts. Measuring semantic similarity between conversations therefore poses a unique challenge.
[0005] The foregoing embodiments of the related art and limitations associated therewith are intended to be illustrative and not exhaustive. Other limitations of the related art will become apparent to those of skill in the art upon reading the specification and studying the drawings. Summary of the Invention
[0006] The following embodiments and aspects thereof are described and illustrated in conjunction with systems, tools, and methods that are exemplary and illustrative, and not limiting in scope.
[0007] According to some embodiments, a computer-implemented method is provided herein that includes receiving two conversational texts, each including a sequence of utterances, encoding each of the sequences of utterances into a corresponding sequence of semantic representations, calculating a minimum edit distance between the sequences of semantic representations, and performing at least one of: (a) quantifying a semantic similarity between the two conversational texts, and (b) outputting an alignment of the two sequences of utterances with respect to each other based on the calculation of the minimum edit distance.
[0008] Further, according to some embodiments, there is provided herein a system that includes at least one hardware processor and a non-transitory computer-readable storage medium having program code embodied therein, the program code being automatically executable by the at least one hardware processor to cause the at least one hardware processor to perform at least one of: receiving two conversational texts, each including a sequence of utterances, encoding each of the sequences of utterances into a corresponding sequence of semantic representations, calculating a minimum edit distance between the sequences of semantic representations, and based on the calculation of the minimum edit distance, (a) quantifying a semantic similarity between the two conversational texts, and (b) outputting an alignment of the two sequences of utterances with respect to one another.
[0009] Further, according to some embodiments, there is provided herein a computer program product including a non-transitory computer-readable storage medium having program code embodied therein, the program code being automatically executable by at least one hardware processor to cause the at least one hardware processor to perform at least one of: receiving two conversational texts, each including a sequence of utterances, encoding each of the sequences of utterances into a corresponding sequence of semantic representations, calculating a minimum edit distance between the sequences of semantic representations, and based on the calculation of the minimum edit distance, (a) quantifying a semantic similarity between the two conversational texts, and (b) outputting an alignment of the two sequences of utterances with respect to one another.
[0010] In some embodiments, computing the minimum edit distance involves assigning costs to the following edit operations: deletion, insertion, and substitution.
[0011] In some embodiments, the cost of a substitution is based on the cosine distance between the semantic representations.
[0012] In some embodiments, the method further includes, or the program code is further executable for: assigning infinitely high substitution costs between semantic representations whose underlying utterances are authored by different author types.
[0013] In some embodiments, the semantic representation is a semantic distribution representation.
[0014] In some embodiments, the computer-implemented method is performed by at least one hardware processor.
[0015] In addition to the exemplary aspects and embodiments described above, further aspects and embodiments will become apparent by reference to the figures and by study of the following detailed descriptions.
[0016] Exemplary embodiments are illustrated in the reference figures, in which dimensions of components and features shown have generally been chosen for convenience and clarity of presentation and have not necessarily been drawn to scale. The figures are listed below. [Brief description of the drawings]
[0017] [Figure 1] FIG. 1 is a block diagram of an exemplary system for measuring semantic similarity between conversations, according to one embodiment. [Diagram 2] 1 illustrates a flowchart of a method for measuring semantic similarity between conversations according to one embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0018] Disclosed herein is a method, also implemented in a system and computer program product, for automatically measuring semantic similarity between conversations.
[0019] The term "conversation" may be used to describe a series of interactive utterances between two or more creators (or "users"). In its simplest form, a conversation may be a dialogue between two creators, but more complex conversations may take place between two or more creators. Creators may be humans, artificial intelligence (AI) software programs (sometimes called "chatbots" or "virtual agents"), or a combination of both.
[0020] In contrast to traditional documents, the semantics of a conversation lies in a number of factors, including the meaning of each discrete utterance, the flow (order) of utterances along the conversation, the identities (or types of identities, e.g., human or AI) of the different authors, etc. Advantageously, the present method takes these inherent characteristics into account.
[0021] The method is based on "edit distance," a known metric and algorithm commonly used in sequence analysis, advantageously adapted to the special case of semantic conversational similarity.
[0022] The ability to compare conversations may be beneficial in many real-world use cases, such as conversation analysis of contact center calls, virtual agent design, etc. For example, conversation comparison is used to infer a certain consensus among a number of conversations with the aim of comparing a newly presented conversation with this consensus. As another example, in the field of customer care, comparing human-to-human conversations with human-to-virtual agent conversations can uncover flaws in the programming of a virtual agent and provide insights on how to fix the flaws.
[0023] Reference is now made to Figure 1, which illustrates a block diagram of an exemplary system 100 for measuring semantic similarity between conversations, according to one embodiment. The system 100 may include one or more hardware processors 102, a random access memory (RAM) 104, and one or more non-transitory computer-readable storage devices 106.
[0024] The storage device 106 may have stored thereon program instructions and / or components configured to operate the hardware processor 102. The program instructions may include one or more software modules, such as the semantic similarity measurement module 108. The software components may include an operating system having various software components and / or drivers for controlling and managing general system tasks (e.g., memory management, storage control, power management, etc.) and facilitating communication between various hardware and software components.
[0025] The system 100 may be operated by loading instructions of a semantic similarity measurement module 108 into the RAM 104 when executed by the processor 102. The instructions of the semantic similarity measurement module 108 may cause the system 100 to receive conversations 110, measure their semantic differences, and output results 112 of this measurement.
[0026] The system 100 described herein is merely an exemplary embodiment of the invention and may in fact be implemented in hardware only, software only, or a combination of both hardware and software. System 100 may have more or fewer components and modules than shown, may combine two or more components, or may have a different configuration or arrangement of components. System 100 may include any additional components that enable it to function as an operational computer system, such as a motherboard, data bus, power supply, network interface card, display, input devices (e.g., keyboard, pointing device, touch-sensitive display), etc. (not shown). Additionally, the components of system 100 may be co-located or distributed as known in the art, or the system may be configured to run as one or more cloud computing "instances," "containers," "virtual machines," or other types of encapsulated software applications.
[0027] Instructions for the semantic similarity measurement module 108 will now be described with reference to the flowchart of FIG. 2, which illustrates a method 200 for measuring semantic similarity between conversations, according to an embodiment.
[0028] The steps of method 200 may be performed in the order presented, or in a different order (or even in parallel), so long as the input required for a step can be obtained from the output of a previous step. Additionally, the steps of method 200 are performed automatically (e.g., by system 100 of FIG. 1) unless otherwise noted.
[0029] Method 200, in a general sense, treats a conversation as a sequence of utterances and uses edit distance to measure the minimum cost of a sequence of edit operations required to transform one conversation into another. The basic edit operations (delete, insert, and replace) measure the semantic distance between utterances given their authorship and can be used to define the dynamic cost of utterance replacement operations.
[0030] Optionally, method 200 also provides conversation-specific adaptations, such as special treatment of multiple subsequent utterances from the same author when computing the semantic similarity cost function, and additional conversation-specific editing operations, such as swap operations for turns (pairs of utterances from different authors) that preserve order within each turn.
[0031] TIFF2024537605000002.tif44167
[0032] TIFF2024537605000003.tif56167
[0033] To simplify the following discussion, we assume two example author types: customer and agent, i.e., each of the first and second conversations can be a conversation between a customer and an agent (not necessarily the same in both conversations, of course).
[0034] TIFF2024537605000004.tif26167
[0035] The term "semantic representation" refers to any type of numerical representation that encodes the likely meaning of a given utterance. For example, such a semantic representation may be a vector of numerical values, also known as a "semantic distribution representation."
[0036] The encoding of step 204 may be performed by any conventional algorithm for semantic encoding of text. One example of a suitable algorithm is the Universal Sentence Encoder (Daniel Cer et al., "Universal Sentence Encoder", arXiv:1803.11175v2 [cs.CL], 2018), currently available as part of the TensorFlow open source software library for machine learning and artificial intelligence (see online at www.tensorflow.org, last accessed September 27, 2021). However, other suitable algorithms for semantic encoding of text may be apparent to those skilled in the art.
[0037] In step 206, the minimum edit distance between sequences of semantic representations can be calculated. Edit distance, as briefly mentioned above, is a known family of metrics and algorithms used in sequence analysis, in particular to measure (quantify) the similarity between two sequences. A typical edit distance algorithm measures the minimum number of insertions, deletions, and substitutions required to transform one sequence into another. The sequences are usually drawn from the same finite set of different symbols, for example the alphabet of strings, the set of rational numbers, the set of real numbers, etc. Given lengths m and n of given sequences a and b, the distance d between two arbitrary sequence prefixes of lengths i and j, respectively, is ij is defined recursively as follows: TIFF2024537605000005.tif8135TIFF2024537605000006.tif23133For i∈[1,m],j∈[1,n], where w del ,w ins and w subare the weights (also called "costs") of deletion, insertion, and substitution, respectively, which vary depending on the exact application. The edit distance between two sequences can be calculated, for example, using dynamic programming (see, for example, Robert A Wagner and Michael J Fischer, "The String-to-String Correction Problem", Journal of the ACM, 21(1):168-178, 1974). The chain of steps required to transform one sequence into another constitutes a sequence alignment, where each element of the first sequence is paired with an element or gap in the second sequence.
[0038] TIFF2024537605000007.tif50168TIFF2024537605000008.tif9143
[0039] TIFF2024537605000009.tif38168
[0040] Thus, α should be given a value that takes into account the semantic similarity between utterances and results in reasonable alignment between the conversations. Optionally, α can have a value in the range of 1-5, more specifically, any integer or fractional value within that range (e.g., 1.5, 2, 4.1, etc.), or any narrower range subsumed within that broader range (e.g., 1.0-1.9, 2.1-3.0, 1.0-4.0, etc.). Optionally, a suitable value for α can be determined on a case-by-case basis by performing a greedy search over possible values in the range of 1-5, e.g., in increments of 0.1. With reference to the Experimental Results section below, a suitable value is believed to be the value that maximizes the correlation between convED and structED in a set of 100 conversations. α was assigned values of 2.2 and 2.7 for the SGD and MSDialog datasets, respectively. Thus, one skilled in the art would readily understand how to calculate a suitable α for a conversation dataset to which method 200 is applied.
[0041] For insertion and deletion operations, the same static cost can be assigned, set to a value that is in the range of the costs of possible substitutions. For example, if the range of the costs of possible substitutions is defined as the interval [0,2], the cost of an insertion or deletion operation may be set to 1. This will favor deletion or insertion over substitution in some cases, and substitution over deletion or insertion in other cases.
[0042] TIFF2024537605000010.tif32168TIFF2024537605000011.tif13153
[0043] TIFF2024537605000012.tif32168
[0044] Optional sub-step 206b may be performed if it is desirable to consider turns in the comparison between conversations. The term "turn" as referred to herein may be used to denote two or more utterances (within the same conversation) that together express a question and an answer to that question. In its simplest form, a turn may include an utterance that poses a question and a subsequent utterance (by a different author, of course) that answers the question. For example, a customer may say "Do you have IBM servers in stock?" to which an agent may respond "Yes, we do." Of course, if in a different conversation these same utterances were created by opposite authors (the agent posing the question and the customer answering it), this should be considered a different turn and not equivalent to the previous turn. Thus, the order of the authors is important. More complex types of turns may include, for example, a question split into multiple utterances by one author, or an answer similarly split into multiple utterances by another author, or both.
[0045] Therefore, in order to take into account the presence of turns in the compared conversations, sub-step 206b may introduce an additional operation, here called "swap", into the edit distance calculation. This swap operation may be similar to the substitution operation, except that not only individual utterances but also whole turns (the multiple utterances that make up this turn) are replaced. For this purpose, turns may first need to be detected (before the calculation of step 206), for example by a suitable NLP-based algorithm. Then, to enable the calculation of a minimum edit distance, the swap operation may be assigned a cost based on the distance between the semantic representations of the pair of turns (the turn from the first conversation and the turn from the second conversation). Optionally, this may be the cosine distance between the two, optionally scaled by a factor, as explained above for the substitution operation.
[0046] As with optional sub-steps 206a and 206b, one or more other sub-steps 206n may be included in the calculation of step 206 to take into account other characteristics of a typical conversation. Examples of such characteristics include backchannels exchanged during the conversation (greetings, thanks, etc.), metadata provided in or with the conversation text (e.g., tagging of utterances expressing "actions," timestamps of utterances, etc.), etc. Such sub-steps 206n may include, for example, one or more additional operations defined for the edit distance calculation, one or more costs (fixed or dynamic) assigned to these operations or any of the basic three operations, etc.
[0047] For example, to account for utterances that are merely backchannels without any real relevance to the conversation topic, an optional sub-step may include identifying these utterances (e.g., by some suitable NLP-based algorithm) and assigning appropriate costs of addition, insertion, or substitution, or a combination thereof, to effectively ignore their presence in any of the compared conversations. Alternatively, a simpler (but likely less accurate) technique for accounting for backchannels (or other text unrelated to the conversation topic) could simply assume that the first few utterances or the last few utterances, or both, of a conversation are likely to be "backchannels," and assign appropriate costs to operations that include them. This can reduce the impact that backchannels that are differently phrased in the two compared conversations may have had on the semantic similarity measured by method 200. A more advanced version of this approach would be to gradually vary the costs over the first few utterances or the last few utterances, or both, of a conversation, under the assumption that utterances related to the conversation topic are more likely to be present toward the middle of the conversation.
[0048] As another example, "act" tagging of certain utterances (see the Experimental Results section below for details) can be utilized to reduce the cost of replacement of utterances tagged with the same act type, thereby partially or completely overriding the replacement costs assigned to these utterances based solely on the semantic representation. The "act" tags for the conversations compared by method 200 may be provided with the conversations as metadata (in step 202) or may be automatically inferred from the conversations by a suitable machine learning algorithm, such as an NLP-based dialogue act classifier.
[0049] One or both of steps 208 and 210 may then be performed (outputting result block 112 of FIG. 1) as desired by the user of method 200.
[0050] In step 208, an alignment of the two sequences of utterances can be output to help a user of method 200 visually understand the similarities (and therefore differences) between the two conversations. The alignment itself may be a by-product of the edit distance calculation in step 206, where deletions and insertions may result in unaligned utterances, while substitutions may result in aligned utterances.
[0051] Please refer now to Table 1, which illustrates two exemplary conversations between a customer and an agent, whose speech sequences have been aligned with each other based on the invocations of steps 202-208. [Table 1]
[0052] The alignment of step 208 may include computing how to present the two conversations in a manner that visually indicates the correspondence between the meanings of the speech sequences of the two conversations. As Table 1 illustrates, a tabular format is one way to present such a correspondence, although of course other visual presentations of the alignment are contemplated herein.
[0053] As can be seen in Table 1, empty cells indicate insertion and deletion operations, and full rows (with values in both Conversation 1 and Conversation 2) indicate utterances that are replaced with some (non-infinite) cost. For example, row number 5 indicates the insertion of a customer utterance from Conversation 2 into Conversation 1 (which can also be viewed as the converse deletion of that utterance from Conversation 1), and row number 1 indicates an utterance that has some measurable semantic similarity. Also noteworthy is that the agent utterance in line number 4 of Conversation 2 is not aligned with the customer utterance in line number 7 of Conversation 1, despite their apparent semantic similarity (both refer to Chevrolet), due to the invocation of substep 206a, which assigned an infinitely high cost to their replacement.
[0054] In step 210, a quantified semantic similarity between the two conversation texts can be output based on the minimum edit distance calculated in step 206 (with or without optional sub-step 206a). The quantified semantic similarity can be any desired scale, such as the interval [0,1] or [0,100], which can indicate anywhere between no semantic similarity between the two conversations and identical semantic similarity. Simply by way of example, the quantified similarity of the two conversations shown in Table 1 can be, for example, 0.5, taking into account the meaning, flow, and authorship of the utterances. <Experimental Results>
[0055] Our method for measuring semantic similarity between disclosed conversations (here abbreviated as "convED" for simplicity) was evaluated using two different techniques: an intrinsic evaluation that evaluates the method's ability to capture conversational flow, and an external human evaluation via crowdsourced annotation. We also compared our method against two competitive baselines commonly used to estimate text similarity.
[0056] We used two conversational datasets for the evaluation: SGD (Abhinav Rastogi et al., “Towards Scalable Multi-Domain Conversational Agents: The Schema-Guided Dialogue Dataset”, Proceedings of the AAAI Conference on Artificial Intelligence, 34(05), 8689-8696, April 2020) and MSDialog (Chen Qu et al., “Analyzing and Characterizing User Intent in Information-seeking Conversations”, SIGIR '18:The 41st International Conference on Machine Learning and Machine Learning (ICMA) 2018, pp. 171-175, 2020). stInternational ACM SIGIR Conference on Research & Development in Information Retrieval, pages 989-992, June 2018.
[0057] SGD is a large corpus of task-oriented dialogues that follow predefined dialogue skeletons. MSDialog is a real-world dialogue dataset of question-answering interactions collected from Microsoft product forums, where a subset of the dialogues (>2K) have been labeled with metadata.
[0058] The two baselines chosen for evaluation are: (1) the aforementioned Universal Sentence Encoder, which is a popular choice for generating sentence-level embeddings, where document embeddings are computed by averaging the representations of individual sentences, and (2) doc2vec (Quoc Le et al., “Distributed Representations of Sentences and Documents,” Proceedings of the 31 stInternational Conference on Machine Learning, PMLR 32(2):1188-1196, June 2014) is an embedding algorithm that generates a distributional representation of documents, regardless of their length. The latter has been shown to outperform other document embedding techniques (see, for example, Jey Han Lau et al., "An Empirical Evaluation of doc2vec with Practical Insights into Document Embedding Generation", Proceedings of the 1st Workshop on Representation Learning for NLP, Pages 78-86, August 2016; and Jingyuan Zhang et al., "Evaluating the Utility of Document Embedding Vector Difference for Relation Learning", arXiv:1907.08184 [cs.CL], July 2019).
[0059] After encoding / embedding the dialogues using these two baseline algorithms, we calculated the distance between the two dialogues (abbreviated as “avgSemDist” for Universal Sentence Encoder and “d2vDist” for doc2vec) by the cosine similarity between the encoded / embedded representations.
[0060] The SGD and MSDialog subsets are annotated with rich metadata, including act and slot names (SGD), and intent types equivalent to acts (MSDialog). For example, the agent utterance “When would you like to check in?” in the SGD corpus is labeled with an act of type REQUEST and a slot value of type check_in_date. As a result, this metadata can be used to extract a dialogue structure that represents the flow of actions and the corresponding slot values. Although faithfully representing the dialogue flow, this structural pattern does not reflect the exact meaning of the utterances underlying the actions. This setting provides a natural testbed for the evaluation of the semantic similarity measures disclosed here compared to other methods. Specifically, given a dialogue, the flow of its actions can be defined as the temporal sequence of the actions or intents of that dialogue, concatenated if there are alphabetically sorted slots. As a concrete example, the utterance in the second row of conversation 1 in Table 1 is represented as REQUEST_location. In dialogue c i The sequence of dialogue actions and slots is i Note that within a domain, the set of possible dialogue acts and slots spans a fixed set. Therefore, we can apply traditional edit distance measures to evaluate the distance between dialogue act flows of two dialogues: c i and c j The interaction structure edit distance (abbreviated here as "structED") between two sequences da i and da j It is calculated as the edit distance between
[0061] Prior to the evaluation, it was hypothesized that the pairwise conversation distances represented by convED (our method) would exhibit higher proximity to structED than the distances calculated by any of the baseline algorithms (avgSemDist, d2vDist). This hypothesis was validated by assuming that all distinct conversation pairs (c i ,c jThe similarity of the,similarities between ...
[0062] The evaluation was performed on a subset of SGD conversations from the Event domain, due to their diverse nature, and on the entire set of MSDialog conversations. We randomly sampled 100 subsets of the 200 conversations and averaged the correlations over the individual samples. Table 2 summarizes the results. [Table 2]
[0063] Clearly, convED outperforms other baselines, showing a high average correlation with structED of 0.540 for the SGD(Events) dataset and 0.301 for the MSDialog dataset (t-test, p<.001).
[0064] The convED measure was further evaluated by comparing it to human perception of dialogue similarity. It was hypothesized that convED would be more likely to show high agreement with human judgment compared to the more competitive baseline avgSemDist (on SGD data).
[0065] Assessing the exact similarity between two dialogues is a very challenging task due to the subjective nature of the relative perception of dialogue similarity. Instead of directly estimating similarity values by scale-based annotation, the annotation task was set up as a two-way comparison scenario. Five high-quality annotators were presented with one anchor and two conversation candidate triplets. They made judgments on a sample of 500 triplets. However, the crowdsourced evaluation was limited to a subset of annotation examples with at least 80% (four out of five) inter-annotator agreement, thus resulting in 229 samples out of the 500. Treating these high-confidence judgments as ground truth, we calculated the proportion of triplets that matched human intuition for each of the two methods, convED and avgSemDist. The evaluation results showed 73.3% and 26.7% agreement with human judgments, respectively. This supported the hypothesis that convED better captures human perception of dialogue similarity.
[0066] All techniques, parameters, data types, and other features described above with respect to experimental results are optional embodiments of the present invention.
[0067] The present invention may be a system, a method, or a computer program product, or a combination thereof. The computer program product may include a computer readable storage medium having stored thereon computer readable program instructions for causing a processor to carry out aspects of the present invention.
[0068] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. The computer-readable storage medium may be, by way of example and not by way of limitation, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples of computer-readable storage media include portable computer diskettes, hard disks, RAM, ROM, EPROM (or flash memory), SRAM, CD-ROM, DVD, memory stick, floppy disk, mechanically encoded devices that record instructions, and any suitable combination thereof. As used herein, a computer-readable storage medium should not be construed as a transitory signal per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a wave guide or other transmission medium (e.g., light pulses passing through a fiber optic cable), or electrical signals transmitted through wires. Rather, the computer-readable storage medium is a non-transitory (i.e., non-volatile) medium.
[0069] The computer readable program instructions described herein can be downloaded from the computer readable storage medium to each computing / processing device or to an external computer or storage device via a network (e.g., the Internet, a local area network, a wide area network, or a wireless network, or a combination thereof). The network may be comprised of copper transmission cables, optical transmission fiber, wireless transmission, routers, firewalls, switches, gateway computers, or edge servers, or a combination thereof. A network adapter card or network interface of each computing / processing device receives the computer readable program instructions from the network and transfers the computer readable program instructions for storage in the computer readable storage medium within the respective computing / processing device.
[0070] The computer readable program instructions for carrying out the operations of the present invention may be either source or object code written in any combination of one or more programming languages, including assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state setting data, or object-oriented programming languages such as Java, Smalltalk, C++, and procedural programming languages such as the "C" programming language and similar programming languages. The computer readable program instructions may be executed entirely on the user's computer, as a stand-alone software package, or partially on the user's computer. Alternatively, they may be executed partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA) can execute computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the computer readable program instructions to perform aspects of the invention. In some embodiments, electronic circuitry including, for example, an application specific integrated circuit (ASIC) may already incorporate computer readable program instructions at the time of manufacture, such that the ASIC is configured to execute these instructions without programming.
[0071] Aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer readable program instructions.
[0072] These computer readable program instructions can be provided to a general purpose computer, a processor of a special purpose computer or other programmable data processing apparatus to generate a machine, such that the instructions, executed via a processor of the computer or other programmable data processing apparatus, generate means for implementing the functions / acts specified in one or more blocks of the flowcharts and / or block diagrams. These computer readable program instructions can also be stored in a computer readable storage medium connectable to a computer, a programmable data processing apparatus, or other device or combination that functions in a particular way, such that the computer readable storage medium having the instructions stored thereon configures one of the products including instructions that implement aspects of the functions / acts specified in one or more blocks of the flowcharts and / or block diagrams.
[0073] Computer readable program instructions, such as instructions to perform the functions / acts specified in one or more blocks of the flowcharts and / or block diagrams on a computer, other programmable apparatus, or other device, may also be loaded into a computer, other programmable data processing apparatus, or other device to perform a series of operational steps on the computer, other programmable apparatus, or other device to generate a computer-implemented process.
[0074] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of executable implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowcharts or block diagrams may represent a module, segment, or portion of instructions, which constitute one or more executable instructions for implementing the specified logical functions. It should also be noted that each block in the block diagrams and / or flowchart diagrams, and combinations of blocks in the block diagrams and / or flowchart diagrams, can be implemented by a special purpose hardware-based system that performs the specified functions or operations or executes a combination of special purpose hardware and computer instructions.
[0075] In this specification and claims, the terms "substantially," "essentially," and their forms, when referring to a numerical value, refer to a deviation of up to 20% (i.e., ±20%) from that numerical value. Similarly, when such terms refer to a range of numerical values, they refer to a broader range of up to 20% (10% more than the express range and 10% below that range).
[0076] Any numerical range herein should be considered as specifically disclosing all possible subranges as well as individual numerical values within that range, and each such subrange and individual numerical value constitutes an embodiment of the present invention. This applies regardless of the breadth of the range. For example, a description of an integer range from 1 to 6 should be considered as having specifically disclosed subranges such as 1 to 3, 1 to 4, 1 to 5, 2 to 4, 2 to 6, 3 to 6, etc., and individual numerical values within that range, such as 1, 4, 6. Similarly, a description of a fractional range, such as 0.6 to 1.1, should be considered as specifically disclosing subranges such as 0.6 to 0.9, 0.7 to 1.1, 0.9 to 1, 0.8 to 0.9, 0.6 to 1.1, 1 to 1.1, etc., and individual numbers within that range, such as 0.7, 1, 1.1.
[0077] The description of various embodiments of the present invention is presented for illustrative purposes, but is not intended to be exhaustive, and is not intended to be limited to the express description. It will be apparent to those skilled in the art that many modifications and variations are possible without departing from the scope and spirit of the described embodiments. The terms used in this specification are selected to best explain the principles of the embodiments, practical applications or technical improvements to the technology found in the market, or to allow those skilled in the art to understand the embodiments described in this specification.
[0078] In the specification and claims of this application, the words "comprise", "include", and "have" and their forms do not necessarily limit the members of a list with which the word may be associated.
[0079] In the event of a conflict between the present specification and a document incorporated by reference or otherwise relied upon, the present specification is intended to control.
Claims
1. receiving two conversational texts, each including a sequence of utterances; encoding each of said sequences of utterances into a corresponding sequence of semantic representations; Computing a minimum edit distance between sequences of said semantic representations; performing at least one of: quantifying a semantic similarity between the two conversational texts based on the calculation of the minimum edit distance; and outputting an alignment of the two speech sequences with respect to one another; 23. A computer-implemented method comprising:
2. 2. The computer-implemented method of claim 1, wherein the calculation of the minimum edit distance includes assigning costs to the following edit operations: deletion, insertion, and substitution.
3. The computer-implemented method of claim 2 , wherein the cost of the substitution is based on a cosine distance between the semantic representations.
4. 4. The computer-implemented method of claim 3, further comprising assigning infinitely high substitution costs between the semantic representations whose underlying utterances are authored by different author types.
5. The computer-implemented method of claim 1 , wherein the semantic representation is a semantic distribution representation.
6. The computer-implemented method of claim 1 , wherein the method is performed by at least one hardware processor.
7. (a) at least one hardware processor; (b) a non-transitory computer-readable storage medium having program code embodied therein, the program code being executable by the at least one hardware processor, the at least one hardware processor comprising: receiving two conversational texts, each including a sequence of utterances; encoding each of said sequences of utterances into a corresponding sequence of semantic representations; Computing a minimum edit distance between sequences of said semantic representations; performing at least one of: quantifying a semantic similarity between the two conversational texts based on the calculation of the minimum edit distance; and outputting an alignment of the two speech sequences with respect to one another; A non-transitory computer-readable storage medium that automatically executes the A system including:
8. The system of claim 7 , wherein the calculation of the minimum edit distance includes assigning costs to the following edit operations: deletion, insertion, and substitution.
9. The system of claim 8 , wherein the cost of the substitution is based on a cosine distance between the semantic representations.
10. 10. The system of claim 9, wherein the program code is further executable to assign infinitely high substitution costs between the semantic representations whose underlying utterances are authored by different author types.
11. The system of claim 7 , wherein the semantic representation is a semantic distribution representation.
12. 1. A computer program product comprising a non-transitory computer-readable storage medium having program code embodied therein, the program code being executable by at least one hardware processor, the at least one hardware processor causing: receiving two conversational texts, each including a sequence of utterances; encoding each of said sequences of utterances into a corresponding sequence of semantic representations; Computing a minimum edit distance between sequences of said semantic representations; performing at least one of: quantifying a semantic similarity between the two conversational texts based on the calculation of the minimum edit distance; and outputting an alignment of the two speech sequences with respect to one another; A computer program product that automatically executes the
13. 13. The computer program product of claim 12, wherein the calculation of the minimum edit distance comprises assigning costs to the following edit operations: deletion, insertion, and substitution.
14. The computer program product of claim 13 , wherein the cost of the substitution is based on a cosine distance between the semantic representations.
15. 15. The computer program product of claim 14, wherein the program code is further executable to assign infinitely high substitution costs between the semantic representations whose underlying utterances are authored by different author types.
16. The computer program product of claim 12 , wherein the semantic representation is a semantic distribution representation.
Citation Information
Patent Citations
Conference information recording reproducing device
JP1999053385A
Dialogue management method and apparatus for implementing the same
JP2014508968A
Device, program, and method for generating interaction scenario corresponding to context
JP2018181250A
Talk support system and talk support method
JP2019197293A
Response support system and response support method
JP2020077083A
