Home
last modified time | relevance | path

Searched refs:extractPrevWordsContextArray (Results 1 – 2 of 2) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DNgramContextTests.java114 assertEquals(1, ngramContext_bos.extractPrevWordsContextArray().length); in testExtractPrevWordsContextArray()
118 assertEquals(2, ngramContext_b_a.extractPrevWordsContextArray().length); in testExtractPrevWordsContextArray()
121 assertEquals("a", ngramContext_b_a.extractPrevWordsContextArray()[0]); in testExtractPrevWordsContextArray()
122 assertEquals("b", ngramContext_b_a.extractPrevWordsContextArray()[1]); in testExtractPrevWordsContextArray()
127 assertEquals(3, ngramContext_bos_b.extractPrevWordsContextArray().length); in testExtractPrevWordsContextArray()
129 assertEquals("a", ngramContext_bos_b.extractPrevWordsContextArray()[0]); in testExtractPrevWordsContextArray()
130 assertEquals("b", ngramContext_bos_b.extractPrevWordsContextArray()[1]); in testExtractPrevWordsContextArray()
131 assertEquals("<S>", ngramContext_bos_b.extractPrevWordsContextArray()[2]); in testExtractPrevWordsContextArray()
134 assertEquals(0, ngramContext_empty.extractPrevWordsContextArray().length); in testExtractPrevWordsContextArray()
137 assertEquals(1, ngramContext_a_empty.extractPrevWordsContextArray().length); in testExtractPrevWordsContextArray()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DNgramContext.java163 public String[] extractPrevWordsContextArray() { in extractPrevWordsContextArray() method in NgramContext