OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:bigram
(Results
1 - 4
of
4
) sorted by null
/packages/inputmethods/LatinIME/tools/makedict/src/com/android/inputmethod/latin/makedict/
XmlDictInputOutput.java
47
private static final String BIGRAM_TAG = "
bigram
";
66
private static final int
BIGRAM
= 4;
154
// In this version of the XML file, the
bigram
frequency is given as an int 0..XML_MAX
156
// In memory and in the binary dictionary the
bigram
frequency is 0..MEMORY_MAX
181
WeightedString
bigram
= new WeightedString(dst, freq / XML_TO_MEMORY_RATIO);
local
184
bigramList.add(
bigram
);
196
* SAX handler for a
bigram
XML file.
268
for (final WeightedString
bigram
: bigramList) {
269
if (!dict.hasWord(
bigram
.mWord)) continue;
270
dict.setBigram(firstWord,
bigram
.mWord, bigram.mFrequency)
[
all
...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
FusionDictionary.java
61
* This represents an "attribute", that is either a
bigram
or a shortcut.
143
* Adds a word to the
bigram
list. Updates the frequency if the word already
150
WeightedString
bigram
= getBigram(word);
local
151
if (
bigram
!= null) {
152
bigram
.mFrequency = frequency;
154
bigram
= new WeightedString(word, frequency);
155
mBigrams.add(
bigram
);
178
* Gets the
bigram
for the given word.
186
WeightedString
bigram
= mBigrams.get(i);
local
187
if (
bigram
.mWord.equals(word))
227
final WeightedString
bigram
=
bigram
s.get(i);
local
[
all
...]
BinaryDictInputOutput.java
96
*
bigram
address list is:
496
// extreme overhead at
bigram
lookup time (it would make the search function O(n) instead
556
for (WeightedString
bigram
: group.mBigrams) {
559
final int addressOfBigram = findAddressOfWord(dict,
bigram
.mWord);
727
throw new RuntimeException("0-sized
bigram
list must be null");
735
* Makes the flag value for a
bigram
.
738
* @param offset the offset of the
bigram
.
739
* @param bigramFrequency the frequency of the
bigram
, 0..255.
741
* @param word the second
bigram
, for debugging purposes
907
final WeightedString
bigram
=
bigram
Iterator.next();
local
[
all
...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
Suggest.java
62
// User history dictionary for the
bigram
map, internal to LatinIME
210
protected void addBigramToSuggestions(SuggestedWordInfo
bigram
) {
211
mSuggestions.add(
bigram
);
392
* Adds all
bigram
predictions for prevWord. Also checks the lower case version of prevWord if
441
if (dataType == Dictionary.
BIGRAM
) {
Completed in 665 milliseconds