Lines Matching refs:ClassifyText
90 FirstResult(classifier->ClassifyText( in VerifyClassifyText()
92 EXPECT_EQ("phone", FirstResult(classifier->ClassifyText( in VerifyClassifyText()
97 FirstResult(classifier->ClassifyText( in VerifyClassifyText()
102 FirstResult(classifier->ClassifyText( in VerifyClassifyText()
108 EXPECT_EQ("other", FirstResult(classifier->ClassifyText("obama", {0, 5}))); in VerifyClassifyText()
109 EXPECT_EQ("other", FirstResult(classifier->ClassifyText("asdf", {0, 4}))); in VerifyClassifyText()
112 classifier->ClassifyText("", {0, 0}); in VerifyClassifyText()
113 classifier->ClassifyText("asdf", {0, 0}); in VerifyClassifyText()
114 classifier->ClassifyText("asdf", {0, 27}); in VerifyClassifyText()
115 classifier->ClassifyText("asdf", {-30, 300}); in VerifyClassifyText()
116 classifier->ClassifyText("asdf", {-10, -1}); in VerifyClassifyText()
117 classifier->ClassifyText("asdf", {100, 17}); in VerifyClassifyText()
118 classifier->ClassifyText("a\n\n\n\nx x x\n\n\n\n\n\n", {1, 5}); in VerifyClassifyText()
121 EXPECT_EQ("<INVALID RESULTS>", FirstResult(classifier->ClassifyText( in VerifyClassifyText()
125 TEST_F(AnnotatorTest, ClassifyText) { in TEST_F() argument
136 EXPECT_EQ("other", FirstResult(classifier->ClassifyText("isotope", {0, 7}))); in TEST_F()
140 EXPECT_EQ("dictionary", FirstResult(classifier->ClassifyText( in TEST_F()
144 EXPECT_EQ("other", FirstResult(classifier->ClassifyText( in TEST_F()
157 EXPECT_EQ("dictionary", FirstResult(classifier->ClassifyText( in TEST_F()
174 EXPECT_EQ("dictionary", FirstResult(classifier->ClassifyText( in TEST_F()
177 EXPECT_EQ("other", FirstResult(classifier->ClassifyText( in TEST_F()
217 classifier->ClassifyText("Call me at (800) 123-456 today", {11, 24}), in TEST_F()
228 EXPECT_EQ("phone", FirstResult(classifier->ClassifyText( in TEST_F()
246 EXPECT_EQ("other", FirstResult(classifier->ClassifyText( in TEST_F()
250 EXPECT_EQ("address", FirstResult(classifier->ClassifyText( in TEST_F()
283 FirstResult(classifier->ClassifyText( in TEST_F()
286 FirstResult(classifier->ClassifyText( in TEST_F()
289 FirstResult(classifier->ClassifyText("you@android.com", {0, 15}))); in TEST_F()
290 EXPECT_EQ("email", FirstResult(classifier->ClassifyText( in TEST_F()
293 EXPECT_EQ("url", FirstResult(classifier->ClassifyText( in TEST_F()
296 EXPECT_EQ("flight", FirstResult(classifier->ClassifyText("LX 37", {0, 5}))); in TEST_F()
297 EXPECT_EQ("flight", FirstResult(classifier->ClassifyText("flight LX 37 abcd", in TEST_F()
299 EXPECT_EQ("payment_card", FirstResult(classifier->ClassifyText( in TEST_F()
301 EXPECT_EQ("payment_card", FirstResult(classifier->ClassifyText( in TEST_F()
304 EXPECT_EQ("other", FirstResult(classifier->ClassifyText("2221 0067 4735 6282", in TEST_F()
309 FirstResult(classifier->ClassifyText( in TEST_F()
341 EXPECT_EQ("parcel_tracking", FirstResult(classifier->ClassifyText( in TEST_F()
345 EXPECT_EQ("other", FirstResult(classifier->ClassifyText( in TEST_F()
370 classifier->ClassifyText("Barack Obama is 57 years old", {0, 28}); in TEST_F()
397 classifier->ClassifyText("Barack is 57 years old", {0, 22}); in TEST_F()
447 classifier->ClassifyText("Barack Obama is 57 years old", {0, 28}); in TEST_F()
483 FirstResult(classifier->ClassifyText( in TEST_F()
497 FirstResult(classifier->ClassifyText( in TEST_F()
898 EXPECT_EQ("phone", FirstResult(classifier->ClassifyText( in TEST_F()
900 EXPECT_EQ("phone", FirstResult(classifier->ClassifyText( in TEST_F()
902 EXPECT_EQ("other", FirstResult(classifier->ClassifyText( in TEST_F()
1002 EXPECT_EQ("phone", FirstResult(classifier->ClassifyText( in TEST_F()
1639 classifier->ClassifyText("january 1, 2017", {0, 15}, options); in VerifyClassifyTextDateInZurichTimezone()
1667 classifier->ClassifyText("march 1, 2017", {0, 13}, options); in VerifyClassifyTextDateInLATimezone()
1694 std::vector<ClassificationResult> result = classifier->ClassifyText( in VerifyClassifyTextDateOnAotherLine()
1726 result = classifier->ClassifyText("03.05.1970 00:00am", {0, 18}, options); in VerifyClassifyTextWhenLocaleUSParsesDateAsMonthDay()
1760 result = classifier->ClassifyText("03.05.1970 00:00vorm", {0, 20}, options); in TEST_F()
1776 classifier->ClassifyText("set an alarm for 10:30", {17, 22}, options); in TEST_F()
1821 FirstResult(classifier->ClassifyText("january 1, 2017", {0, 15}))); in TEST_F()
1879 EXPECT_THAT(FirstResult(classifier->ClassifyText("Jessica Fletcher", in TEST_F()
2168 FirstResult(classifier->ClassifyText( in VerifyLongInput()
2203 classifier->ClassifyText(input_100k, {50000, 50000 + value_length}); in TEST_F()
2223 EXPECT_EQ(FirstResult(classifier->ClassifyText( in TEST_F()
2237 EXPECT_EQ(FirstResult(classifier->ClassifyText( in TEST_F()
2258 EXPECT_EQ(FirstResult(classifier->ClassifyText( in TEST_F()
2272 EXPECT_EQ(FirstResult(classifier->ClassifyText( in TEST_F()
2289 EXPECT_EQ(FirstResult(classifier->ClassifyText("LX37", {0, 4})), "other"); in TEST_F()
2304 EXPECT_EQ(FirstResult(classifier->ClassifyText("LX37", {0, 4})), "flight"); in TEST_F()
2336 FirstResult(classifier->ClassifyText("(555) 225-3556", {0, 14}))); in TEST_F()
2381 EXPECT_EQ("phone", FirstResult(classifier->ClassifyText("(555) 225-3556", in TEST_F()
2397 EXPECT_THAT(classifier->ClassifyText("(555) 225-3556", {0, 14}, options), in TEST_F()
2445 EXPECT_EQ("address", FirstResult(classifier->ClassifyText( in TEST_F()
2500 EXPECT_EQ("address", FirstResult(classifier->ClassifyText( in TEST_F()
2519 classifier->ClassifyText("350 Third Street, Cambridge", {0, 27}, options), in TEST_F()
2567 result = classifier->ClassifyText("03.05.1970 00:00am", {0, 18}, options); in VerifyClassifyTextOutputsDatetimeEntityData()
2846 classifier->ClassifyText("hello, how are you doing?", {11, 14}, options); in TEST_F()
3153 classifier->ClassifyText(invalid_utf8_text_with_phone_number, {0, 14}), in TEST_F()