/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/sbcs/ |
NGramList.java | 27 public static final class NGram implements Comparable 32 public NGram(String theValue, int theRefCount) 38 public NGram(String theValue) 43 public NGram(NGram other) 66 NGram ng = (NGram) o; 96 public NGram get(Object mappedKey) 98 return (NGram) ngrams.get(mappedKey); 101 public NGram get(String key 111 NGram ngram = get(mappedKey); local [all...] |
Checker.java | 57 NGramList.NGram ngram = ngrams.get(key); local 61 if (ngram != null) { 63 //ngram.incrementRefCount();
|
StatisticsTool.java | 169 NGramList.NGram ngram = (NGramList.NGram) it.next(); local 170 String value = ngram.getValue(); 171 int refCount = ngram.getRefCount(); 218 Integer ngram = (Integer) it.next(); local 224 output.print("0x" + Utility.hex(ngram.intValue(), 6) + ", ");
|
/external/skia/tools/lua/ |
ngrams.lua | 52 local ngram = table.concat(ngramsInFile[i], " ") 53 if counts[ngram] == nil then 54 counts[ngram] = 1 56 counts[ngram] = counts[ngram] + 1 62 for ngram, count in pairs(counts) do 63 io.write("if counts['", ngram, "'] == nil then counts['", ngram, "'] = ", count, " else counts['", ngram, "'] = counts['", ngram, "'] + ", count, " end\n" [all...] |
ngrams_aggregate.lua | 9 for ngram, count in pairs(counts) do 10 table.insert(countArray, {count, ngram})
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/interface/ |
ngram_listener.h | 25 * Interface to iterate ngram entries.
|
/packages/inputmethods/LatinIME/native/jni/src/utils/ |
ngram_utils.h | 50 // Max supported ngram is (MAX_PREV_WORD_COUNT_FOR_N_GRAM + 1)-gram.
|
/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.");
|
probability_entry.h | 58 // Create from ngram property.
|
language_model_dict_content.cpp | 88 // BoS ngram requires multiple contextCount. 164 // The word doesn't have any related ngram entries.
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/ |
WordProperty.java | 124 for (final NgramProperty ngram : mNgrams) { 125 if (ngram.mNgramContext.getPrevWordCount() == 1) { 126 bigrams.add(ngram.mTargetWord);
|
/external/harfbuzz_ng/test/shaping/ |
hb_test_tools.py | 226 gens = tuple (Ngram.generator (n) for n in ns) 234 for ngram in gen (test.unicodes): 235 if ngram not in allgrams: 236 allgrams[ngram] = Stats () 237 allgrams[ngram].add (test) 240 for ngram, stats in allgrams.iteritems (): 242 importantgrams[ngram] = stats 246 for ngram, stats in allgrams.iteritems (): 247 print ("zscore: %9f failed: %6d passed: %6d ngram: <%s>" % (stats.zscore (allstats), stats.failed.count, stats.passed.count, ','.join ("U+%04X" % u for u in ngram))) [all...] |
/external/icu/icu4c/source/i18n/ |
csrsbcs.h | 22 int32_t ngram; member in class:NGramParser
|
csrsbcs.cpp | 23 : ngram(0), byteIndex(0) 90 ngram = ((ngram << 8) + b) & N_GRAM_MASK; 91 lookup(ngram); [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
CombinedFormatUtils.java | 29 public static final String NGRAM_TAG = "ngram";
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/ |
dictionary_utils.cpp | 36 // No ngram context.
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/ |
ver4_patricia_trie_node_writer.cpp | 205 // TODO: Support counting ngram entries. 215 AKLOGE("Cannot add new ngram entry. prevWordId[0]: %d, prevWordId.size(): %zd, wordId: %d",
|
ver4_patricia_trie_policy.cpp | 284 AKLOGE("Ngram context is not valid for adding n-gram entry to the dictionary."); 288 AKLOGE("The word is too long to insert the ngram to the dictionary. " 346 AKLOGE("Ngram context is not valid for removing n-gram entry form the dictionary."); 513 // Fetch ngram information.
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/ |
ver4_patricia_trie_policy.cpp | 359 AKLOGE("Ngram context is not valid for adding n-gram entry to the dictionary."); 363 AKLOGE("The word is too long to insert the ngram to the dictionary. " 420 AKLOGE("Ngram context is not valid for removing n-gram entry form the dictionary.");
|
/packages/inputmethods/LatinIME/native/jni/ |
com_android_inputmethod_latin_BinaryDictionary.cpp | 411 // Use 1 for count to indicate the ngram has inputted. 609 LogUtils::logToJava(env, "Cannot add ngram to the new dict."); [all...] |
/frameworks/av/media/libmedia/ |
CharacterEncodingDetector.cpp | 104 // separate tags by space so ICU's ngram detector can do its job
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
BinaryDictionaryTests.java | [all...] |
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
CharsetRecog_sbcs.java | 29 private int ngram = 0; field in class:CharsetRecog_sbcs.NGramParser 44 ngram = 0; 103 ngram = ((ngram << 8) + (b & 0xFF)) & N_GRAM_MASK; 104 lookup(ngram); [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
CharsetRecog_sbcs.java | 28 private int ngram = 0; field in class:CharsetRecog_sbcs.NGramParser 43 ngram = 0; 102 ngram = ((ngram << 8) + (b & 0xFF)) & N_GRAM_MASK; 103 lookup(ngram); [all...] |