Method and terminal device for generating reply content of dialogue robot
A dialogue robot and content technology, applied in instrumentation, computing, semantic analysis, etc., can solve problems such as low diversity and sentence semantic loss, and achieve the effects of reducing overestimation, improving decoding strategy and loss function, and good generalization ability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0021] The embodiment of the present invention proposes a method for generating reply content of a dialogue robot for a dialogue system. First, collect the training dialogue samples as the neural network generation model, and prepare the data: obtain the dialogue text from the relevant dialogue platform, and perform data preprocessing, mainly including word segmentation, word frequency statistics, vocabulary construction, low-frequency word filtering, etc.; select a A neural network generation model based on the encoder-decoder structure is used as the basic network architecture; then, a word prediction network is introduced into the decoder of the selected neural network generation model, and the decoder is required to predict the current word in the target utterance in each step of decoding. Subsequences that have not yet been generated, and an additional loss function is added to the training process to optimize the word prediction network; in addition, the maximum entropy r...
Embodiment 2
[0069] In this embodiment, the existing English dialogue data set DailyDialog is used to divide the training set and the test set. There is no intersection between the training set and the test set. The model is trained on the training set, and the quality and quality of dialog generation are evaluated on the test set. diversity. DailyDialog is a multi-round dialogue dataset for daily chat scenes constructed by the publisher of the dataset by crawling spoken English dialogue websites. It contains dialogues in daily life, covers a lot of emotional information, and has many more natural dialogue patterns. Three dialogue generation models in the prior art were selected for comparison, as follows:
[0070] (1) Seq2Seq with attention mechanism (AttnSeq2Seq): The Seq2Seq model with attention mechanism has shown effectiveness in various natural language processing tasks.
[0071] (2) Hierarchical Encoder-Decoder (HRED): Since the multi-round dialogue history consists of a series of ...
Embodiment 3
[0078] Such as figure 2 As shown, it is a schematic diagram of a terminal device for generating a reply from a dialogue robot provided by an embodiment of the present invention. The terminal device for generating the reply of the dialogue robot in this embodiment includes: a processor, a memory, and a computer program stored in the memory and operable on the processor, such as a data processing program. When the processor executes the computer program, it implements the steps in the above embodiments of the method for generating reply content of each dialogue robot, for example figure 1 Steps S1-S6 are shown.
[0079] Exemplarily, the computer program may be divided into one or more units, and the one or more units are stored in the memory and executed by the processor to implement the present invention. The one or more units may be a series of computer program instruction segments capable of accomplishing specific functions, and the instruction segments are used to describ...
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