OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:MAX_PREV_WORD_COUNT_FOR_N_GRAM
(Results
1 - 23
of
23
) sorted by null
/packages/inputmethods/LatinIME/java-overridable/src/com/android/inputmethod/latin/define/
DecoderSpecificConstants.java
27
// (
MAX_PREV_WORD_COUNT_FOR_N_GRAM
+ 1)-gram is supported in Java side. Needs to modify
28
//
MAX_PREV_WORD_COUNT_FOR_N_GRAM
in native/jni/src/defines.h for suggestions.
29
public static final int
MAX_PREV_WORD_COUNT_FOR_N_GRAM
= 3;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
entry_counters.h
32
explicit EntryCounts(const std::array<int,
MAX_PREV_WORD_COUNT_FOR_N_GRAM
+ 1> &counters)
39
const std::array<int,
MAX_PREV_WORD_COUNT_FOR_N_GRAM
+ 1> &getCountArray() const {
46
// Counts from Unigram (0-th element) to (
MAX_PREV_WORD_COUNT_FOR_N_GRAM
+ 1)-gram
47
// (
MAX_PREV_WORD_COUNT_FOR_N_GRAM
-th element)
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)
84
// Counters from Unigram (0-th element) to (
MAX_PREV_WORD_COUNT_FOR_N_GRAM
+ 1)-gram
85
// (
MAX_PREV_WORD_COUNT_FOR_N_GRAM
-th element)
86
std::array<int,
MAX_PREV_WORD_COUNT_FOR_N_GRAM
+ 1> mEntryCounters;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/property/
ngram_context.h
73
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/utils/
ngram_utils.h
50
// Max supported ngram is (
MAX_PREV_WORD_COUNT_FOR_N_GRAM
+ 1)-gram.
51
if (wordCount <= 0 || wordCount >
MAX_PREV_WORD_COUNT_FOR_N_GRAM
+ 1) {
jni_data_utils.h
104
int prevWordCodePoints[
MAX_PREV_WORD_COUNT_FOR_N_GRAM
][MAX_WORD_LENGTH];
105
int prevWordCodePointCount[
MAX_PREV_WORD_COUNT_FOR_N_GRAM
];
106
bool isBeginningOfSentence[
MAX_PREV_WORD_COUNT_FOR_N_GRAM
];
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DicTraverseSession.java
34
new int[DecoderSpecificConstants.
MAX_PREV_WORD_COUNT_FOR_N_GRAM
][];
36
new boolean[DecoderSpecificConstants.
MAX_PREV_WORD_COUNT_FOR_N_GRAM
];
ContactsBinaryDictionary.java
136
BinaryDictionary.
MAX_PREV_WORD_COUNT_FOR_N_GRAM
);
NgramContext.java
113
this(DecoderSpecificConstants.
MAX_PREV_WORD_COUNT_FOR_N_GRAM
, prevWordsInfo);
BinaryDictionary.java
61
public static final int
MAX_PREV_WORD_COUNT_FOR_N_GRAM
= 3;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
dynamic_language_model_probability_utils.h
69
static_assert(
MAX_PREV_WORD_COUNT_FOR_N_GRAM
<= 3, "Max supported Ngram is Quadgram.");
language_model_dict_content.cpp
45
int bitmapEntryIndices[
MAX_PREV_WORD_COUNT_FOR_N_GRAM
+ 1];
201
for (int prevWordCount = 0; prevWordCount <=
MAX_PREV_WORD_COUNT_FOR_N_GRAM
; ++prevWordCount) {
334
if (prevWordCount >
MAX_PREV_WORD_COUNT_FOR_N_GRAM
) {
335
AKLOGE("Invalid prevWordCount. prevWordCount: %d,
MAX_PREV_WORD_COUNT_FOR_N_GRAM
: %d.",
336
prevWordCount,
MAX_PREV_WORD_COUNT_FOR_N_GRAM
);
language_model_dict_content.h
225
int mPrevWordIds[
MAX_PREV_WORD_COUNT_FOR_N_GRAM
+ 1];
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
WordInputEventForPersonalization.java
40
new int[DecoderSpecificConstants.
MAX_PREV_WORD_COUNT_FOR_N_GRAM
][];
42
new boolean[DecoderSpecificConstants.
MAX_PREV_WORD_COUNT_FOR_N_GRAM
];
NgramContextUtils.java
41
// Example (when Constants.
MAX_PREV_WORD_COUNT_FOR_N_GRAM
is 2):
68
new WordInfo[DecoderSpecificConstants.
MAX_PREV_WORD_COUNT_FOR_N_GRAM
];
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
dynamic_pt_updating_helper.cpp
90
ASSERT(prevWordsPtNodePos.size() <=
MAX_PREV_WORD_COUNT_FOR_N_GRAM
);
91
int prevWordTerminalIds[
MAX_PREV_WORD_COUNT_FOR_N_GRAM
];
107
ASSERT(prevWordsPtNodePos.size() <=
MAX_PREV_WORD_COUNT_FOR_N_GRAM
);
108
int prevWordTerminalIds[
MAX_PREV_WORD_COUNT_FOR_N_GRAM
];
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/internal/
dic_node_properties.h
127
WordIdArray<
MAX_PREV_WORD_COUNT_FOR_N_GRAM
> mPrevWordIds;
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/
dictionary_utils.cpp
38
WordIdArray<
MAX_PREV_WORD_COUNT_FOR_N_GRAM
> prevWordIdArray;
dictionary.cpp
94
WordIdArray<
MAX_PREV_WORD_COUNT_FOR_N_GRAM
> prevWordIdArray;
122
WordIdArray<
MAX_PREV_WORD_COUNT_FOR_N_GRAM
> prevWordIdArray;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
ver4_patricia_trie_policy.cpp
292
WordIdArray<
MAX_PREV_WORD_COUNT_FOR_N_GRAM
> prevWordIdArray;
353
WordIdArray<
MAX_PREV_WORD_COUNT_FOR_N_GRAM
> prevWordIdArray;
399
WordIdArray<
MAX_PREV_WORD_COUNT_FOR_N_GRAM
> prevWordIdArray;
516
int ngramPrevWordsCodePoints[
MAX_PREV_WORD_COUNT_FOR_N_GRAM
][MAX_WORD_LENGTH];
517
int ngramPrevWordsCodePointCount[
MAX_PREV_WORD_COUNT_FOR_N_GRAM
];
518
bool ngramPrevWordIsBeginningOfSentense[
MAX_PREV_WORD_COUNT_FOR_N_GRAM
];
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/session/
dic_traverse_session.h
169
WordIdArray<
MAX_PREV_WORD_COUNT_FOR_N_GRAM
> mPrevWordIdArray;
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/personalization/
UserHistoryDictionaryTestsHelper.java
103
BinaryDictionary.
MAX_PREV_WORD_COUNT_FOR_N_GRAM
);
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
ver4_patricia_trie_policy.cpp
367
WordIdArray<
MAX_PREV_WORD_COUNT_FOR_N_GRAM
> prevWordIdArray;
427
WordIdArray<
MAX_PREV_WORD_COUNT_FOR_N_GRAM
> prevWordIdArray;
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/
dic_node.h
118
WordIdArray<
MAX_PREV_WORD_COUNT_FOR_N_GRAM
> newPrevWordIds;
Completed in 737 milliseconds