HomeSort by relevance Sort by last modified time
    Searched refs:SuggestSelection (Results 1 - 4 of 4) sorted by null

  /external/libtextclassifier/tests/
text-classification-model_test.cc 45 TEST(TextClassificationModelTest, SuggestSelection) {
52 EXPECT_EQ(model->SuggestSelection(
58 EXPECT_EQ(model->SuggestSelection("350 Third Street, Cambridge", {0, 27}),
62 EXPECT_EQ(std::make_pair(0, 1), model->SuggestSelection("a", {0, 1}));
65 EXPECT_EQ(std::make_pair(0, 4), model->SuggestSelection("asdf", {0, 4}));
76 model->SuggestSelection("350 Third Street, Cambridge", {0, 3}));
78 model->SuggestSelection("350 Third Street, Cambridge", {4, 9}));
80 model->SuggestSelection("350 Third Street, Cambridge", {10, 16}));
82 model->SuggestSelection("a\nb\nc\n350 Third Street, Cambridge",
94 selection = model->SuggestSelection("abc\nBarack Obama", {4, 10})
    [all...]
  /external/libtextclassifier/smartselect/
text-classification-model.h 56 CodepointSpan SuggestSelection(const std::string& context,
text-classification-model.cc 272 CodepointSpan TextClassificationModel::SuggestSelection(
280 TC_LOG(ERROR) << "Trying to run SuggestSelection with invalid indices:"
  /external/libtextclassifier/
textclassifier_jni.cc 181 model->SuggestSelection(context_utf8, input_indices);

Completed in 61 milliseconds