Method and device for judging continuity of conversion contents and equipment
A coherent, content technology, applied in the computer field, that can solve problems such as incoherent responses
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0049] In a specific implementation, the dialog content includes the above and the current sentence. In order to determine whether the current sentence q is semantically coherent with the above c, a method for judging the coherence of the dialog content is provided, such as figure 1 shown, including:
[0050] Step S100: Input the above sentence into the sentence generation model to generate the following sentence.
[0051] In order to better express the sentence generation model, first define some variables, see figure 2 and image 3 , the above sentence is represented by s, the current sentence is represented by q, the above is represented by c, the above c includes multiple above sentences s, and is represented by a set, c={s 1 ,s 2 ,...,s n}. see figure 2 , the sentence generation model can adopt models in the field of dialogue systems and machine translation. One implementation of the sentence generation model can be: given the above sentence s, generate the follo...
Embodiment 2
[0081] In another specific embodiment, such as Figure 4 As shown, a device for judging the coherence of dialogue content is provided, including:
[0082] The following sentence generation module 10 is used to input the above sentence into the sentence generation model to generate the following sentence;
[0083] The first similarity matrix construction module 20 is used to calculate the similarity between each of the above sentences and the current sentence to construct the first similarity matrix;
[0084] The second similarity matrix construction module 30 is used to calculate the similarity between each of the following sentences and the current sentence to construct a second similarity matrix;
[0085] The coherence feature parameter calculation module 40 is used to input the first similarity matrix and the second similarity matrix into the coherence discrimination model respectively to generate the coherence feature parameter of the current sentence, and the coherence ...
Embodiment 3
[0094] An embodiment of the present invention provides a device for judging the continuity of dialogue content, such as Image 6 shown, including:
[0095] A memory 400 and a processor 500 , the memory 400 stores computer programs that can run on the processor 500 . When the processor 500 executes the computer program, the method for judging the continuity of the dialogue content in the foregoing embodiments is implemented. The number of memory 400 and processor 500 may be one or more.
[0096] The communication interface 600 is used for the memory 400 and the processor 500 to communicate with the outside.
[0097] The memory 400 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory.
[0098] If the memory 400, the processor 500, and the communication interface 600 are implemented independently, the memory 400, the processor 500, and the communication interface 600 may be connected to...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com