Searched refs:CodepointSpanToTokenSpan (Results 1 – 4 of 4) sorted by relevance
/external/libtextclassifier/ |
D | feature-processor_test.cc | 1094 TEST(FeatureProcessorTest, CodepointSpanToTokenSpan) { in TEST() argument 1100 EXPECT_EQ(TokenSpan(0, 1), CodepointSpanToTokenSpan(tokens, {0, 5})); in TEST() 1101 EXPECT_EQ(TokenSpan(1, 2), CodepointSpanToTokenSpan(tokens, {6, 23})); in TEST() 1102 EXPECT_EQ(TokenSpan(2, 3), CodepointSpanToTokenSpan(tokens, {24, 29})); in TEST() 1103 EXPECT_EQ(TokenSpan(0, 2), CodepointSpanToTokenSpan(tokens, {0, 23})); in TEST() 1104 EXPECT_EQ(TokenSpan(1, 3), CodepointSpanToTokenSpan(tokens, {6, 29})); in TEST() 1105 EXPECT_EQ(TokenSpan(0, 3), CodepointSpanToTokenSpan(tokens, {0, 29})); in TEST() 1108 EXPECT_EQ(TokenSpan(0, 1), CodepointSpanToTokenSpan(tokens, {0, 5}, true)); in TEST() 1109 EXPECT_EQ(TokenSpan(1, 2), CodepointSpanToTokenSpan(tokens, {6, 23}, true)); in TEST() 1110 EXPECT_EQ(TokenSpan(2, 3), CodepointSpanToTokenSpan(tokens, {24, 29}, true)); in TEST() [all …]
|
D | feature-processor.h | 78 TokenSpan CodepointSpanToTokenSpan(
|
D | feature-processor.cc | 342 TokenSpan CodepointSpanToTokenSpan(const std::vector<Token>& selectable_tokens, in CodepointSpanToTokenSpan() function 401 CodepointSpanToTokenSpan(selectable_tokens, span); in CenterTokenFromClick() 428 CodepointSpanToTokenSpan(selectable_tokens, span); in CenterTokenFromMiddleOfSelection()
|
D | text-classifier.cc | 838 CodepointSpanToTokenSpan(tokens, selection_indices); in ModelClassifyText()
|