Searched refs:SpanToLabel (Results 1 – 3 of 3) sorted by relevance
/external/libtextclassifier/annotator/ |
D | feature-processor_test.cc | 56 using FeatureProcessor::SpanToLabel; 294 TEST_F(FeatureProcessorTest, SpanToLabel) { in TEST_F() argument 314 ASSERT_TRUE(feature_processor.SpanToLabel({5, 8}, tokens, &label)); in TEST_F() 316 ASSERT_TRUE(feature_processor.SpanToLabel({5, 9}, tokens, &label)); in TEST_F() 331 ASSERT_TRUE(feature_processor2.SpanToLabel({5, 8}, tokens, &label2)); in TEST_F() 333 ASSERT_TRUE(feature_processor2.SpanToLabel({6, 9}, tokens, &label2)); in TEST_F() 335 ASSERT_TRUE(feature_processor2.SpanToLabel({5, 9}, tokens, &label2)); in TEST_F() 339 ASSERT_TRUE(feature_processor2.SpanToLabel({4, 9}, tokens, &label2)); in TEST_F() 341 ASSERT_TRUE(feature_processor2.SpanToLabel({5, 10}, tokens, &label2)); in TEST_F() 353 ASSERT_TRUE(feature_processor3.SpanToLabel({6, 15}, tokens, &label2)); in TEST_F() [all …]
|
D | feature-processor.h | 217 bool SpanToLabel(const std::pair<CodepointIndex, CodepointIndex>& span,
|
D | feature-processor.cc | 260 bool FeatureProcessor::SpanToLabel( in SpanToLabel() function in libtextclassifier3::FeatureProcessor
|