Method, apparatus, device, and storage medium for training model and generating dialog
US11875126B2 · kind B2 · utility
Assignees
Inventors
Key dates
| Filing date | Jul 6, 2021 |
| Grant date | Jan 16, 2024 |
| Priority date | — |
| Expiry date | Sep 14, 2042 |
Classification
- Technology area (CPC G)Physics
- CPC primaryG06N5/041
- WIPO fieldComputer technology
- WIPO sectorElectrical engineering
Abstract
A method for training a dialog generation model includes: acquiring a dialog data set, and encoding a post in the dialog data set by using an encoder in the dialog generation model to obtain an encoded representation of the post; fusing, by using a decoder in the dialog generation model, the encoded representation of the post and knowledge information corresponding to the post that is obtained from a knowledge base question answering model through transfer learning to obtain a predicted response corresponding to the post; determining a value of a loss function of the dialog generation model based on the predicted response and the annotated response that correspond to the post; and updating a model parameter of the dialog generation model based on the value of the loss function. A method, an apparatus, a device, and a computer storage medium for generating a dialog are also provided.
Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.