Searched refs:entity_data (Results 1 – 6 of 6) sorted by relevance
/external/libtextclassifier/utils/ |
D | flatbuffers_test.cc | 59 std::unique_ptr<test::EntityDataT> entity_data = in TEST() local 62 EXPECT_TRUE(entity_data != nullptr); in TEST() 63 EXPECT_EQ(entity_data->an_int_field, 42); in TEST() 64 EXPECT_EQ(entity_data->a_long_field, 84); in TEST() 65 EXPECT_EQ(entity_data->a_bool_field, true); in TEST() 66 EXPECT_NEAR(entity_data->a_float_field, 1.f, 1e-4); in TEST() 67 EXPECT_NEAR(entity_data->a_double_field, 1.f, 1e-4); in TEST() 140 std::unique_ptr<test::EntityDataT> entity_data = in TEST() local 143 EXPECT_TRUE(entity_data != nullptr); in TEST() 144 EXPECT_EQ(entity_data->flight_number->carrier_code, "LX"); in TEST() [all …]
|
/external/libtextclassifier/actions/ |
D | actions-suggestions.cc | 1130 std::unique_ptr<ReflectiveFlatbuffer> entity_data = in SuggestActionsFromAnnotation() local 1132 TC3_CHECK(entity_data != nullptr); in SuggestActionsFromAnnotation() 1136 entity_data->MergeFromSerializedFlatbuffer( in SuggestActionsFromAnnotation() 1141 entity_data->ParseAndSet(mapping->entity_field(), annotation.span.text); in SuggestActionsFromAnnotation() 1142 suggestion.serialized_entity_data = entity_data->Serialize(); in SuggestActionsFromAnnotation() 1230 std::unique_ptr<ReflectiveFlatbuffer> entity_data = in SuggestActionsFromRules() local 1236 TC3_CHECK(entity_data != nullptr); in SuggestActionsFromRules() 1238 entity_data->MergeFromSerializedFlatbuffer( in SuggestActionsFromRules() 1248 TC3_CHECK(entity_data != nullptr); in SuggestActionsFromRules() 1252 entity_data.get())) { in SuggestActionsFromRules() [all …]
|
D | types.h | 79 const ActionsEntityData* entity_data() { in entity_data() function
|
D | actions-suggestions_test.cc | 760 std::unique_ptr<ReflectiveFlatbuffer> entity_data = in TEST_F() local 762 entity_data->Set("person", "Kenobi"); in TEST_F() 763 action->serialized_entity_data = entity_data->Serialize(); in TEST_F()
|
/external/libtextclassifier/annotator/ |
D | annotator.cc | 1417 EntityDataT entity_data; in CreateDatetimeSerializedEntityData() local 1418 entity_data.datetime.reset(new EntityData_::DatetimeT()); in CreateDatetimeSerializedEntityData() 1419 entity_data.datetime->time_ms_utc = parse_result.time_ms_utc; in CreateDatetimeSerializedEntityData() 1420 entity_data.datetime->granularity = in CreateDatetimeSerializedEntityData() 1425 FinishEntityDataBuffer(builder, EntityData::Pack(builder, &entity_data)); in CreateDatetimeSerializedEntityData() 1987 std::unique_ptr<ReflectiveFlatbuffer> entity_data = in SerializedEntityDataFromRegexMatch() local 1990 TC3_CHECK(entity_data != nullptr); in SerializedEntityDataFromRegexMatch() 1994 TC3_CHECK(entity_data != nullptr); in SerializedEntityDataFromRegexMatch() 1995 entity_data->MergeFromSerializedFlatbuffer( in SerializedEntityDataFromRegexMatch() 2009 TC3_CHECK(entity_data != nullptr); in SerializedEntityDataFromRegexMatch() [all …]
|
D | types.h | 228 const EntityData* entity_data() { in entity_data() function
|