Home
last modified time | relevance | path

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

/external/libtextclassifier/native/utils/
Dtokenizer.cc98 UnicodeText text_unicode = UTF8ToUnicodeText(text, /*do_copy=*/false); in Tokenize() local
99 return Tokenize(text_unicode); in Tokenize()
102 std::vector<Token> Tokenizer::Tokenize(const UnicodeText& text_unicode) const { in Tokenize()
105 return InternalTokenize(text_unicode); in Tokenize()
110 if (!ICUTokenize(text_unicode, &result)) { in Tokenize()
114 InternalRetokenize(text_unicode, &result); in Tokenize()
120 if (!NumberTokenize(text_unicode, &result)) { in Tokenize()
127 return InternalTokenize(text_unicode); in Tokenize()
137 const UnicodeText& text_unicode) const { in InternalTokenize()
143 for (auto it = text_unicode.begin(); it != text_unicode.end(); in InternalTokenize()
[all …]
Dtokenizer.h96 std::vector<Token> Tokenize(const UnicodeText& text_unicode) const;
115 std::vector<Token> InternalTokenize(const UnicodeText& text_unicode) const;
127 bool NumberTokenize(const UnicodeText& text_unicode,
/external/libtextclassifier/native/annotator/pod_ner/
Dpod-ner-impl.h65 bool PrepareText(const UnicodeText &text_unicode,
Dpod-ner-impl.cc346 bool PodNerAnnotator::PrepareText(const UnicodeText &text_unicode, in PrepareText() argument
351 text_unicode.ToUTF8String()); in PrepareText()
/external/libtextclassifier/native/annotator/
Dfeature-processor.h127 std::vector<Token> Tokenize(const UnicodeText& text_unicode) const;
Dfeature-processor.cc194 const UnicodeText& text_unicode) const { in Tokenize()
195 return tokenizer_.Tokenize(text_unicode); in Tokenize()