Home
last modified time | relevance | path

Searched refs:datetime_component (Results 1 – 7 of 7) sorted by relevance

/external/libtextclassifier/native/annotator/
Dflatbuffer-utils.cc75 EntityData_::Datetime_::DatetimeComponentT datetime_component; in CreateDatetimeSerializedEntityData() local
76 datetime_component.absolute_value = c.value; in CreateDatetimeSerializedEntityData()
77 datetime_component.relative_count = c.relative_count; in CreateDatetimeSerializedEntityData()
78 datetime_component.component_type = in CreateDatetimeSerializedEntityData()
81 datetime_component.relation_type = in CreateDatetimeSerializedEntityData()
85 datetime_component.relation_type = in CreateDatetimeSerializedEntityData()
88 entity_data.datetime->datetime_component.emplace_back( in CreateDatetimeSerializedEntityData()
89 new EntityData_::Datetime_::DatetimeComponentT(datetime_component)); in CreateDatetimeSerializedEntityData()
Dtypes.cc255 for (const DatetimeComponent& datetime_component : datetime_components) { in AddDatetimeComponents() local
257 {datetime_component.component_type, datetime_component}); in AddDatetimeComponents()
414 for (auto datetime_component : datetime_components) { in GetDatetimeComponent() local
415 if (datetime_component.component_type == component_type) { in GetDatetimeComponent()
416 return Optional<DatetimeComponent>(datetime_component); in GetDatetimeComponent()
424 const std::vector<DatetimeComponent>& datetime_component) { in GetFinestGranularity() argument
426 std::transform(datetime_component.begin(), datetime_component.end(), in GetFinestGranularity()
Dannotator_test-include.cc2577 EXPECT_EQ(entity_data->datetime()->datetime_component()->size(), 6); in VerifyClassifyTextOutputsDatetimeEntityData()
2579 auto* meridiem = entity_data->datetime()->datetime_component()->Get(0); in VerifyClassifyTextOutputsDatetimeEntityData()
2587 auto* minute = entity_data->datetime()->datetime_component()->Get(1); in VerifyClassifyTextOutputsDatetimeEntityData()
2595 auto* hour = entity_data->datetime()->datetime_component()->Get(2); in VerifyClassifyTextOutputsDatetimeEntityData()
2603 auto* day = entity_data->datetime()->datetime_component()->Get(3); in VerifyClassifyTextOutputsDatetimeEntityData()
2612 auto* month = entity_data->datetime()->datetime_component()->Get(4); in VerifyClassifyTextOutputsDatetimeEntityData()
2620 auto* year = entity_data->datetime()->datetime_component()->Get(5); in VerifyClassifyTextOutputsDatetimeEntityData()
2662 EXPECT_EQ(entity_data->datetime()->datetime_component()->size(), 3); in VerifyAnnotateOutputsDatetimeEntityData()
2664 auto* day = entity_data->datetime()->datetime_component()->Get(0); in VerifyAnnotateOutputsDatetimeEntityData()
2673 auto* month = entity_data->datetime()->datetime_component()->Get(1); in VerifyAnnotateOutputsDatetimeEntityData()
[all …]
Dentity-data.fbs73 datetime_component:[Datetime_.DatetimeComponent];
Dtypes.h343 const std::vector<DatetimeComponent>& datetime_component);
/external/libtextclassifier/native/annotator/datetime/testing/
Ddatetime-component-builder.cc46 const DatetimeComponent& datetime_component) { in AddComponent() argument
47 datetime_components_.push_back(datetime_component); in AddComponent()
Ddatetime-component-builder.h39 const DatetimeComponent& datetime_component);