Searched refs:prevWordsInfo (Results 1 – 2 of 2) sorted by relevance
112 public NgramContext(final WordInfo... prevWordsInfo) { in NgramContext() argument113 this(DecoderSpecificConstants.MAX_PREV_WORD_COUNT_FOR_N_GRAM, prevWordsInfo); in NgramContext()116 public NgramContext(final int maxPrevWordCount, final WordInfo... prevWordsInfo) { in NgramContext() argument117 mPrevWordsInfo = prevWordsInfo; in NgramContext()118 mPrevWordsCount = prevWordsInfo.length; in NgramContext()128 final WordInfo[] prevWordsInfo = new WordInfo[nextPrevWordCount]; in getNextNgramContext() local129 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 …]
67 final WordInfo[] prevWordsInfo = in getNgramContextFromNthPreviousWord() local69 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()