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.java171 assertEquals(NgramContextUtils.getNgramContextFromNthPreviousWord( in testGetPreviousWord()
173 assertEquals(NgramContextUtils.getNgramContextFromNthPreviousWord( in testGetPreviousWord()
175 assertEquals(NgramContextUtils.getNgramContextFromNthPreviousWord( in testGetPreviousWord()
178 assertFalse(NgramContextUtils.getNgramContextFromNthPreviousWord( in testGetPreviousWord()
180 assertTrue(NgramContextUtils.getNgramContextFromNthPreviousWord( in testGetPreviousWord()
184 assertEquals(NgramContextUtils.getNgramContextFromNthPreviousWord( in testGetPreviousWord()
186 assertEquals(NgramContextUtils.getNgramContextFromNthPreviousWord( in testGetPreviousWord()
188 assertTrue(NgramContextUtils.getNgramContextFromNthPreviousWord( in testGetPreviousWord()
198 assertEquals(NgramContextUtils.getNgramContextFromNthPreviousWord( in testGetPreviousWord()
200 assertEquals(NgramContextUtils.getNgramContextFromNthPreviousWord( in testGetPreviousWord()
[all …]
DNgramContextTests.java145 assertEquals("<S>", NgramContextUtils.getNgramContextFromNthPreviousWord("", in testGetNgramContextFromNthPreviousWord()
147 assertEquals("<S> b", NgramContextUtils.getNgramContextFromNthPreviousWord("a. b ", in testGetNgramContextFromNthPreviousWord()
149 assertEquals("<S> b", NgramContextUtils.getNgramContextFromNthPreviousWord("a? b ", in testGetNgramContextFromNthPreviousWord()
151 assertEquals("<S> b", NgramContextUtils.getNgramContextFromNthPreviousWord("a! b ", in testGetNgramContextFromNthPreviousWord()
153 assertEquals("<S> b", NgramContextUtils.getNgramContextFromNthPreviousWord("a\nb ", in testGetNgramContextFromNthPreviousWord()
155 assertEquals("<S> a b", NgramContextUtils.getNgramContextFromNthPreviousWord("a b ", in testGetNgramContextFromNthPreviousWord()
158 .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()