OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:probabilityEntry
(Results
1 - 13
of
13
) sorted by null
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/content/
probability_entry.h
35
class
ProbabilityEntry
{
37
ProbabilityEntry
(const
ProbabilityEntry
&
probabilityEntry
)
38
: mFlags(
probabilityEntry
.mFlags), mProbability(
probabilityEntry
.mProbability),
39
mHistoricalInfo(
probabilityEntry
.mHistoricalInfo) {}
42
ProbabilityEntry
()
46
ProbabilityEntry
(const int flags, const int probability)
50
ProbabilityEntry
(const int flags, const int probability
[
all
...]
probability_dict_content.h
37
class
ProbabilityEntry
;
50
const
ProbabilityEntry
getProbabilityEntry(const int terminalId) const;
52
bool setProbabilityEntry(const int terminalId, const
ProbabilityEntry
*const
probabilityEntry
);
66
bool writeEntry(const
ProbabilityEntry
*const
probabilityEntry
, const int entryPos);
probability_dict_content.cpp
35
const
ProbabilityEntry
ProbabilityDictContent::getProbabilityEntry(const int terminalId) const {
38
return
ProbabilityEntry
(0 /* flags */, NOT_A_PROBABILITY);
55
return
ProbabilityEntry
(flags, probability, &historicalInfo);
57
return
ProbabilityEntry
(flags, probability);
62
const
ProbabilityEntry
*const
probabilityEntry
) {
68
ProbabilityEntry
dummyEntry;
81
return writeEntry(
probabilityEntry
, entryPos);
88
const
ProbabilityEntry
probabilityEntry
= getProbabilityEntry(i)
[
all
...]
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/structure/v4/content/
language_model_dict_content_test.cpp
35
const
ProbabilityEntry
probabilityEntry
(flag, probability);
36
languageModelDictContent.setProbabilityEntry(wordId, &
probabilityEntry
);
37
const
ProbabilityEntry
entry =
46
EXPECT_TRUE(languageModelDictContent.setProbabilityEntry(wordId, &
probabilityEntry
));
58
const
ProbabilityEntry
probabilityEntry
(flag, &historicalInfo);
59
languageModelDictContent.setProbabilityEntry(wordId, &
probabilityEntry
);
60
const
ProbabilityEntry
entry = languageModelDictContent.getProbabilityEntry(wordId);
69
EXPECT_TRUE(languageModelDictContent.setProbabilityEntry(wordId, &
probabilityEntry
));
[
all
...]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
ver4_patricia_trie_node_reader.cpp
74
const
ProbabilityEntry
probabilityEntry
=
76
if (
probabilityEntry
.hasHistoricalInfo()) {
78
probabilityEntry
.getHistoricalInfo(), mHeaderPolicy);
80
probability =
probabilityEntry
.getProbability();
ver4_patricia_trie_writing_helper.cpp
215
const
ProbabilityEntry
probabilityEntry
=
217
const int probability =
probabilityEntry
.hasHistoricalInfo() ?
219
probabilityEntry
.getHistoricalInfo(), mBuffers->getHeaderPolicy()) :
220
probabilityEntry
.getProbability();
222
probabilityEntry
.getHistoricalInfo()->getTimestamp()));
ver4_patricia_trie_node_writer.cpp
154
const
ProbabilityEntry
originalProbabilityEntry =
157
const
ProbabilityEntry
probabilityEntry
= createUpdatedEntryFrom(&originalProbabilityEntry,
160
toBeUpdatedPtNodeParams->getTerminalId(), &
probabilityEntry
);
169
const
ProbabilityEntry
originalProbabilityEntry =
175
const
ProbabilityEntry
probabilityEntry
=
178
toBeUpdatedPtNodeParams->getTerminalId(), &
probabilityEntry
)) {
227
ProbabilityEntry
newProbabilityEntry;
228
const
ProbabilityEntry
probabilityEntryToWrite = createUpdatedEntryFrom
[
all
...]
ver4_patricia_trie_policy.cpp
558
const
ProbabilityEntry
probabilityEntry
=
561
const HistoricalInfo *const historicalInfo =
probabilityEntry
.getHistoricalInfo();
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
language_model_dict_content.cpp
58
const
ProbabilityEntry
unigramProbabilityEntry = getProbabilityEntry(wordId);
71
const
ProbabilityEntry
probabilityEntry
=
72
ProbabilityEntry
::decode(result.mValue, mHasHistoricalInfo);
75
const HistoricalInfo *const historicalInfo =
probabilityEntry
.getHistoricalInfo();
81
const
ProbabilityEntry
prevWordProbabilityEntry = getNgramProbabilityEntry(
105
probability =
probabilityEntry
.getProbability();
108
//
probabilityEntry
.
117
ProbabilityEntry
LanguageModelDictContent::getNgramProbabilityEntry(
121
return
ProbabilityEntry
();
[
all
...]
language_model_dict_content.h
48
WordIdAndProbabilityEntry(const int wordId, const
ProbabilityEntry
&
probabilityEntry
)
49
: mWordId(wordId), mProbabilityEntry(
probabilityEntry
) {}
52
const
ProbabilityEntry
getProbabilityEntry() const { return mProbabilityEntry; }
59
const
ProbabilityEntry
mProbabilityEntry;
72
result.key(),
ProbabilityEntry
::decode(result.value(), mHasHistoricalInfo));
117
const WordAttributes &wordAttributes, const
ProbabilityEntry
&
probabilityEntry
)
119
mWordAttributes(wordAttributes), mProbabilityEntry(
probabilityEntry
) {}
124
const
ProbabilityEntry
&getProbabilityEntry() const { return mProbabilityEntry;
[
all
...]
probability_entry.h
31
class
ProbabilityEntry
{
33
ProbabilityEntry
(const
ProbabilityEntry
&
probabilityEntry
)
34
: mFlags(
probabilityEntry
.mFlags), mProbability(
probabilityEntry
.mProbability),
35
mHistoricalInfo(
probabilityEntry
.mHistoricalInfo) {}
38
ProbabilityEntry
()
43
ProbabilityEntry
(const int flags, const int probability)
47
ProbabilityEntry
(const int flags, const HistoricalInfo *const historicalInfo
[
all
...]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
ver4_patricia_trie_policy.cpp
146
const
ProbabilityEntry
&
probabilityEntry
= entry.getProbabilityEntry();
147
if (!
probabilityEntry
.isValid()) {
151
if (
probabilityEntry
.hasHistoricalInfo()) {
155
probability =
probabilityEntry
.getHistoricalInfo()->getCount() <= 1 ?
158
probability =
probabilityEntry
.getProbability();
536
const
ProbabilityEntry
ngramProbabilityEntry = entry.getProbabilityEntry();
563
const
ProbabilityEntry
probabilityEntry
= languageModelDictContent->getProbabilityEntry(wordId);
564
const HistoricalInfo *const historicalInfo =
probabilityEntry
.getHistoricalInfo()
[
all
...]
ver4_patricia_trie_node_writer.cpp
145
const
ProbabilityEntry
probabilityEntryOfUnigramProperty =
ProbabilityEntry
(unigramProperty);
156
const
ProbabilityEntry
originalProbabilityEntry =
199
ProbabilityEntry
newProbabilityEntry;
200
const
ProbabilityEntry
probabilityEntryOfUnigramProperty =
ProbabilityEntry
(unigramProperty);
210
const
ProbabilityEntry
probabilityEntry
=
212
const
ProbabilityEntry
probabilityEntryOfNgramProperty(ngramProperty);
219
if (!
probabilityEntry
.isValid() && outAddedNewBigram)
[
all
...]
Completed in 119 milliseconds