Language identification using recurrent neural networks
First Claim
1. A non-transitory computer-readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by one or more processors of an electronic device, cause the electronic device to:
- receive a first typed character of a character sequence;
provide the first typed character to a neural network;
determine, using the neural network, a first character context of the first typed character based on the first typed character and a second typed character of the character sequence;
determine, using the neural network, a first confidence level that the character sequence is associated with a language of a plurality of languages based on the first character context of the first typed character;
determine whether the first confidence level exceeds a predetermined threshold;
in accordance with a determination that the first confidence level exceeds the predetermined threshold, provide the language as a candidate language;
in accordance with a determination that the first confidence level does not exceed the predetermined threshold, forgo providing the language as the candidate language;
determine whether a third typed character has been provided to the electronic device;
in accordance with a determination that a third typed character has been provided to the electronic device;
provide the third typed character to the neural network;
determine, using the neural network, a second character context of the first typed character based on the first typed character and the third typed character;
determine, using the neural network, a second confidence level that the character sequence is associated with the language of the plurality of languages based on the second character context of the first typed character;
determine whether the second confidence level exceeds the predetermined threshold; and
in accordance with a determination that the second confidence level exceeds the predetermined threshold, provide the language as the candidate language.
1 Assignment
0 Petitions
Accused Products
Abstract
Systems and processes for language identification using recurrent neural networks are provided. An example method includes, at an electronic device, receiving a first typed character of a character sequence and determining a character context of the first typed character based on the first typed character and a second typed character of the character sequence. The method further includes determining a confidence level that the character sequence is associated with a language of a plurality of languages based on the character context of the first typed character, and determining whether the confidence level exceeds a threshold, in accordance with a determination that the confidence level exceeds the threshold, providing the language as a candidate language, and in accordance with a determination that the confidence level does not exceed the threshold, forgoing providing the language as a candidate language.
2766 Citations
38 Claims
-
1. A non-transitory computer-readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by one or more processors of an electronic device, cause the electronic device to:
-
receive a first typed character of a character sequence; provide the first typed character to a neural network; determine, using the neural network, a first character context of the first typed character based on the first typed character and a second typed character of the character sequence; determine, using the neural network, a first confidence level that the character sequence is associated with a language of a plurality of languages based on the first character context of the first typed character; determine whether the first confidence level exceeds a predetermined threshold; in accordance with a determination that the first confidence level exceeds the predetermined threshold, provide the language as a candidate language; in accordance with a determination that the first confidence level does not exceed the predetermined threshold, forgo providing the language as the candidate language; determine whether a third typed character has been provided to the electronic device; in accordance with a determination that a third typed character has been provided to the electronic device; provide the third typed character to the neural network; determine, using the neural network, a second character context of the first typed character based on the first typed character and the third typed character; determine, using the neural network, a second confidence level that the character sequence is associated with the language of the plurality of languages based on the second character context of the first typed character; determine whether the second confidence level exceeds the predetermined threshold; and in accordance with a determination that the second confidence level exceeds the predetermined threshold, provide the language as the candidate language. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16)
-
-
17. A method, comprising:
at an electronic device; receiving a first typed character of a character sequence; providing the first typed character to a neural network; determining, using the neural network, a first character context of the first typed character based on the first typed character and a second typed character of the character sequence; determining, using the neural network, a first confidence level that the character sequence is associated with a language of a plurality of languages based on the first character context of the first typed character; determining whether the first confidence level exceeds a predetermined threshold; in accordance with a determination that the first confidence level exceeds the predetermined threshold, providing the language as a candidate language; in accordance with a determination that the first confidence level does not exceed the predetermined threshold, forgoing providing the language as the candidate language; determining whether a third typed character has been provided to the electronic device; in accordance with a determination that a third typed character has been provided to the electronic device; providing the third typed character to the neural network; determining, using the neural network, a second character context of the first typed character based on the first typed character and the third typed character; determining, using the neural network, a second confidence level that the character sequence is associated with the language of the plurality of languages based on the second character context of the first typed character; determining whether the second confidence level exceeds the predetermined threshold; and in accordance with a determination that the second confidence level exceeds the predetermined threshold, providing the language as the candidate language. - View Dependent Claims (18, 19, 20, 21, 22, 23, 24, 25, 26, 27)
-
28. An electronic device, comprising:
-
one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for; receiving a first typed character of a character sequence; providing the first typed character to a neural network; determining, using the neural network, a first character context of the first typed character based on the first typed character and a second typed character of the character sequence; determining, using the neural network, a first confidence level that the character sequence is associated with a language of a plurality of languages based on the first character context of the first typed character; determining whether the first confidence level exceeds a predetermined threshold; in accordance with a determination that the first confidence level exceeds the predetermined threshold, providing the language as a candidate language; in accordance with a determination that the first confidence level does not exceed the predetermined threshold, forgoing providing the language as the candidate language; determining whether a third typed character has been provided to the electronic device; in accordance with a determination that a third typed character has been provided to the electronic device; providing the third typed character to the neural network; determining, using the neural network, a second character context of the first typed character based on the first typed character and the third typed character; determining, using the neural network, a second confidence level that the character sequence is associated with the language of the plurality of languages based on the second character context of the first typed character; determining whether the second confidence level exceeds the predetermined threshold; and in accordance with a determination that the second confidence level exceeds the predetermined threshold, providing the language as the candidate language. - View Dependent Claims (29, 30, 31, 32, 33, 34, 35, 36, 37, 38)
-
Specification