Home
last modified time | relevance | path

Searched refs:MAX_PREV_WORD_COUNT_FOR_N_GRAM (Results 1 – 24 of 24) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dentry_counters.h32 explicit EntryCounts(const std::array<int, MAX_PREV_WORD_COUNT_FOR_N_GRAM + 1> &counters) in EntryCounts()
39 const std::array<int, MAX_PREV_WORD_COUNT_FOR_N_GRAM + 1> &getCountArray() const { in getCountArray()
48 const std::array<int, MAX_PREV_WORD_COUNT_FOR_N_GRAM + 1> mEntryCounts;
58 const std::array<int, MAX_PREV_WORD_COUNT_FOR_N_GRAM + 1> &counters) in MutableEntryCounters()
86 std::array<int, MAX_PREV_WORD_COUNT_FOR_N_GRAM + 1> mEntryCounters;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_policy.cpp292 WordIdArray<MAX_PREV_WORD_COUNT_FOR_N_GRAM> prevWordIdArray; in addNgramEntry()
353 WordIdArray<MAX_PREV_WORD_COUNT_FOR_N_GRAM> prevWordIdArray; in removeNgramEntry()
399 WordIdArray<MAX_PREV_WORD_COUNT_FOR_N_GRAM> prevWordIdArray; in updateEntriesForWordWithNgramContext()
516 int ngramPrevWordsCodePoints[MAX_PREV_WORD_COUNT_FOR_N_GRAM][MAX_WORD_LENGTH]; in getWordProperty()
517 int ngramPrevWordsCodePointCount[MAX_PREV_WORD_COUNT_FOR_N_GRAM]; in getWordProperty()
518 bool ngramPrevWordIsBeginningOfSentense[MAX_PREV_WORD_COUNT_FOR_N_GRAM]; in getWordProperty()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/property/
Dngram_context.h73 int mPrevWordCodePoints[MAX_PREV_WORD_COUNT_FOR_N_GRAM][MAX_WORD_LENGTH];
74 int mPrevWordCodePointCount[MAX_PREV_WORD_COUNT_FOR_N_GRAM];
75 bool mIsBeginningOfSentence[MAX_PREV_WORD_COUNT_FOR_N_GRAM];
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
Ddynamic_pt_updating_helper.cpp90 ASSERT(prevWordsPtNodePos.size() <= MAX_PREV_WORD_COUNT_FOR_N_GRAM); in addNgramEntry()
91 int prevWordTerminalIds[MAX_PREV_WORD_COUNT_FOR_N_GRAM]; in addNgramEntry()
107 ASSERT(prevWordsPtNodePos.size() <= MAX_PREV_WORD_COUNT_FOR_N_GRAM); in removeNgramEntry()
108 int prevWordTerminalIds[MAX_PREV_WORD_COUNT_FOR_N_GRAM]; in removeNgramEntry()
/packages/inputmethods/LatinIME/native/jni/src/utils/
Djni_data_utils.h104 int prevWordCodePoints[MAX_PREV_WORD_COUNT_FOR_N_GRAM][MAX_WORD_LENGTH]; in constructNgramContext()
105 int prevWordCodePointCount[MAX_PREV_WORD_COUNT_FOR_N_GRAM]; in constructNgramContext()
106 bool isBeginningOfSentence[MAX_PREV_WORD_COUNT_FOR_N_GRAM]; in constructNgramContext()
Dngram_utils.h51 if (wordCount <= 0 || wordCount > MAX_PREV_WORD_COUNT_FOR_N_GRAM + 1) { in getNgramTypeFromWordCount()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Dlanguage_model_dict_content.cpp45 int bitmapEntryIndices[MAX_PREV_WORD_COUNT_FOR_N_GRAM + 1]; in getWordAttributes()
201 for (int prevWordCount = 0; prevWordCount <= MAX_PREV_WORD_COUNT_FOR_N_GRAM; ++prevWordCount) { in truncateEntries()
334 if (prevWordCount > MAX_PREV_WORD_COUNT_FOR_N_GRAM) { in updateAllProbabilityEntriesForGCInner()
336 prevWordCount, MAX_PREV_WORD_COUNT_FOR_N_GRAM); in updateAllProbabilityEntriesForGCInner()
Ddynamic_language_model_probability_utils.h69 static_assert(MAX_PREV_WORD_COUNT_FOR_N_GRAM <= 3, "Max supported Ngram is Quadgram.");
Dlanguage_model_dict_content.h225 int mPrevWordIds[MAX_PREV_WORD_COUNT_FOR_N_GRAM + 1];
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DDicTraverseSession.java34 new int[DecoderSpecificConstants.MAX_PREV_WORD_COUNT_FOR_N_GRAM][];
36 new boolean[DecoderSpecificConstants.MAX_PREV_WORD_COUNT_FOR_N_GRAM];
DContactsBinaryDictionary.java136 BinaryDictionary.MAX_PREV_WORD_COUNT_FOR_N_GRAM); in addNameLocked()
DNgramContext.java113 this(DecoderSpecificConstants.MAX_PREV_WORD_COUNT_FOR_N_GRAM, prevWordsInfo); in NgramContext()
DBinaryDictionary.java61 public static final int MAX_PREV_WORD_COUNT_FOR_N_GRAM = 3; field in BinaryDictionary
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DWordInputEventForPersonalization.java40 new int[DecoderSpecificConstants.MAX_PREV_WORD_COUNT_FOR_N_GRAM][];
42 new boolean[DecoderSpecificConstants.MAX_PREV_WORD_COUNT_FOR_N_GRAM];
DNgramContextUtils.java68 new WordInfo[DecoderSpecificConstants.MAX_PREV_WORD_COUNT_FOR_N_GRAM]; in getNgramContextFromNthPreviousWord()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/
Ddictionary.cpp94 WordIdArray<MAX_PREV_WORD_COUNT_FOR_N_GRAM> prevWordIdArray; in getPredictions()
122 WordIdArray<MAX_PREV_WORD_COUNT_FOR_N_GRAM> prevWordIdArray; in getNgramProbability()
Ddictionary_utils.cpp38 WordIdArray<MAX_PREV_WORD_COUNT_FOR_N_GRAM> prevWordIdArray; in getMaxProbabilityOfExactMatches()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_policy.cpp367 WordIdArray<MAX_PREV_WORD_COUNT_FOR_N_GRAM> prevWordIdArray; in addNgramEntry()
427 WordIdArray<MAX_PREV_WORD_COUNT_FOR_N_GRAM> prevWordIdArray; in removeNgramEntry()
/packages/inputmethods/LatinIME/java-overridable/src/com/android/inputmethod/latin/define/
DDecoderSpecificConstants.java29 public static final int MAX_PREV_WORD_COUNT_FOR_N_GRAM = 3; field in DecoderSpecificConstants
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/internal/
Ddic_node_properties.h127 WordIdArray<MAX_PREV_WORD_COUNT_FOR_N_GRAM> mPrevWordIds;
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/personalization/
DUserHistoryDictionaryTestsHelper.java103 BinaryDictionary.MAX_PREV_WORD_COUNT_FOR_N_GRAM); in addWordsToDictionary()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/session/
Ddic_traverse_session.h169 WordIdArray<MAX_PREV_WORD_COUNT_FOR_N_GRAM> mPrevWordIdArray;
/packages/inputmethods/LatinIME/native/jni/src/
Ddefines.h278 #define MAX_PREV_WORD_COUNT_FOR_N_GRAM 3 macro
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/
Ddic_node.h118 WordIdArray<MAX_PREV_WORD_COUNT_FOR_N_GRAM> newPrevWordIds; in initAsRootWithPreviousWord()