Home
last modified time | relevance | path

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

/external/libtextclassifier/native/annotator/translate/
Dtranslate_test.cc67 translate_annotator_(TestingTranslateAnnotatorOptions(), in TranslateAnnotatorTest()
72 TestingTranslateAnnotator translate_annotator_; member in libtextclassifier3::__anone683a8e10111::TranslateAnnotatorTest
77 EXPECT_TRUE(translate_annotator_.ClassifyText( in TEST_F()
95 EXPECT_TRUE(translate_annotator_.ClassifyText(UTF8ToUnicodeText("学校"), in TEST_F()
116 EXPECT_FALSE(translate_annotator_.ClassifyText( in TEST_F()
124 EXPECT_TRUE(translate_annotator_.ClassifyText( in TEST_F()
135 EXPECT_FALSE(translate_annotator_.ClassifyText( in TEST_F()
145 translate_annotator_.FindIndexOfNextWhitespaceOrPunctuation(text, 0, -1), in TEST_F()
148 translate_annotator_.FindIndexOfNextWhitespaceOrPunctuation(text, 35, 1), in TEST_F()
151 translate_annotator_.FindIndexOfNextWhitespaceOrPunctuation(text, 10, -1), in TEST_F()
[all …]
/external/libtextclassifier/native/annotator/
Dannotator.h534 std::unique_ptr<const TranslateAnnotator> translate_annotator_; variable
Dannotator.cc638 translate_annotator_.reset(new TranslateAnnotator( in SetLangId()
641 translate_annotator_.reset(nullptr); in SetLangId()
1860 if (translate_annotator_ && in ClassifyText()
1861 translate_annotator_->ClassifyText(context_unicode, selection_indices, in ClassifyText()