OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:ngramType
(Results
1 - 5
of
5
) sorted by null
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
entry_counters.h
35
int getNgramCount(const
NgramType
ngramType
) const {
36
return mEntryCounts[static_cast<int>(
ngramType
)];
65
void incrementNgramCount(const
NgramType
ngramType
) {
66
++mEntryCounters[static_cast<int>(
ngramType
)];
69
void decrementNgramCount(const
NgramType
ngramType
) {
70
--mEntryCounters[static_cast<int>(
ngramType
)];
73
int getNgramCount(const
NgramType
ngramType) const
[
all
...]
forgetting_curve_utils.cpp
130
for (const auto
ngramType
: AllNgramTypes::ASCENDING) {
131
if (entryCounts.getNgramCount(
ngramType
)
132
>= getEntryCountHardLimit(maxNgramCounts.getNgramCount(
ngramType
))) {
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
dynamic_language_model_probability_utils.h
32
const
NgramType
ngramType
) {
33
const int minCount = ASSUMED_MIN_COUNTS[static_cast<int>(
ngramType
)];
37
static float backoff(const int ngramProbability, const
NgramType
ngramType
) {
39
ngramProbability + ENCODED_BACKOFF_WEIGHTS[static_cast<int>(
ngramType
)];
language_model_dict_content.cpp
93
const
NgramType
ngramType
= NgramUtils::getNgramTypeFromWordCount(i + 1);
96
historicalInfo->getCount(), contextCount,
ngramType
);
103
decayedProbability,
ngramType
);
203
const
NgramType
ngramType
= NgramUtils::getNgramTypeFromWordCount(totalWordCount);
204
if (currentEntryCounts.getNgramCount(
ngramType
)
205
<= maxEntryCounts.getNgramCount(
ngramType
)) {
206
outEntryCounters->setNgramCount(
ngramType
,
207
currentEntryCounts.getNgramCount(
ngramType
));
[
all
...]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/header/
header_policy.cpp
128
int getIndexFromNgramType(const
NgramType
ngramType
) {
129
return static_cast<int>(
ngramType
);
137
for (const auto
ngramType
: AllNgramTypes::ASCENDING) {
139
NGRAM_COUNT_KEYS[getIndexFromNgramType(
ngramType
)],
140
entryCounts.getNgramCount(
ngramType
));
164
for (const auto
ngramType
: AllNgramTypes::ASCENDING) {
166
NGRAM_COUNT_KEYS[getIndexFromNgramType(
ngramType
)], 0 /* defaultValue */);
167
entryCounters.setNgramCount(
ngramType
, entryCount);
174
for (const auto
ngramType
: AllNgramTypes::ASCENDING)
[
all
...]
Completed in 47 milliseconds