Home
last modified time | relevance | path

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

/external/libtextclassifier/lang_id/
Dlanguage-identifier-features.cc70 const char *ngram_end = ngram_start; in ComputeNgramCounts() local
73 ngram_end += GetNumBytesForNonZeroUTF8Char(ngram_end); in ComputeNgramCounts()
75 } while ((num_utf8_chars < ngram_size_) && (ngram_end < word_end)); in ComputeNgramCounts()
88 (Hash32WithDefaultSeed(ngram_start, ngram_end - ngram_start) % in ComputeNgramCounts()
102 if (ngram_end >= word_end) { in ComputeNgramCounts()
110 ngram_end += GetNumBytesForNonZeroUTF8Char(ngram_end); in ComputeNgramCounts()