Searched refs:StripPunctuation (Results 1 – 3 of 3) sorted by relevance
/external/libtextclassifier/tests/ |
D | text-classification-model_test.cc | 143 using libtextclassifier::TextClassificationModel::StripPunctuation; 151 TEST(TextClassificationModelTest, StripPunctuation) { in TEST() argument 159 model->StripPunctuation({0, 10}, ".,-abcd.()")); in TEST() 160 EXPECT_EQ(std::make_pair(0, 6), model->StripPunctuation({0, 6}, "(abcd)")); in TEST() 161 EXPECT_EQ(std::make_pair(1, 5), model->StripPunctuation({0, 6}, "[abcd]")); in TEST() 162 EXPECT_EQ(std::make_pair(1, 5), model->StripPunctuation({0, 6}, "{abcd}")); in TEST() 165 EXPECT_EQ(std::make_pair(0, 0), model->StripPunctuation({0, 1}, "&")); in TEST() 166 EXPECT_EQ(std::make_pair(0, 0), model->StripPunctuation({0, 4}, "&-,}")); in TEST() 169 EXPECT_EQ(std::make_pair(-1, 523), model->StripPunctuation({-1, 523}, "a")); in TEST() 170 EXPECT_EQ(std::make_pair(-1, -1), model->StripPunctuation({-1, -1}, "a")); in TEST() [all …]
|
/external/libtextclassifier/smartselect/ |
D | text-classification-model.h | 69 CodepointSpan StripPunctuation(CodepointSpan selection,
|
D | text-classification-model.cc | 61 CodepointSpan TextClassificationModel::StripPunctuation( in StripPunctuation() function in libtextclassifier::TextClassificationModel 304 result = StripPunctuation(result, context); in SuggestSelection()
|