Home
last modified time | relevance | path

Searched refs:SpanToLabel (Results 1 – 3 of 3) sorted by relevance

/external/libtextclassifier/native/annotator/
Dfeature-processor_test.cc56 using FeatureProcessor::SpanToLabel;
366 TEST_F(AnnotatorFeatureProcessorTest, SpanToLabel) { in TEST_F() argument
386 ASSERT_TRUE(feature_processor.SpanToLabel({5, 8}, tokens, &label)); in TEST_F()
388 ASSERT_TRUE(feature_processor.SpanToLabel({5, 9}, tokens, &label)); in TEST_F()
403 ASSERT_TRUE(feature_processor2.SpanToLabel({5, 8}, tokens, &label2)); in TEST_F()
405 ASSERT_TRUE(feature_processor2.SpanToLabel({6, 9}, tokens, &label2)); in TEST_F()
407 ASSERT_TRUE(feature_processor2.SpanToLabel({5, 9}, tokens, &label2)); in TEST_F()
411 ASSERT_TRUE(feature_processor2.SpanToLabel({4, 9}, tokens, &label2)); in TEST_F()
413 ASSERT_TRUE(feature_processor2.SpanToLabel({5, 10}, tokens, &label2)); in TEST_F()
425 ASSERT_TRUE(feature_processor3.SpanToLabel({6, 15}, tokens, &label2)); in TEST_F()
[all …]
Dfeature-processor.h243 bool SpanToLabel(const CodepointSpan& span,
Dfeature-processor.cc258 bool FeatureProcessor::SpanToLabel(const CodepointSpan& span, in SpanToLabel() function in libtextclassifier3::FeatureProcessor