Conversation generation method and device and computer equipment
A technology for generating devices and computer programs, applied in the field of data processing, which can solve problems such as the difficulty of obtaining user session information reasonably, and achieve high-quality results
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0036] A dialog generation method provided in Embodiment 1 of the present application is described below, please refer to the attached figure 1 , the dialog generation method in Embodiment 1 of the present application includes:
[0037] Step S101, acquiring a dialogue generation model and an input sentence, the dialogue generation model is a neural network model that generates a corresponding reply sentence according to the input sentence;
[0038] When user session simulation is required, the dialog generation model and input sentences can be obtained first. The dialog generation model is a neural network model that generates corresponding reply sentences according to the input sentences, and the dialog generation model can be pre-trained using existing user session information. The input statement may be randomly selected from a database storing user session information.
[0039] The structure of the dialogue generation model can be designed according to the actual situati...
Embodiment 2
[0121] Embodiment 2 of the present application provides a dialog generation device. For the convenience of description, only the parts related to the present application are shown, such as figure 2 As shown, the dialog generating means include,
[0122] The initial acquisition module 201 is used to acquire a dialog generation model and an input sentence, and the dialog generation model is a neural network model that generates a corresponding reply sentence according to the input input sentence;
[0123] A sentence generation module 202, configured to input the input sentence into the dialog generation model, obtain a reply sentence and record it in a preset storage space;
[0124] The condition judging module 203 is used to judge whether the reply sentence recorded in the preset storage space meets the preset termination condition, if so, trigger the sentence output module, if not, then trigger the update return module;
[0125] An update return module 204, configured to cal...
Embodiment 3
[0141] image 3 It is a schematic diagram of the computer equipment provided in Embodiment 3 of the present application. Such as image 3 As shown, the computer device 3 of this embodiment includes: a processor 30 , a memory 31 and a computer program 32 stored in the memory 31 and operable on the processor 30 . When the processor 30 executes the computer program 32, it realizes the steps in the above-mentioned dialog generation method embodiment, for example figure 1 Steps S101 to S105 are shown. Alternatively, when the processor 30 executes the computer program 32, it realizes the functions of the modules / units in the above-mentioned device embodiments, for example figure 2 The functions of modules 201 to 205 are shown.
[0142] Exemplarily, the computer program 32 can be divided into one or more modules / units, and the one or more modules / units are stored in the memory 31 and executed by the processor 30 to complete this application. The one or more modules / units may b...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


