Home
last modified time | relevance | path

Searched refs:ngram (Results 1 – 12 of 12) sorted by relevance

/external/skqp/tools/lua/
Dngrams.lua52 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['",…
Dngrams_aggregate.lua9 for ngram, count in pairs(counts) do
10 table.insert(countArray, {count, ngram})
/external/skia/tools/lua/
Dngrams.lua52 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['",…
Dngrams_aggregate.lua9 for ngram, count in pairs(counts) do
10 table.insert(countArray, {count, ngram})
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/sbcs/
DNGramList.java113 NGram ngram = get(mappedKey); in put() local
117 if (ngram == null) { in put()
121 ngram.incrementRefCount(); in put()
DStatisticsTool.java171 NGramList.NGram ngram = (NGramList.NGram) it.next(); in dumpNGrams() local
172 String value = ngram.getValue(); in dumpNGrams()
173 int refCount = ngram.getRefCount(); in dumpNGrams()
220 Integer ngram = (Integer) it.next(); in writeStatistics() local
226 output.print("0x" + Utility.hex(ngram.intValue(), 6) + ", "); in writeStatistics()
DChecker.java59 NGramList.NGram ngram = ngrams.get(key); in handleNGram() local
63 if (ngram != null) { in handleNGram()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCharsetRecog_sbcs.java31 private int ngram = 0; field in CharsetRecog_sbcs.NGramParser
46 ngram = 0; in NGramParser()
105 ngram = ((ngram << 8) + (b & 0xFF)) & N_GRAM_MASK; in addByte()
106 lookup(ngram); in addByte()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DCharsetRecog_sbcs.java32 private int ngram = 0; field in CharsetRecog_sbcs.NGramParser
47 ngram = 0; in NGramParser()
106 ngram = ((ngram << 8) + (b & 0xFF)) & N_GRAM_MASK; in addByte()
107 lookup(ngram); in addByte()
/external/icu/icu4c/source/i18n/
Dcsrsbcs.cpp24 : ngram(0), byteIndex(0) in NGramParser()
91 ngram = ((ngram << 8) + b) & N_GRAM_MASK; in addByte()
92 lookup(ngram); in addByte()
Dcsrsbcs.h24 int32_t ngram;
/external/icu/icu4c/source/data/unit/
Dga.txt738 many{"{0} ngram"}