Patent ID: 11966703
Assignee: INTUIT INC.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 19:
20. A method for transforming sentiment in text, comprising:
receiving a request for a replacement sentence based on an input sentence with a given sentiment, wherein the replacement sentence has a different sentiment than the given sentiment;
receiving, based on the input sentence, a set of candidate sentences from a language model, wherein the language model is a machine learning model trained with a set of historic conversations;
receiving, from a sentiment model based on the set of candidate sentences, a sentiment of each candidate sentence of the set of candidate sentences;
determine a semantic drift between the input sentence and each respective candidate sentence of the set of candidate sentences based on comparing a vector distance between words of the input sentence and words of each respective candidate sentence;
choosing a particular candidate sentence of the set of candidate sentences based on the determined semantic drift of the particular candidate sentence and a received sentiment of the particular candidate sentence;
comparing the determined semantic drift of the particular candidate sentence to a threshold; and
providing the particular candidate sentence in response to the request for the replacement sentence based on comparing the determined semantic drift of the particular candidate sentence to the threshold.