Home
last modified time | relevance | path

Searched refs:datetime_components (Results 1 – 9 of 9) sorted by relevance

/external/libtextclassifier/native/annotator/datetime/
Ddatetime-grounder_test.cc120 EXPECT_EQ(data[0].datetime_components[0].component_type, in TEST_F()
122 EXPECT_EQ(data[0].datetime_components[0].value, 0); in TEST_F()
124 EXPECT_EQ(data[0].datetime_components[1].component_type, in TEST_F()
126 EXPECT_EQ(data[0].datetime_components[1].component_type, in TEST_F()
129 EXPECT_EQ(data[0].datetime_components[2].component_type, in TEST_F()
131 EXPECT_EQ(data[0].datetime_components[2].value, 59); in TEST_F()
133 EXPECT_EQ(data[0].datetime_components[3].component_type, in TEST_F()
135 EXPECT_EQ(data[0].datetime_components[3].value, 11); in TEST_F()
137 EXPECT_EQ(data[0].datetime_components[4].component_type, in TEST_F()
139 EXPECT_EQ(data[0].datetime_components[4].value, 30); in TEST_F()
[all …]
Ddatetime-grounder.cc257 result.datetime_components.swap(date_components); in Ground()
Dregex-parser.cc401 result.datetime_components.swap(date_components); in ExtractDatetime()
/external/libtextclassifier/native/annotator/datetime/testing/
Dbase-parser-test.cc50 vector<vector<DatetimeComponent>> datetime_components, in ParsesCorrectly() argument
104 datetime_components[i]}; in ParsesCorrectly()
123 vector<vector<DatetimeComponent>> datetime_components, in ParsesCorrectly() argument
127 expected_granularity, datetime_components, in ParsesCorrectly()
135 vector<vector<DatetimeComponent>> datetime_components) { in ParsesCorrectlyGerman() argument
137 datetime_components, in ParsesCorrectlyGerman()
145 vector<vector<DatetimeComponent>> datetime_components) { in ParsesCorrectlyGerman() argument
147 datetime_components, in ParsesCorrectlyGerman()
155 vector<vector<DatetimeComponent>> datetime_components) { in ParsesCorrectlyChinese() argument
157 datetime_components, in ParsesCorrectlyChinese()
Dbase-parser-test.h42 std::vector<std::vector<DatetimeComponent>> datetime_components,
52 std::vector<std::vector<DatetimeComponent>> datetime_components,
63 std::vector<std::vector<DatetimeComponent>> datetime_components);
68 std::vector<std::vector<DatetimeComponent>> datetime_components);
73 std::vector<std::vector<DatetimeComponent>> datetime_components);
/external/libtextclassifier/native/annotator/
Dtypes.cc147 for (const DatetimeComponent& datetime_comp : data.datetime_components) { in operator <<()
254 const std::vector<DatetimeComponent>& datetime_components) { in AddDatetimeComponents() argument
255 for (const DatetimeComponent& datetime_component : datetime_components) { in AddDatetimeComponents()
412 const std::vector<DatetimeComponent>& datetime_components, in GetDatetimeComponent() argument
414 for (auto datetime_component : datetime_components) { in GetDatetimeComponent()
Dtypes.h347 const std::vector<DatetimeComponent>& datetime_components,
358 std::vector<DatetimeComponent> datetime_components; member
367 datetime_components(arg_datetime__components) {} in DatetimeParseResult()
374 datetime_components == other.datetime_components;
752 const std::vector<DatetimeComponent>& datetime_components);
Dflatbuffer-utils.cc74 for (const auto& c : parse_result.datetime_components) { in CreateDatetimeSerializedEntityData()
/external/libtextclassifier/native/actions/
Dutils.cc144 classification->datetime_parse_result.datetime_components) { in ConvertDatetimeToTime()