Message suggestions
A method may involve, for each of one or more messages that are selected from a plurality of messages from an account: (a) extracting one or more phrases from a respective selected message; (b) determining that a conversation includes the respective selected message and one or more other messages from the plurality of messages; (c) generating a first feature vector based on the conversation, wherein the first feature vector includes one or more first features, wherein the one or more first features include one or more words from the conversation; and (d) generating, by a computing system, one or more training-data sets, wherein each training-data set comprises one of the phrases and the first feature vector. The method may further involve: training, by the computing system, a machine-learning application with at least a portion of the one or more training-data sets that are generated for the one or more selected messages; applying the trained machine-learning application to process an incoming message to the account; and responsive to applying the trained machine-learning application, determining one or more reply messages corresponding to the incoming message, wherein the one or more reply messages include at least one of the extracted one or more phrases.
1 . A method, comprising:
applying a model to identify at least one feature from an incoming message to a user account, the model being trained at least in part based on prior messages sent from the user account;
responsive to applying the model, determining at least one reply message based on the at least one feature, the at least one reply message including at least a portion of a phrase extracted from the prior messages;
updating a graphic display with the incoming message and the at least one reply message, the at least one reply message including at least the portion of the phrase extracted from the prior messages; and
receiving a selection of a reply message from the at least one reply message on the graphic display.
2 . The method of claim 1 , wherein the at least one reply message comprises a first reply message and a second reply message, and the method further comprising ordering the first reply message and the second reply message on the graphic display based on how often the first reply message and the second reply message is selected or provided for selection.
3 . The method of claim 1 , wherein determining the at least one reply message based on the at least one feature comprises:
identifying a set of reply messages based on the at least one feature, the set of reply messages including the at least one reply message and at least one additional reply message;
determining a ranking for the set of reply messages based on probability of being sent; and
selecting the at least one reply message from the set of reply messages based on the ranking.
4 . The method of claim 1 , wherein applying the model to identify the at least one feature from the incoming message to the user account comprises:
performing normalization on the incoming message to generate a normalized message; and
identifying the at least one feature from the normalized message.
5 . The method of claim 1 , wherein the model is further trained based on conversations associated with the prior messages sent from the user account.
6 . The method of claim 1 , wherein the at least one feature comprises at least one word from the incoming message.
7 . The method of claim 6 , wherein the at least one feature comprises a count associated with the at least one word from the incoming message.
8 . The method of claim 1 , wherein the at least one feature comprises a sender identifier for the incoming message.
9 . A non-transitory computer-readable storage medium having instructions stored thereon executable by a processing device, the instructions causing the processing device to perform a method, the method comprising:
applying a model to identify at least one feature from an incoming message to a user account, the model being trained at least in part based on prior messages sent from the user account;
responsive to applying the model, determining at least one reply message based on the at least one feature, the at least one reply message including at least a portion of a phrase extracted from the prior messages;
updating a graphic display with the incoming message and the at least one reply message, the at least one reply message including at least the portion of the phrase extracted from the prior messages; and
receiving a selection of a reply message from the at least one reply message on the graphic display.
10 . The non-transitory computer-readable storage medium of claim 9 , wherein the at least one reply message comprises a first reply message and a second reply message, and the method further comprising ordering the first reply message and the second reply message on the graphic display based on how often the first reply message and the second reply message is selected or provided for selection.
11 . The non-transitory computer-readable storage medium of claim 9 , wherein determining the at least one reply message based on the at least one feature comprises:
identifying a set of reply messages based on the at least one feature, the set of reply messages including the at least one reply message and at least one additional reply message;
determining a ranking for the set of reply messages based on probability of being sent; and
selecting the at least one reply message from the set of reply messages based on the ranking.
12 . The non-transitory computer-readable storage medium of claim 9 , wherein applying the model to identify the at least one feature from the incoming message to the user account comprises:
performing normalization on the incoming message to generate a normalized message; and
identifying the at least one feature from the normalized message.
13 . The non-transitory computer-readable storage medium of claim 9 , wherein the model is further trained based on conversations associated with the prior messages sent from the user account.
14 . The non-transitory computer-readable storage medium of claim 9 , wherein the at least one feature comprises at least one word from the incoming message.
15 . The non-transitory computer-readable storage medium of claim 14 , wherein the at least one feature comprises a count associated with the at least one word from the incoming message.
16 . The non-transitory computer-readable storage medium of claim 9 , wherein the at least one feature comprises a sender identifier for the incoming message.
17 . A system comprising:
a non-transitory computer-readable medium; and
program instructions stored on the non-transitory computer-readable medium, the program instructions when executed by a processing device cause the processing device to perform a method, the method comprising:
applying a model to identify at least one feature from an incoming message to a user account, the model being trained at least in part based on prior messages sent from the user account;
responsive to applying the model, determining at least one reply message based on the at least one feature, the at least one reply message including at least a portion of a phrase extracted from the prior messages;
updating a graphic display with the incoming message and the at least one reply message, the at least one reply message including at least the portion of the phrase extracted from the prior messages; and
receiving a selection of a reply message from the at least one reply message on the graphic display.
18 . The system of claim 17 , wherein the at least one reply message comprises a first reply message and a second reply message, and the method further comprising ordering the first reply message and the second reply message on the graphic display based on how often the first reply message and the second reply message is selected or provided for selection.
19 . The system of claim 17 , wherein determining the at least one reply message based on the at least one feature comprises:
identifying a set of reply messages based on the at least one feature, the set of reply messages including the at least one reply message and at least one additional reply message;
determining a ranking for the set of reply messages based on probability of being sent; and
selecting the at least one reply message from the set of reply messages based on the ranking.
20 . The system of claim 17 , wherein the at least one feature comprises at least one word from the incoming message.