| CPC G06F 40/53 (2020.01) [G06F 40/279 (2020.01); G06F 40/47 (2020.01); G06F 40/55 (2020.01)] | 18 Claims |

|
1. A method for inputting text on an electronic device, the method comprising:
displaying a user interface including a virtual keyboard, a suggestion area, and an input field;
obtaining at least one word from a user input that is received through the virtual keyboard;
inputting the at least one word into a language model that performs:
splitting the at least one word into at least one character;
obtaining glyph units of the at least one word by splitting the at least one character into the glyph units;
obtaining a word representation vector of the at least one word based on a word-level feature vector of the at least one word, a character-level feature vector of the at least one character, and glyph-level features vectors of the glyph units; and
providing a predictive word or a predictive character corresponding to the word representation vector;
outputting the predictive word or the predictive character from the language model;
displaying the predictive word or the predictive character in the suggestion area of the user interface; and
based on the predictive word or the predictive character being selected from the suggestion area, displaying the predictive word or the predictive character in the input field of the user interface,
wherein the obtaining the word representation vector of the at least one word comprises:
obtaining the character-level feature vector by obtaining lookup table glyph-level features vectors and a lookup table character-level feature vector from a lookup table, applying an attention-based feature extraction method to the lookup table glyph-level features vectors to obtain an extracted character-level feature vector, and fusing the lookup table character-level feature vector with the extracted character-level feature vector to obtain the character-level feature vector.
|