Searched refs:datetime_components (Results 1 – 9 of 9) sorted by relevance
/external/libtextclassifier/native/annotator/datetime/ |
D | datetime-grounder_test.cc | 120 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 …]
|
D | datetime-grounder.cc | 257 result.datetime_components.swap(date_components); in Ground()
|
D | regex-parser.cc | 401 result.datetime_components.swap(date_components); in ExtractDatetime()
|
/external/libtextclassifier/native/annotator/datetime/testing/ |
D | base-parser-test.cc | 50 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()
|
D | base-parser-test.h | 42 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/ |
D | types.cc | 147 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()
|
D | types.h | 347 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);
|
D | flatbuffer-utils.cc | 74 for (const auto& c : parse_result.datetime_components) { in CreateDatetimeSerializedEntityData()
|
/external/libtextclassifier/native/actions/ |
D | utils.cc | 144 classification->datetime_parse_result.datetime_components) { in ConvertDatetimeToTime()
|