Home
last modified time | relevance | path

Searched refs:wordProperty (Results 1 – 16 of 16) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DVer4DictDecoder.java72 final WordProperty wordProperty = result.mWordProperty; in readDictionaryBinary() local
73 if (wordProperty == null) { in readDictionaryBinary()
80 wordProperties.add(wordProperty); in readDictionaryBinary()
85 for (final WordProperty wordProperty : wordProperties) { in readDictionaryBinary()
86 fusionDict.add(wordProperty.mWord, wordProperty.mProbabilityInfo, in readDictionaryBinary()
87 wordProperty.mIsNotAWord, in readDictionaryBinary()
88 wordProperty.mIsPossiblyOffensive); in readDictionaryBinary()
92 for (final WordProperty wordProperty : wordProperties) { in readDictionaryBinary()
93 if (!wordProperty.mHasNgrams) { in readDictionaryBinary()
96 final String word0 = wordProperty.mWord; in readDictionaryBinary()
[all …]
DVer4DictEncoder.java76 for (final WordProperty wordProperty : dict) { in writeDictionary()
77 if (!binaryDict.addUnigramEntry(wordProperty.mWord, wordProperty.getProbability(), in writeDictionary()
78 wordProperty.mIsBeginningOfSentence, wordProperty.mIsNotAWord, in writeDictionary()
79 wordProperty.mIsPossiblyOffensive, 0 /* timestamp */)) { in writeDictionary()
80 MakedictLog.e("Cannot add unigram entry for " + wordProperty.mWord); in writeDictionary()
DBinaryDictDecoderEncoderTests.java619 final WordProperty wordProperty = binaryDictionary.getWordProperty(word,
621 assertEquals(word, wordProperty.mWord);
622 assertEquals(UNIGRAM_FREQ, wordProperty.getProbability());
660 final WordProperty wordProperty = result.mWordProperty;
661 final String word0 = wordProperty.mWord;
662 assertEquals(UNIGRAM_FREQ, wordProperty.mProbabilityInfo.mProbability);
664 if (wordProperty.mHasNgrams) {
665 for (final WeightedString bigramTarget : wordProperty.getBigrams()) {
/packages/inputmethods/LatinIME/native/dicttoolkit/src/offdevice_intermediate_dict/
Doffdevice_intermediate_dict.cpp24 bool OffdeviceIntermediateDict::addWord(const WordProperty &wordProperty) { in addWord() argument
25 const CodePointArrayView codePoints = wordProperty.getCodePoints(); in addWord()
29 return addWordInner(codePoints, wordProperty, mRootPtNodeArray); in addWord()
33 const WordProperty &wordProperty, OffdeviceIntermediateDictPtNodeArray &ptNodeArray) { in addWordInner() argument
49 return addWordInner(codePoints.skip(i), wordProperty, in addWordInner()
63 std::make_shared<OffdeviceIntermediateDictPtNode>(wordProperty, *ptNode)); in addWordInner()
70 ? std::make_shared<OffdeviceIntermediateDictPtNode>(codePoints, wordProperty) in addWordInner()
82 return addWordInner(codePoints.skip(i), wordProperty, childrenPtNodeArray); in addWordInner()
87 std::make_shared<OffdeviceIntermediateDictPtNode>(codePoints, wordProperty)); in addWordInner()
Doffdevice_intermediate_dict_pt_node.h39 const WordProperty &wordProperty) in OffdeviceIntermediateDictPtNode() argument
41 mWortProperty(new WordProperty(wordProperty)) {} in OffdeviceIntermediateDictPtNode()
51 OffdeviceIntermediateDictPtNode(const WordProperty &wordProperty, in OffdeviceIntermediateDictPtNode() argument
55 mWortProperty(new WordProperty(wordProperty)) {} in OffdeviceIntermediateDictPtNode()
Doffdevice_intermediate_dict.h37 bool addWord(const WordProperty &wordProperty);
48 bool addWordInner(const CodePointArrayView codePoints, const WordProperty &wordProperty,
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DCombinedFormatUtils.java57 public static String formatWordProperty(final WordProperty wordProperty) { in formatWordProperty() argument
59 builder.append(" " + WORD_TAG + "=" + wordProperty.mWord); in formatWordProperty()
61 builder.append(formatProbabilityInfo(wordProperty.mProbabilityInfo)); in formatWordProperty()
62 if (wordProperty.mIsBeginningOfSentence) { in formatWordProperty()
65 if (wordProperty.mIsNotAWord) { in formatWordProperty()
68 if (wordProperty.mIsPossiblyOffensive) { in formatWordProperty()
72 if (wordProperty.mHasNgrams) { in formatWordProperty()
73 for (final NgramProperty ngramProperty : wordProperty.mNgrams) { in formatWordProperty()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DBinaryDictionaryTests.java746 final WordProperty wordProperty = binaryDictionary.getWordProperty(word, in testGetWordProperties() local
748 assertEquals(word, wordProperty.mWord); in testGetWordProperties()
749 assertTrue(wordProperty.isValid()); in testGetWordProperties()
750 assertEquals(isNotAWord, wordProperty.mIsNotAWord); in testGetWordProperties()
751 assertEquals(isPossiblyOffensive, wordProperty.mIsPossiblyOffensive); in testGetWordProperties()
752 assertEquals(false, wordProperty.mHasNgrams); in testGetWordProperties()
753 assertEquals(unigramProbability, wordProperty.mProbabilityInfo.mProbability); in testGetWordProperties()
785 final WordProperty wordProperty = binaryDictionary.getWordProperty(word0, in testGetWordProperties() local
787 assertEquals(bigramWord1s.size(), wordProperty.mNgrams.size()); in testGetWordProperties()
789 for (final WeightedString bigramTarget : wordProperty.getBigrams()) { in testGetWordProperties()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/utils/
Djni_data_utils.cpp27 const WordProperty &wordProperty, jintArray outCodePoints, jbooleanArray outFlags, in outputWordProperty() argument
32 const CodePointArrayView codePoints = wordProperty.getCodePoints(); in outputWordProperty()
36 const UnigramProperty &unigramProperty = wordProperty.getUnigramProperty(); in outputWordProperty()
37 const std::vector<NgramProperty> &ngrams = wordProperty.getNgramProperties(); in outputWordProperty()
Djni_data_utils.h144 static void outputWordProperty(JNIEnv *const env, const WordProperty &wordProperty,
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DCombinedInputOutput.java201 for (final WordProperty wordProperty : dict) { in writeDictionaryCombined()
203 wordPropertiesInDict.add(wordProperty); in writeDictionaryCombined()
206 for (final WordProperty wordProperty : wordPropertiesInDict) { in writeDictionaryCombined()
207 destination.write(CombinedFormatUtils.formatWordProperty(wordProperty)); in writeDictionaryCombined()
DInfo.java46 for (final WordProperty wordProperty : dict) { in showInfo()
48 if (wordProperty.mHasNgrams) { in showInfo()
49 bigramCount += wordProperty.mNgrams.size(); in showInfo()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DExpandableBinaryDictionary.java711 final WordProperty wordProperty = result.mWordProperty; in dumpAllWordsForDebug() local
712 if (wordProperty == null) { in dumpAllWordsForDebug()
716 Log.d(tag, wordProperty.toString()); in dumpAllWordsForDebug()
743 final WordProperty wordProperty = nextWordPropertyResult.mWordProperty; in getWordPropertiesForSyncing() local
744 if (wordProperty == null) { in getWordPropertiesForSyncing()
747 wordPropertyList.add(wordProperty); in getWordPropertiesForSyncing()
DBinaryDictionary.java424 public GetNextWordPropertyResult(final WordProperty wordProperty, final int nextToken) { in GetNextWordPropertyResult() argument
425 mWordProperty = wordProperty; in GetNextWordPropertyResult()
/packages/inputmethods/LatinIME/native/jni/
Dcom_android_inputmethod_latin_BinaryDictionary.cpp352 const WordProperty wordProperty = dictionary->getWordProperty( in latinime_BinaryDictionary_getWordProperty() local
354 JniDataUtils::outputWordProperty(env, wordProperty, outCodePoints, outFlags, outProbabilityInfo, in latinime_BinaryDictionary_getWordProperty()
572 const WordProperty wordProperty = dictionary->getWordProperty( in latinime_BinaryDictionary_migrateNative() local
588 &wordProperty.getUnigramProperty())) { in latinime_BinaryDictionary_migrateNative()
597 const WordProperty wordProperty = dictionary->getWordProperty( in latinime_BinaryDictionary_migrateNative() local
607 for (const NgramProperty &ngramProperty : wordProperty.getNgramProperties()) { in latinime_BinaryDictionary_migrateNative()
/packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/makedict/
DFusionDictionaryTest.java91 for (WordProperty wordProperty : dict) { in dumpDict()
92 System.out.println("Word " + dumpWord(wordProperty.mWord)); in dumpDict()