Searched refs:word0 (Results 1 - 8 of 8) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
H A DBinaryDictionaryTests.java205 private static void addBigramWords(final BinaryDictionary binaryDictionary, final String word0, argument
207 binaryDictionary.addNgramEntry(new PrevWordsInfo(new WordInfo(word0)), word1, probability,
212 final String word0, final String word1) {
213 return binaryDictionary.isValidNgram(new PrevWordsInfo(new WordInfo(word0)), word1);
217 final String word0, final String word1) {
218 binaryDictionary.removeNgramEntry(new PrevWordsInfo(new WordInfo(word0)), word1);
222 final String word0, final String word1) {
223 return binaryDictionary.getNgramProbability(new PrevWordsInfo(new WordInfo(word0)), word1);
424 final String word0 = words.get(random.nextInt(wordCount));
426 if (TextUtils.equals(word0, word
211 isValidBigram(final BinaryDictionary binaryDictionary, final String word0, final String word1) argument
216 removeBigramEntry(final BinaryDictionary binaryDictionary, final String word0, final String word1) argument
221 getBigramProbability(final BinaryDictionary binaryDictionary, final String word0, final String word1) argument
[all...]
H A DBinaryDictionaryDecayingTests.java79 private void addBigramWords(final BinaryDictionary binaryDictionary, final String word0, argument
81 binaryDictionary.addNgramEntry(new PrevWordsInfo(new WordInfo(word0)), word1, probability,
86 final String word0, final String word1) {
87 return binaryDictionary.isValidNgram(new PrevWordsInfo(new WordInfo(word0)), word1);
473 final String word0 = words.get(word0Index);
475 final Pair<String, String> bigram = new Pair<>(word0, word1);
567 final String word0 = words.get(word0Index);
573 addBigramWords(binaryDictionary, word0, word1, DUMMY_PROBABILITY);
85 isValidBigram(final BinaryDictionary binaryDictionary, final String word0, final String word1) argument
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DLanguageModelParam.java62 this(null /* word0 */, word, unigramProbability, Dictionary.NOT_A_PROBABILITY, timestamp);
66 public LanguageModelParam(final CharSequence word0, final CharSequence word1, argument
70 mWord0 = (word0 == null) ? null : StringUtils.toCodePointArray(word0);
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
H A DVer4DictDecoder.java104 final String word0 = wordProperty.mWord;
106 fusionDict.setBigram(word0, bigram.mWord, bigram.mProbabilityInfo);
H A DFusionDictionary.java367 * @param word0 the previous word of the context
371 public void setBigram(final String word0, final String word1, argument
373 PtNode ptNode0 = findWordInTree(mRootNodeArray, word0);
382 ptNode0 = findWordInTree(mRootNodeArray, word0);
386 throw new RuntimeException("First word of bigram not found " + word0);
H A DVer2DictDecoder.java298 final String word0 = wordProperty.mWord;
300 fusionDict.setBigram(word0, bigram.mWord, bigram.mProbabilityInfo);
H A DBinaryDictDecoderEncoderTests.java671 final String word0 = wordProperty.mWord;
673 wordSet.remove(word0);
674 if (shortcuts.containsKey(word0)) {
675 assertEquals(shortcuts.get(word0).size(), wordProperty.mShortcutTargets.size());
676 final List<String> shortcutList = shortcuts.get(word0);
687 final Pair<String, String> bigram = new Pair<>(word0, word1);
/packages/inputmethods/LatinIME/native/jni/
H A Dcom_android_inputmethod_latin_BinaryDictionary.cpp454 // other hand, word0 can be null and then it means the set of params doesn't contain bigram
456 jintArray word0 = static_cast<jintArray>( local
458 jsize word0Length = word0 ? env->GetArrayLength(word0) : 0;
460 if (word0) {
461 env->GetIntArrayRegion(word0, 0, word0Length, word0CodePoints);
487 if (word0) {
501 env->DeleteLocalRef(word0);

Completed in 478 milliseconds