Home
last modified time | relevance | path

Searched refs:getNgramContextFromNthPreviousWord (Results 1 – 5 of 5) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DRichInputConnectionAndTextRangeTests.java161 assertEquals(NgramContextUtils.getNgramContextFromNthPreviousWord( in testGetPreviousWord()
163 assertEquals(NgramContextUtils.getNgramContextFromNthPreviousWord( in testGetPreviousWord()
165 assertEquals(NgramContextUtils.getNgramContextFromNthPreviousWord( in testGetPreviousWord()
168 assertFalse(NgramContextUtils.getNgramContextFromNthPreviousWord( in testGetPreviousWord()
170 assertTrue(NgramContextUtils.getNgramContextFromNthPreviousWord( in testGetPreviousWord()
174 assertEquals(NgramContextUtils.getNgramContextFromNthPreviousWord( in testGetPreviousWord()
176 assertEquals(NgramContextUtils.getNgramContextFromNthPreviousWord( in testGetPreviousWord()
178 assertTrue(NgramContextUtils.getNgramContextFromNthPreviousWord( in testGetPreviousWord()
188 assertEquals(NgramContextUtils.getNgramContextFromNthPreviousWord( in testGetPreviousWord()
190 assertEquals(NgramContextUtils.getNgramContextFromNthPreviousWord( in testGetPreviousWord()
[all …]
DNgramContextTests.java129 assertEquals("<S>", NgramContextUtils.getNgramContextFromNthPreviousWord("", in testGetNgramContextFromNthPreviousWord()
131 assertEquals("<S> b", NgramContextUtils.getNgramContextFromNthPreviousWord("a. b ", in testGetNgramContextFromNthPreviousWord()
133 assertEquals("<S> b", NgramContextUtils.getNgramContextFromNthPreviousWord("a? b ", in testGetNgramContextFromNthPreviousWord()
135 assertEquals("<S> b", NgramContextUtils.getNgramContextFromNthPreviousWord("a! b ", in testGetNgramContextFromNthPreviousWord()
137 assertEquals("<S> b", NgramContextUtils.getNgramContextFromNthPreviousWord("a\nb ", in testGetNgramContextFromNthPreviousWord()
139 assertEquals("<S> a b", NgramContextUtils.getNgramContextFromNthPreviousWord("a b ", in testGetNgramContextFromNthPreviousWord()
142 .getNgramContextFromNthPreviousWord("a b c d e", spacingAndPunctuations, 1) in testGetNgramContextFromNthPreviousWord()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DNgramContextUtils.java59 public static NgramContext getNgramContextFromNthPreviousWord(final CharSequence prev, in getNgramContextFromNthPreviousWord() method in NgramContextUtils
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DRichInputConnection.java657 public NgramContext getNgramContextFromNthPreviousWord( in getNgramContextFromNthPreviousWord() method in RichInputConnection
682 return NgramContextUtils.getNgramContextFromNthPreviousWord( in getNgramContextFromNthPreviousWord()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/
DInputLogic.java1230 final NgramContext ngramContext = mConnection.getNgramContextFromNthPreviousWord( in unlearnWord()
1799 return mConnection.getNgramContextFromNthPreviousWord( in getNgramContextFromNthPreviousWordForSuggestion()
2174 final NgramContext ngramContext = mConnection.getNgramContextFromNthPreviousWord( in commitChosenWord()