Home
last modified time | relevance | path

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

/external/libtextclassifier/annotator/
Dfeature-processor_test.cc56 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 …]
Dfeature-processor.h217 bool SpanToLabel(const std::pair<CodepointIndex, CodepointIndex>& span,
Dfeature-processor.cc260 bool FeatureProcessor::SpanToLabel( in SpanToLabel() function in libtextclassifier3::FeatureProcessor