4. The method of claim 1 , wherein the word-level token is a first word-level token comprising a first single string of the plurality of predicted characters, and wherein determining the phrase-level token comprises: generating, in response to determining that the first word-level token represents the candidate word in the lexicon, a next-word token that indicates that a next selected key of the plurality of keys is a prefix of a second word-level token; determining, in response to determining the next-word token, a second word-level token comprising a second single string of the plurality of predicted characters, wherein the second key is a prefix of the second word-level token; and determining the phrase-level token as a combination of the first word-level token and the second word-level token.
5. The method of claim 4 , wherein determining the phrase-level token further comprises: determining, based on a plurality of features associated with the gesture, a group of alignment points traversed by the gesture; determining respective cost values for each of at least the first key, the second key, and a third key, wherein each of the respective cost values represents a probability that an alignment point of the group of alignment points indicates a key of the plurality of keys; determining a first combined cost value based at least in part on the determined cost value for the first key and the determined cost value for the second key; determining a second combined cost value based at least in part on the determined cost value for the first key and the determined cost value for the third key; comparing the first combined cost value and the second combined cost value; and determining the second word-level token based on the comparison of the first combined cost value and the second combined cost value.