Home
last modified time | relevance | path

Searched refs:relative_count (Results 1 – 11 of 11) sorted by relevance

/external/libtextclassifier/native/annotator/datetime/testing/
Ddatetime-component-builder.cc32 int relative_count) { in Add() argument
37 component.relative_count = relative_count; in Add()
Ddatetime-component-builder.h33 int relative_count);
/external/libtextclassifier/native/annotator/datetime/
Dextractor.cc39 int relative_count = 0; in Extract() local
128 relative_count = 0; in Extract()
129 if (!ParseRelationDistance(group_text, &(relative_count))) { in Extract()
140 ParseRelationAndConvertToRelativeCount(group_text, &relative_count); in Extract()
195 result->SetRelativeCount(component_type, relative_count); in Extract()
494 const UnicodeText& input, int* relative_count) const { in ParseRelationAndConvertToRelativeCount()
505 relative_count); in ParseRelationAndConvertToRelativeCount()
Ddatetime-grounder_test.cc68 const int relative_count) { in BuildRelativeDatetime() argument
78 ->value = relative_count; in BuildRelativeDatetime()
193 EXPECT_EQ(data[0].datetime_components[0].relative_count, 1); in TEST_F()
Dextractor.h101 int* relative_count) const;
/external/libtextclassifier/native/annotator/
Dflatbuffer-utils.cc77 datetime_component.relative_count = c.relative_count; in CreateDatetimeSerializedEntityData()
Dtypes.cc153 << datetime_comp.relative_count << "}, "; in operator <<()
230 stream = stream << " Relative Count:" << c.relative_count << "\n"; in operator <<()
249 const DatetimeComponent::ComponentType& field_type, int relative_count) { in SetRelativeCount() argument
250 GetOrCreateDatetimeComponent(field_type).relative_count = relative_count; in SetRelativeCount()
Dtypes.h316 relative_count == other.relative_count && value == other.value;
327 int relative_count = 0; member
337 relative_count(arg_relative_count) {} in DatetimeComponent()
757 int relative_count);
Dannotator_test-include.cc2583 EXPECT_EQ(meridiem->relative_count(), 0); in VerifyClassifyTextOutputsDatetimeEntityData()
2591 EXPECT_EQ(minute->relative_count(), 0); in VerifyClassifyTextOutputsDatetimeEntityData()
2599 EXPECT_EQ(hour->relative_count(), 0); in VerifyClassifyTextOutputsDatetimeEntityData()
2608 EXPECT_EQ(day->relative_count(), 0); in VerifyClassifyTextOutputsDatetimeEntityData()
2616 EXPECT_EQ(month->relative_count(), 0); in VerifyClassifyTextOutputsDatetimeEntityData()
2624 EXPECT_EQ(year->relative_count(), 0); in VerifyClassifyTextOutputsDatetimeEntityData()
2669 EXPECT_EQ(day->relative_count(), 0); in VerifyAnnotateOutputsDatetimeEntityData()
2677 EXPECT_EQ(month->relative_count(), 0); in VerifyAnnotateOutputsDatetimeEntityData()
2685 EXPECT_EQ(year->relative_count(), 0); in VerifyAnnotateOutputsDatetimeEntityData()
Dentity-data.fbs65 relative_count:int;
/external/libtextclassifier/native/utils/calendar/
Dcalendar-common.h232 relative_date_time_component.relative_count, in ApplyRelationField()
238 relative_date_time_component.relative_count, in ApplyRelationField()