Home
last modified time | relevance | path

Searched refs:IsAnnotatedSpan (Results 1 – 5 of 5) sorted by relevance

/external/libtextclassifier/native/annotator/number/
Dnumber_test-include.cc104 static Matcher<AnnotatedSpan> IsAnnotatedSpan( in IsAnnotatedSpan() function
174 IsAnnotatedSpan(CodepointSpan(12, 13), "number", in TEST_F()
176 IsAnnotatedSpan(CodepointSpan(19, 20), "number", in TEST_F()
178 IsAnnotatedSpan(CodepointSpan(32, 33), "number", in TEST_F()
180 IsAnnotatedSpan(CodepointSpan(32, 34), "percentage", in TEST_F()
183 IsAnnotatedSpan(CodepointSpan(41, 45), "number", in TEST_F()
186 IsAnnotatedSpan(CodepointSpan(57, 61), "number", in TEST_F()
274 IsAnnotatedSpan(CodepointSpan(8, 10), "number", in TEST_F()
276 IsAnnotatedSpan(CodepointSpan(8, 15), "percentage", in TEST_F()
279 IsAnnotatedSpan(CodepointSpan(20, 22), "number", in TEST_F()
[all …]
/external/libtextclassifier/native/annotator/grammar/
Dgrammar-annotator_test.cc76 EXPECT_THAT(result, ElementsAre(IsAnnotatedSpan(11, 16, "flight"), in TEST_F()
77 IsAnnotatedSpan(51, 57, "flight"))); in TEST_F()
119 EXPECT_THAT(result, ElementsAre(IsAnnotatedSpan(11, 16, "flight"), in TEST_F()
120 IsAnnotatedSpan(51, 57, "flight"))); in TEST_F()
159 EXPECT_THAT(result, ElementsAre(IsAnnotatedSpan(12, 15, "phone"))); in TEST_F()
348 EXPECT_THAT(selection, IsAnnotatedSpan(11, 16, "flight")); in TEST_F()
384 EXPECT_THAT(result, ElementsAre(IsAnnotatedSpan(6, 18, "person"))); in TEST_F()
442 EXPECT_THAT(result, ElementsAre(IsAnnotatedSpan(6, 20, "person"))); in TEST_F()
507 EXPECT_THAT(result, ElementsAre(IsAnnotatedSpan(11, 16, "flight"))); in TEST_F()
518 EXPECT_THAT(selection, IsAnnotatedSpan(11, 16, "flight")); in TEST_F()
[all …]
Dtest-utils.h33 MATCHER_P3(IsAnnotatedSpan, start, end, collection,
/external/libtextclassifier/native/annotator/
Dannotator_test-include.cc727 ElementsAreArray({IsAnnotatedSpan(6, 18, "person"), in TEST_F()
728 IsAnnotatedSpan(28, 55, "address"), in TEST_F()
729 IsAnnotatedSpan(79, 91, "phone"), in TEST_F()
730 IsAnnotatedSpan(107, 126, "payment_card")})); in TEST_F()
742 ElementsAreArray({IsAnnotatedSpan(8, 13, "flight"), in TEST_F()
743 IsAnnotatedSpan(23, 30, "flight"), in TEST_F()
744 IsAnnotatedSpan(32, 38, "flight")})); in TEST_F()
775 ElementsAreArray({IsAnnotatedSpan(27, 48, "parcel_tracking")})); in TEST_F()
1216 IsAnnotatedSpan(28, 55, "address"), in TEST_F()
1217 IsAnnotatedSpan(79, 91, "phone"), in TEST_F()
[all …]
Dtest-utils.h28 MATCHER_P3(IsAnnotatedSpan, start, end, best_class, "") {
59 return ExplainMatchResult(IsAnnotatedSpan(start, end, "duration"), arg,
68 return ExplainMatchResult(IsAnnotatedSpan(start, end, "datetime"), arg,