Searched refs:isBeginningOfSentenceContext (Results 1 – 4 of 4) sorted by relevance
51 assertFalse(new NgramContext().isBeginningOfSentenceContext()); in testIsBeginningOfSentenceContext()53 .isBeginningOfSentenceContext()); in testIsBeginningOfSentenceContext()54 assertTrue(NgramContext.BEGINNING_OF_SENTENCE.isBeginningOfSentenceContext()); in testIsBeginningOfSentenceContext()55 assertFalse(new NgramContext(new WordInfo("a")).isBeginningOfSentenceContext()); in testIsBeginningOfSentenceContext()56 assertFalse(new NgramContext(new WordInfo("")).isBeginningOfSentenceContext()); in testIsBeginningOfSentenceContext()57 assertFalse(new NgramContext(WordInfo.EMPTY_WORD_INFO).isBeginningOfSentenceContext()); in testIsBeginningOfSentenceContext()59 .isBeginningOfSentenceContext()); in testIsBeginningOfSentenceContext()61 .isBeginningOfSentenceContext()); in testIsBeginningOfSentenceContext()64 .isBeginningOfSentenceContext()); in testIsBeginningOfSentenceContext()76 assertTrue(ngramContext_bos_b.isBeginningOfSentenceContext()); in testGetNextNgramContext()[all …]
179 "abc def", mSpacingAndPunctuations, 2).isBeginningOfSentenceContext()); in testGetPreviousWord()181 "abc", mSpacingAndPunctuations, 2).isBeginningOfSentenceContext()); in testGetPreviousWord()205 "abc ", mSpacingAndPunctuations, 2).isBeginningOfSentenceContext()); in testGetPreviousWord()
186 public boolean isBeginningOfSentenceContext() { in isBeginningOfSentenceContext() method in NgramContext
622 SuggestedWords.MAX_SUGGESTIONS, ngramContext.isBeginningOfSentenceContext(), in getSuggestionResults()