Home
last modified time | relevance | path

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

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DNgramContext.java112 public NgramContext(final WordInfo... prevWordsInfo) { in NgramContext() argument
113 this(DecoderSpecificConstants.MAX_PREV_WORD_COUNT_FOR_N_GRAM, prevWordsInfo); in NgramContext()
116 public NgramContext(final int maxPrevWordCount, final WordInfo... prevWordsInfo) { in NgramContext() argument
117 mPrevWordsInfo = prevWordsInfo; in NgramContext()
118 mPrevWordsCount = prevWordsInfo.length; in NgramContext()
128 final WordInfo[] prevWordsInfo = new WordInfo[nextPrevWordCount]; in getNextNgramContext() local
129 prevWordsInfo[0] = wordInfo; in getNextNgramContext()
130 System.arraycopy(mPrevWordsInfo, 0, prevWordsInfo, 1, nextPrevWordCount - 1); in getNextNgramContext()
131 return new NgramContext(mMaxPrevWordCount, prevWordsInfo); in getNextNgramContext()
242 final NgramContext prevWordsInfo = (NgramContext)o; in equals()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DNgramContextUtils.java67 final WordInfo[] prevWordsInfo = in getNgramContextFromNthPreviousWord() local
69 Arrays.fill(prevWordsInfo, WordInfo.EMPTY_WORD_INFO); in getNgramContextFromNthPreviousWord()
70 for (int i = 0; i < prevWordsInfo.length; i++) { in getNgramContextFromNthPreviousWord()
86 prevWordsInfo[i] = WordInfo.BEGINNING_OF_SENTENCE_WORD_INFO; in getNgramContextFromNthPreviousWord()
94 prevWordsInfo[i] = WordInfo.BEGINNING_OF_SENTENCE_WORD_INFO; in getNgramContextFromNthPreviousWord()
100 prevWordsInfo[i] = WordInfo.BEGINNING_OF_SENTENCE_WORD_INFO; in getNgramContextFromNthPreviousWord()
109 prevWordsInfo[i] = new WordInfo(focusedWord); in getNgramContextFromNthPreviousWord()
111 return new NgramContext(prevWordsInfo); in getNgramContextFromNthPreviousWord()