Searched refs:extractPrevWordsContextArray (Results 1 – 2 of 2) sorted by relevance
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | NgramContextTests.java | 99 assertEquals(1, ngramContext_bos.extractPrevWordsContextArray().length); in testExtractPrevWordsContextArray() 103 assertEquals(2, ngramContext_b_a.extractPrevWordsContextArray().length); in testExtractPrevWordsContextArray() 106 assertEquals("a", ngramContext_b_a.extractPrevWordsContextArray()[0]); in testExtractPrevWordsContextArray() 107 assertEquals("b", ngramContext_b_a.extractPrevWordsContextArray()[1]); in testExtractPrevWordsContextArray() 112 assertEquals(3, ngramContext_bos_b.extractPrevWordsContextArray().length); in testExtractPrevWordsContextArray() 114 assertEquals("a", ngramContext_bos_b.extractPrevWordsContextArray()[0]); in testExtractPrevWordsContextArray() 115 assertEquals("b", ngramContext_bos_b.extractPrevWordsContextArray()[1]); in testExtractPrevWordsContextArray() 116 assertEquals("<S>", ngramContext_bos_b.extractPrevWordsContextArray()[2]); in testExtractPrevWordsContextArray() 119 assertEquals(0, ngramContext_empty.extractPrevWordsContextArray().length); in testExtractPrevWordsContextArray() 122 assertEquals(1, ngramContext_a_empty.extractPrevWordsContextArray().length); in testExtractPrevWordsContextArray() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | NgramContext.java | 163 public String[] extractPrevWordsContextArray() { in extractPrevWordsContextArray() method in NgramContext
|