Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Pending Publication Date: 2020-07-03
PING AN TECH (SHENZHEN) CO LTD
View PDF0 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, the embodiment of the present application provides a dialog generation method, device and computer equipment to solve the problem that it is difficult to reasonably obtain user session information in the prior art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Conversation generation method and device and computer equipment
  • Conversation generation method and device and computer equipment
  • Conversation generation method and device and computer equipment

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention is applicable to the technical field of data processing, and provides a dialogue generation method and device and computer equipment. The method comprises the following steps: S1, acquiring a dialogue generation model and an input statement; s2, inputting the input statement into a dialogue generation model to obtain a reply statement, and recording the reply statement in a preset storage space; s3, judging whether the reply statement recorded in the preset storage space meets a preset stopping condition or not, if yes, executing the step S5, and if not, executing the step S4; s4, calculating a reward value according to the reply statement, calculating a loss value of the dialogue generation model according to the reward value and a loss function of reinforcement learning, updating the dialogue generation model according to the loss value, taking the reply statement as a new input statement, and returning to the step S2; and S5, arranging the reply statements recorded inthe preset storage space according to the sequence of recording time to obtain a session document. The problem that the user session information is difficult to obtain reasonably in the prior art canbe solved.

Description

technical field [0001] The present application belongs to the technical field of data processing, and in particular relates to a dialog generation method, device and computer equipment. Background technique [0002] With the development of the big data industry, more and more companies need to collect user session information and apply the user session information to various downstream services, such as customer service robots and other services. [0003] However, due to strict policy control, companies are not allowed to trade user session information at will. As a result, some companies have few channels for collecting user session information and cannot obtain a large amount of user session information to support various downstream businesses. For example, if only A small amount of user session information is used as a training sample, which will lead to low accuracy of customer service robots. [0004] Therefore, how to reasonably obtain more user session information ha...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F16/332G06F16/33
CPCG06F16/3329G06F16/3344
Inventor 于凤英王健宗
Owner PING AN TECH (SHENZHEN) CO LTD