HomeSort by relevance Sort by last modified time
    Searched refs:WordProperty (Results 1 - 25 of 28) sorted by null

1 2

  /packages/inputmethods/LatinIME/native/dicttoolkit/src/offdevice_intermediate_dict/
offdevice_intermediate_dict_pt_node.h 39 const WordProperty &wordProperty)
41 mWortProperty(new WordProperty(wordProperty)) {}
48 mWortProperty(new WordProperty(*ptNode.mWortProperty)) {}
50 // Replacing WordProperty.
51 OffdeviceIntermediateDictPtNode(const WordProperty &wordProperty,
55 mWortProperty(new WordProperty(wordProperty)) {}
    [all...]
offdevice_intermediate_dict.h 37 bool addWord(const WordProperty &wordProperty);
39 const WordProperty *getWordProperty(const CodePointArrayView codePoints) const;
48 bool addWordInner(const CodePointArrayView codePoints, const WordProperty &wordProperty,
offdevice_intermediate_dict.cpp 24 bool OffdeviceIntermediateDict::addWord(const WordProperty &wordProperty) {
25 const CodePointArrayView codePoints = wordProperty.getCodePoints();
29 return addWordInner(codePoints, wordProperty, mRootPtNodeArray);
33 const WordProperty &wordProperty, OffdeviceIntermediateDictPtNodeArray &ptNodeArray) {
49 return addWordInner(codePoints.skip(i), wordProperty,
63 std::make_shared<OffdeviceIntermediateDictPtNode>(wordProperty, *ptNode));
70 ? std::make_shared<OffdeviceIntermediateDictPtNode>(codePoints, wordProperty)
82 return addWordInner(codePoints.skip(i), wordProperty, childrenPtNodeArray)
    [all...]
  /packages/inputmethods/LatinIME/native/jni/src/dictionary/property/
word_property.h 30 class WordProperty {
33 WordProperty()
36 WordProperty(const std::vector<int> &&codePoints, const UnigramProperty &unigramProperty,
55 DISALLOW_ASSIGNMENT_OPERATOR(WordProperty);
  /packages/inputmethods/LatinIME/native/dicttoolkit/tests/offdevice_intermediate_dict/
offdevice_intermediate_dict_test.cpp 39 const WordProperty getDummpWordProperty(const std::vector<int> &&codePoints) {
40 return WordProperty(std::move(codePoints), UnigramProperty(), std::vector<NgramProperty>());
48 const WordProperty wordProperty0 = getDummpWordProperty(getCodePointVector("abcd"));
52 const WordProperty wordProperty1 = getDummpWordProperty(getCodePointVector("efgh"));
56 const WordProperty wordProperty2 = getDummpWordProperty(getCodePointVector("ab"));
60 const WordProperty wordProperty3 = getDummpWordProperty(getCodePointVector("abcdefg"));
64 const WordProperty wordProperty4 = getDummpWordProperty(getCodePointVector("efef"));
68 const WordProperty wordProperty5 = getDummpWordProperty(getCodePointVector("ef"));
72 const WordProperty wordProperty6 = getDummpWordProperty(getCodePointVector("abcd"));
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
Ver4DictDecoder.java 68 final ArrayList<WordProperty> wordProperties = new ArrayList<>();
72 final WordProperty wordProperty = result.mWordProperty;
73 if (wordProperty == null) {
80 wordProperties.add(wordProperty);
85 for (final WordProperty wordProperty : wordProperties) {
86 fusionDict.add(wordProperty.mWord, wordProperty.mProbabilityInfo,
87 wordProperty.mIsNotAWord
    [all...]
FusionDictionary.java 33 public final class FusionDictionary implements Iterable<WordProperty> {
570 public static final class DictionaryIterator implements Iterator<WordProperty> {
600 public WordProperty next() {
617 return new WordProperty(mCurrentString.toString(),
643 public Iterator<WordProperty> iterator() {
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
WordProperty.java 37 public final class WordProperty implements Comparable<WordProperty> {
51 public WordProperty(final String word, final ProbabilityInfo probabilityInfo,
81 public WordProperty(final int[] codePoints, final boolean isNotAWord,
136 private static int computeHashCode(WordProperty word) {
153 public int compareTo(final WordProperty w) {
168 if (!(o instanceof WordProperty)) return false;
169 WordProperty w = (WordProperty)o;
  /packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/makedict/
FusionDictionaryTest.java 23 import com.android.inputmethod.latin.makedict.WordProperty;
91 for (WordProperty wordProperty : dict) {
92 System.out.println("Word " + dumpWord(wordProperty.mWord));
  /packages/inputmethods/LatinIME/native/jni/src/dictionary/interface/
dictionary_structure_with_buffer_policy.h 107 virtual const WordProperty getWordProperty(const CodePointArrayView wordCodePoints) const = 0;
  /packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
CombinedInputOutput.java 25 import com.android.inputmethod.latin.makedict.WordProperty;
221 final TreeSet<WordProperty> wordPropertiesInDict = new TreeSet<>();
222 for (final WordProperty wordProperty : dict) {
224 wordPropertiesInDict.add(wordProperty);
227 for (final WordProperty wordProperty : wordPropertiesInDict) {
228 destination.write(CombinedFormatUtils.formatWordProperty(wordProperty));
Info.java 23 import com.android.inputmethod.latin.makedict.WordProperty;
46 for (final WordProperty wordProperty : dict) {
48 if (wordProperty.mHasNgrams) {
49 bigramCount += wordProperty.mNgrams.size();
51 if (null != wordProperty.mShortcutTargets) {
52 shortcutCount += wordProperty.mShortcutTargets.size();
53 for (WeightedString shortcutTarget : wordProperty.mShortcutTargets) {
Diff.java 22 import com.android.inputmethod.latin.makedict.WordProperty;
110 for (final WordProperty word0Property : dict0) {
144 for (final WordProperty word1Property : dict1) {
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
ExpandableBinaryDictionary.java 30 import com.android.inputmethod.latin.makedict.WordProperty;
78 private static final WordProperty[] DEFAULT_WORD_PROPERTIES_FOR_SYNC =
79 new WordProperty[0] /* default */;
711 final WordProperty wordProperty = result.mWordProperty;
712 if (wordProperty == null) {
716 Log.d(tag, wordProperty.toString());
726 public WordProperty[] getWordPropertiesForSyncing() {
728 final AsyncResultHolder<WordProperty[]> result =
733 final ArrayList<WordProperty> wordPropertyList = new ArrayList<>()
    [all...]
BinaryDictionary.java 34 import com.android.inputmethod.latin.makedict.WordProperty;
391 public WordProperty getWordProperty(final String word, final boolean isBeginningOfSentence) {
411 return new WordProperty(codePoints,
421 public WordProperty mWordProperty;
424 public GetNextWordPropertyResult(final WordProperty wordProperty, final int nextToken) {
425 mWordProperty = wordProperty;
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
CombinedFormatUtils.java 22 import com.android.inputmethod.latin.makedict.WordProperty;
57 public static String formatWordProperty(final WordProperty wordProperty) {
59 builder.append(" " + WORD_TAG + "=" + wordProperty.mWord);
61 builder.append(formatProbabilityInfo(wordProperty.mProbabilityInfo));
62 if (wordProperty.mIsBeginningOfSentence) {
65 if (wordProperty.mIsNotAWord) {
68 if (wordProperty.mIsPossiblyOffensive) {
72 if (wordProperty.mHasNgrams) {
73 for (final NgramProperty ngramProperty : wordProperty.mNgrams)
    [all...]
  /packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/
dictionary.h 107 const WordProperty getWordProperty(const CodePointArrayView codePoints);
  /packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
ver4_patricia_trie_policy.h 133 const WordProperty getWordProperty(const CodePointArrayView wordCodePoints) const;
ver4_patricia_trie_policy.cpp 549 const WordProperty Ver4PatriciaTriePolicy::getWordProperty(
555 return WordProperty();
620 return WordProperty(wordCodePoints.toVector(), unigramProperty, ngrams);
  /packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/
patricia_trie_policy.h 144 const WordProperty getWordProperty(const CodePointArrayView wordCodePoints) const;
patricia_trie_policy.cpp 426 const WordProperty PatriciaTriePolicy::getWordProperty(
431 return WordProperty();
481 return WordProperty(wordCodePoints.toVector(), unigramProperty, ngrams);
  /packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
ver4_patricia_trie_policy.h 112 const WordProperty getWordProperty(const CodePointArrayView wordCodePoints) const;
  /packages/inputmethods/LatinIME/native/jni/src/utils/
jni_data_utils.cpp 27 const WordProperty &wordProperty, jintArray outCodePoints, jbooleanArray outFlags,
32 const CodePointArrayView codePoints = wordProperty.getCodePoints();
36 const UnigramProperty &unigramProperty = wordProperty.getUnigramProperty();
37 const std::vector<NgramProperty> &ngrams = wordProperty.getNgramProperties();
jni_data_utils.h 144 static void outputWordProperty(JNIEnv *const env, const WordProperty &wordProperty,
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
BinaryDictionaryTests.java 30 import com.android.inputmethod.latin.makedict.WordProperty;
    [all...]

Completed in 570 milliseconds

1 2