OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:bigramprobability
(Results
1 - 10
of
10
) sorted by null
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
BinaryDictionaryTests.java
265
final int
bigramProbability
= 150;
270
addBigramWords(binaryDictionary, "aaa", "abb",
bigramProbability
);
271
addBigramWords(binaryDictionary, "aaa", "bcc",
bigramProbability
);
272
addBigramWords(binaryDictionary, "abb", "aaa",
bigramProbability
);
273
addBigramWords(binaryDictionary, "abb", "bcc",
bigramProbability
);
279
assertEquals(
bigramProbability
, getBigramProbability(binaryDictionary, "aaa", "abb"));
280
assertEquals(
bigramProbability
, getBigramProbability(binaryDictionary, "aaa", "bcc"));
281
assertEquals(
bigramProbability
, getBigramProbability(binaryDictionary, "abb", "aaa"));
282
assertEquals(
bigramProbability
, getBigramProbability(binaryDictionary, "abb", "bcc"));
301
addBigramWords(binaryDictionary, "abcde", "fghij",
bigramProbability
);
[
all
...]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
multi_bigram_map.cpp
66
int
bigramProbability
= NOT_A_PROBABILITY;
70
bigramProbability
= bigramProbabilityIt->second;
73
return structurePolicy->getProbability(unigramProbability,
bigramProbability
);
93
const int
bigramProbability
= structurePolicy->getProbabilityOfWord(prevWordIds, nextWordId);
94
if (
bigramProbability
!= NOT_A_PROBABILITY) {
95
return
bigramProbability
;
probability_utils.h
41
const int unigramProbability, const int
bigramProbability
) {
50
+ static_cast<int>(static_cast<float>(
bigramProbability
+ 1) * stepSize);
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/structure/v4/content/
language_model_dict_content_test.cpp
96
const int
bigramProbability
= 20;
104
const ProbabilityEntry bigramProbabilityEntry(flag,
bigramProbability
);
108
EXPECT_EQ(
bigramProbability
, languageModelDictContent.getWordAttributes(prevWordIds, wordId,
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
ver4_patricia_trie_policy.cpp
148
const int
bigramProbability
) const {
149
// In the v4 format,
bigramProbability
is a conditional probability.
150
const int bigramConditionalProbability =
bigramProbability
;
222
const bool isInBeginningOfSentenceContext, const int
bigramProbability
) const {
225
return
bigramProbability
;
228
return std::min(MAX_PROBABILITY - prevWordUnigramProbability +
bigramProbability
,
231
//
bigramProbability
is a conditional probability.
232
return
bigramProbability
;
ver4_patricia_trie_policy.h
97
int getProbability(const int unigramProbability, const int
bigramProbability
) const;
176
const bool isInBeginningOfSentenceContext, const int
bigramProbability
) const;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/interface/
dictionary_structure_with_buffer_policy.h
64
virtual int getProbability(const int unigramProbability, const int
bigramProbability
) const = 0;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
ver4_patricia_trie_policy.h
73
int getProbability(const int unigramProbability, const int
bigramProbability
) const {
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/
patricia_trie_policy.cpp
308
const int
bigramProbability
= getProbabilityOfWord(prevWordIds, wordId);
309
if (
bigramProbability
!= NOT_A_PROBABILITY) {
310
return getWordAttributes(
bigramProbability
, ptNodeParams);
324
const int
bigramProbability
) const {
331
} else if (
bigramProbability
== NOT_A_PROBABILITY) {
335
bigramProbability
);
patricia_trie_policy.h
70
int getProbability(const int unigramProbability, const int
bigramProbability
) const;
Completed in 202 milliseconds