Method and system for processing sentence, and electronic device

US12039281B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12039281-B2
Application numberUS-201917263836-A
CountryUS
Kind codeB2
Filing dateJul 18, 2019
Priority dateJul 27, 2018
Publication dateJul 16, 2024
Grant dateJul 16, 2024

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

The present disclosure provides a method for processing sentence, including: determining a vector representation of a sentence to be processed; inputting the vector representation of the sentence to be processed to a first recurrent neural network, and updating a state of a hidden layer of the first recurrent neural network as a vector representation of a historical dialogue, wherein, if a processed sentence exists, the state of the hidden layer of the first recurrent neural network is related to the processed sentence; determining a knowledge vector related to the sentence to be processed; and generating a reply sentence based on the vector representation of the historical dialogue and the knowledge vector. The present disclosure further provides a system for processing sentence, an electronic device, and a computer-readable medium.

First claim

Opening claim text (preview).

What is claimed is: 1. A method for processing sentence, comprising: determining a vector representation of a sentence to be processed; inputting the vector representation of the sentence to be processed to a first recurrent neural network, and updating a state of a hidden layer of the first recurrent neural network as a vector representation of a historical dialogue, wherein, if a vector representation of another sentence is input to the first recurrent neural network to obtain a processed sentence before inputting the vector representation of the sentence to be processed to the first recurrent neural network-exists, the state of the hidden layer of the first recurrent neural network is related to the processed sentence; determining a knowledge vector related to the sentence to be processed; and generating a reply sentence based on the vector representation of the historical dialogue and the knowledge vector. 2. The method according to claim 1 , wherein the determining a vector representation of the sentence to be processed comprises: converting words in the sentence to be processed into word vectors; and inputting the word vectors to a second recurrent neural network in order, and obtaining a state of a hidden layer of the second recurrent neural network as a vector representation of the sentence to be processed, wherein the state of the hidden layer of the second recurrent neural network is unrelated to the processed sentence. 3. The method according to claim 1 , wherein the determining a knowledge vector related to the sentence to be processed comprises: determining a plurality of candidate entries related to the sentence to be processed; determining candidate entry vectors of the candidate entries; determining a correlation coefficient between each candidate entry vector and the vector representation of the sentence to be processed, or determining a correlation coefficient between each candidate entry vector and the vector representation of the historical dialogue; and determining the knowledge vector based on the correlation coefficients and the candidate entry vectors. 4. The method according to claim 3 , wherein the determining a plurality of candidate entries related to the sentence to be processed comprises at least one of the following: determining candidate entries that match the sentence to be processed; determining candidate entries that are similar to entity content in the sentence to be processed; or if a processed sentence exists, determining candidate entries related to the processed sentence. 5. The method according to claim 3 , further comprising: ignoring a part of the candidate entries in a case that a number of the candidate entries exceeds a preset number. 6. The method according to claim 1 , wherein the generating a reply sentence based on the vector representation of the historical dialogue and the knowledge vector comprises: inputting the vector representation of the historical dialogue, the knowledge vector, and a word vector of a previously predicted word to a third recurrent neural network, determining a currently predicted word based on a state of a hidden layer of the third recurrent neural network, and performing above operations repeatedly until a complete reply sentence is generated, wherein: the state of the hidden layer of the third recurrent neural network is unrelated to the processed sentence; and if no previously predicted word exists, a default start symbol is used as the previously predicted word. 7. An electronic device comprising: one or more processors; and a memory configured to store one or more computer programs, which when executed by one or more processors, cause the one or more processors to implement the method according to claim 1 . 8. A non-transitory computer-readable medium having executable instructions stored thereon, which when executed by a processor, cause the processor to implement the method according to claim 1 . 9. An electronic device comprising: one or more processors; and a memory configured to store one or more computer programs, which when executed by one or more processors, cause the one or more processors to implement the method according to claim 2 . 10. A non-transitory computer-readable medium having executable instructions stored thereon, which when executed by a processor, cause the processor to implement the method according to claim 2 . 11. An electronic device comprising: one or more processors; and a memory configured to store one or more computer programs, which when executed by one or more processors, cause the one or more processors to implement the method according to claim 3 . 12. A non-transitory computer-readable medium having executable instructions stored thereon, which when executed by a processor, cause the processor to implement the method according to claim 3 . 13. An electronic device comprising: one or more processors; and a memory configured to store one or more computer programs, which when executed by one or more processors, cause the one or more processors to implement the method according to claim 4 . 14. A non-transitory computer-readable medium having executable instructions stored thereon, which when executed by a processor, cause the processor to implement the method according to claim 4 . 15. A system for processing sentence, comprising: a sentence to be processed vector determination module configured to determine a vector representation of a sentence to be processed; a historical dialogue vector determination module configured to input the vector representation of the sentence to be processed to a first recurrent neural network, and update a state of a hidden layer of the first recurrent neural network as a vector representation of a historical dialogue, wherein, if a vector representation of another sentence is input to the first recurrent neural network to obtain a processed sentence before inputting the vector representation of the sentence to be processed to the first recurrent neural network, the state of the hidden layer of the first recurrent neural network is related to the processed sentence; a knowledge vector determination module configured to determine a knowledge vector related to the sentence to be processed; and a reply sentence generation module configured to generate a reply sentence based on the vector representation of the historical dialogue and the knowledge vector. 16. The system according to claim 15 , wherein the sentence to be processed vector determination module comprises: a word vector conversion sub-module configured to convert words in the sentence to be processed into word vectors; and a sentence to be processed vector determination sub-module configured to input the word vectors into a second recurrent neural network in order, and obtain a state of a hidden layer of the second recurrent neural network as a vector representation of the sentence to be processed, wherein the state of the hidden layer of the second recurrent neural network is unrelated to the processed sentence. 17. The system according to claim 15 , wherein the knowledge vector determination module comprises: a candidate entry determination sub-module configured to determine a plurality of candidate entries related to the sentence to be processed; a candidate entry vector determination sub-module configured to determine candidate entry vectors of the candidate entries; a correlation coefficient determination sub-module configured to determine a correlation coefficient between each candidate entry vector and the vector repr

Assignees

Inventors

Classifications

  • characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU] · CPC title

  • Auto-encoder networks; Encoder-decoder networks · CPC title

  • G06N3/045Primary

    Combinations of networks · CPC title

  • Inference or reasoning models · CPC title

  • Natural language generation · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US12039281B2 cover?
The present disclosure provides a method for processing sentence, including: determining a vector representation of a sentence to be processed; inputting the vector representation of the sentence to be processed to a first recurrent neural network, and updating a state of a hidden layer of the first recurrent neural network as a vector representation of a historical dialogue, wherein, if a proc…
Who is the assignee on this patent?
Beijing Jingdong Shangke Information Technology Co Ltd, Beijing Jingdong Century Trading Co Ltd
What technology area does this patent fall under?
Primary CPC classification G06N3/045. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Jul 16 2024 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).