Home
last modified time | relevance | path

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

/external/libtextclassifier/
Dfeature-processor_test.cc58 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 …]
Dfeature-processor.h233 bool SpanToLabel(const std::pair<CodepointIndex, CodepointIndex>& span,
Dfeature-processor.cc268 bool FeatureProcessor::SpanToLabel( in SpanToLabel() function in libtextclassifier2::FeatureProcessor