Searched refs:SpanToLabel (Results 1 – 3 of 3) sorted by relevance
/external/libtextclassifier/ |
D | feature-processor_test.cc | 58 using FeatureProcessor::SpanToLabel; 295 TEST(FeatureProcessorTest, SpanToLabel) { in TEST() argument 316 ASSERT_TRUE(feature_processor.SpanToLabel({5, 8}, tokens, &label)); in TEST() 318 ASSERT_TRUE(feature_processor.SpanToLabel({5, 9}, tokens, &label)); in TEST() 333 ASSERT_TRUE(feature_processor2.SpanToLabel({5, 8}, tokens, &label2)); in TEST() 335 ASSERT_TRUE(feature_processor2.SpanToLabel({6, 9}, tokens, &label2)); in TEST() 337 ASSERT_TRUE(feature_processor2.SpanToLabel({5, 9}, tokens, &label2)); in TEST() 341 ASSERT_TRUE(feature_processor2.SpanToLabel({4, 9}, tokens, &label2)); in TEST() 343 ASSERT_TRUE(feature_processor2.SpanToLabel({5, 10}, tokens, &label2)); in TEST() 355 ASSERT_TRUE(feature_processor3.SpanToLabel({6, 15}, tokens, &label2)); in TEST() [all …]
|
D | feature-processor.h | 233 bool SpanToLabel(const std::pair<CodepointIndex, CodepointIndex>& span,
|
D | feature-processor.cc | 268 bool FeatureProcessor::SpanToLabel( in SpanToLabel() function in libtextclassifier2::FeatureProcessor
|