OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:prevWordsInfo
(Results
1 - 2
of
2
) sorted by null
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
NgramContextUtils.java
67
final WordInfo[]
prevWordsInfo
=
69
Arrays.fill(
prevWordsInfo
, WordInfo.EMPTY_WORD_INFO);
70
for (int i = 0; i <
prevWordsInfo
.length; i++) {
86
prevWordsInfo
[i] = WordInfo.BEGINNING_OF_SENTENCE_WORD_INFO;
94
prevWordsInfo
[i] = WordInfo.BEGINNING_OF_SENTENCE_WORD_INFO;
100
prevWordsInfo
[i] = WordInfo.BEGINNING_OF_SENTENCE_WORD_INFO;
109
prevWordsInfo
[i] = new WordInfo(focusedWord);
111
return new NgramContext(
prevWordsInfo
);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
NgramContext.java
112
public NgramContext(final WordInfo...
prevWordsInfo
) {
113
this(DecoderSpecificConstants.MAX_PREV_WORD_COUNT_FOR_N_GRAM,
prevWordsInfo
);
116
public NgramContext(final int maxPrevWordCount, final WordInfo...
prevWordsInfo
) {
117
mPrevWordsInfo =
prevWordsInfo
;
118
mPrevWordsCount =
prevWordsInfo
.length;
123
* Create next
prevWordsInfo
using current
prevWordsInfo
.
128
final WordInfo[]
prevWordsInfo
= new WordInfo[nextPrevWordCount];
129
prevWordsInfo
[0] = wordInfo;
130
System.arraycopy(mPrevWordsInfo, 0,
prevWordsInfo
, 1, nextPrevWordCount - 1)
[
all
...]
Completed in 402 milliseconds