Dialog generation method, apparatus, and device, and storage medium

    公开(公告)号:US10740564B2

    公开(公告)日:2020-08-11

    申请号:US15997912

    申请日:2018-06-05

    Abstract: A dialog generation method, apparatus, and device, and a storage medium are provided. The method includes converting each term in a Kth round of a query sentence into a first word vector, and calculating a positive latent vector and a negative latent vector of each term according to the first word vector, where K denotes a positive integer greater than or equal to 2. A content topic of the Kth round of the query sentence is obtained, and converted into a second word vector. An initial latent vector output for the Kth round of the query sentence is determined according to the second word vector, the positive latent vector of a last term in the Kth round of the query sentence, a latent vector of a last term in a (K-1)th round of a reply sentence output for a (K-1)th round of the query sentence, and an initial latent vector of the (K-1)th round of the reply sentence output for the (K-1)th round of the query sentence. A reply sentence for the Kth round of the query sentence is generated according to the positive latent vector and the negative latent vector of each term in the Kth round of the query sentence and the initial latent vector output for the Kth round of the query sentence.

    Session information processing method and device and storage medium

    公开(公告)号:US10971141B2

    公开(公告)日:2021-04-06

    申请号:US16670822

    申请日:2019-10-31

    Inventor: Yue Shu Fen Lin

    Abstract: This application discloses a session information processing method and device, and a storage medium. The method includes: extracting a to-be-analyzed sentence and preceding sentences of the to-be-analyzed sentence from a session; performing word segmentation on the to-be-analyzed sentence and the preceding sentences, to obtain a first feature set including a plurality of first features; extracting a second feature set including one or more second features from a first word set corresponding to the to-be-analyzed sentence and a second word set corresponding to the preceding sentences, one second feature including a phrase or sentence including a first word and a second word, the first word being one or more words in the first word set, and the second word being one or more words in the second word set; and determining, according to the first feature set and the second feature set, a sentence category to which the to-be-analyzed sentence belongs.

Patent Agency Ranking