-
公开(公告)号:US11531821B2
公开(公告)日:2022-12-20
申请号:US16993257
申请日:2020-08-13
Applicant: salesforce.com, inc.
Inventor: Tian Xie , Xinyi Yang , Caiming Xiong , Wenhao Liu , Huan Wang , Wenpeng Yin , Jin Qu
Abstract: A system performs conversations with users using chatbots customized for performing a set of tasks. The system may be a multi-tenant system that allows customization of the chatbots for each tenant. The system processes sentences that may include negation or coreferences. The system determines a confidence score for an input sentence using an intent detection model, for example, a neural network. The system modifies the sentence to generate a modified sentence, for example, by removing a negation or by replacing a pronoun with an entity. The system generates a confidence score for the modified sentence using the intent detection model. The system determines the intent of the sentence based on the confidence scores of the sentence and the modified sentence. The system performs tasks based on the determined intent and performs conversations with users based on the tasks.
-
2.
公开(公告)号:US20210374488A1
公开(公告)日:2021-12-02
申请号:US17090553
申请日:2020-11-05
Applicant: salesforce.com, inc.
Inventor: Nazneen Rajani , Tong Niu , Wenpeng Yin
Abstract: Embodiments described herein adopts a k nearest neighbor (kNN) mechanism over a model's hidden representations to identify training examples closest to a given test example. Specifically, a training set of sequences and a test sequence are received, each of which is mapped to a respective hidden representation vector using a base model. A set of indices for each sequence index that minimizes a distance between the respective hidden state vector and a test hidden state vector is then determined A weighted k-nearest neighbor probability score can then be computed from the set of indices to generate a probability distribution over labels for the test sequence.
-
公开(公告)号:US20210174204A1
公开(公告)日:2021-06-10
申请号:US17093478
申请日:2020-11-09
Applicant: salesforce.com, inc.
Inventor: Wenpeng Yin , Nazneen Rajani , Richard Socher , Caiming Xiong
IPC: G06N3/08 , G06F16/332 , G06F16/33 , G06F40/279 , G06F40/30
Abstract: A method for using a neural network model for natural language processing (NLP) includes receiving training data associated with a source domain and a target domain; and generating one or more query batches. Each query batch includes one or more source tasks associated with the source domain and one or more target tasks associated with the target domain. For each query batch, class representations are generated for each class in the source domain and the target domain. A query batch loss for the query batch is generated based on the corresponding class representations. An optimization is performed on the neural network model by adjusting its network parameters based on the query batch loss. The optimized neural network model is used to perform one or more new NLP tasks.
-
-