Home
last modified time | relevance | path

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

/external/libtextclassifier/native/annotator/datetime/
Dregex-parser.cc119 StatusOr<std::vector<DatetimeParseResultSpan>> RegexDatetimeParser::Parse( in Parse()
129 StatusOr<std::vector<DatetimeParseResultSpan>>
136 std::vector<DatetimeParseResultSpan> found_spans; in FindSpansUsingLocales()
160 const std::vector<DatetimeParseResultSpan>& found_spans_per_rule, in FindSpansUsingLocales()
172 StatusOr<std::vector<DatetimeParseResultSpan>> RegexDatetimeParser::Parse( in Parse()
181 const std::vector<DatetimeParseResultSpan>& found_spans, in Parse()
186 std::vector<std::pair<DatetimeParseResultSpan, int>> indexed_found_spans; in Parse()
195 [](const std::pair<DatetimeParseResultSpan, int>& a, in Parse()
196 const std::pair<DatetimeParseResultSpan, int>& b) { in Parse() argument
206 std::vector<DatetimeParseResultSpan> results; in Parse()
[all …]
Dregex-parser.h52 StatusOr<std::vector<DatetimeParseResultSpan>> Parse(
59 StatusOr<std::vector<DatetimeParseResultSpan>> Parse(
77 StatusOr<std::vector<DatetimeParseResultSpan>> FindSpansUsingLocales(
84 StatusOr<std::vector<DatetimeParseResultSpan>> ParseWithRule(
100 StatusOr<std::vector<DatetimeParseResultSpan>> HandleParseMatch(
Dgrammar-parser.cc42 StatusOr<std::vector<DatetimeParseResultSpan>> GrammarDatetimeParser::Parse( in Parse()
52 StatusOr<std::vector<DatetimeParseResultSpan>> GrammarDatetimeParser::Parse( in Parse()
57 std::vector<DatetimeParseResultSpan> results; in Parse()
104 DatetimeParseResultSpan datetime_parse_result_span; in Parse()
Dparser.h42 virtual StatusOr<std::vector<DatetimeParseResultSpan>> Parse(
49 virtual StatusOr<std::vector<DatetimeParseResultSpan>> Parse(
Dgrammar-parser.h46 StatusOr<std::vector<DatetimeParseResultSpan>> Parse(
53 StatusOr<std::vector<DatetimeParseResultSpan>> Parse(
Dregex-parser_test.cc1342 StatusOr<std::vector<DatetimeParseResultSpan>> results = parser_->Parse( in HasResult()
/external/libtextclassifier/native/annotator/datetime/testing/
Dbase-parser-test.cc36 StatusOr<std::vector<DatetimeParseResultSpan>> results_status = in HasNoResult()
69 StatusOr<std::vector<DatetimeParseResultSpan>> results_status = in ParsesCorrectly()
90 std::vector<DatetimeParseResultSpan> filtered_results; in ParsesCorrectly()
91 for (const DatetimeParseResultSpan& result : results_status.ValueOrDie()) { in ParsesCorrectly()
96 std::vector<DatetimeParseResultSpan> expected{ in ParsesCorrectly()
/external/libtextclassifier/native/annotator/
Dtypes-test-util.h39 TC3_DECLARE_PRINT_OPERATOR(DatetimeParseResultSpan)
Dtypes.h380 struct DatetimeParseResultSpan { struct
386 DatetimeParseResultSpan() in DatetimeParseResultSpan() argument
391 DatetimeParseResultSpan(const CodepointSpan& span, in DatetimeParseResultSpan() argument
400 bool operator==(const DatetimeParseResultSpan& other) const {
411 const DatetimeParseResultSpan& value);
Dtypes.cc137 const DatetimeParseResultSpan& value) { in operator <<()
Dannotator.cc1686 StatusOr<std::vector<DatetimeParseResultSpan>> result_status = in DatetimeClassifyText()
1697 for (const DatetimeParseResultSpan& datetime_span : in DatetimeClassifyText()
3146 StatusOr<std::vector<DatetimeParseResultSpan>> result_status = in DatetimeChunk()
3155 for (const DatetimeParseResultSpan& datetime_span : in DatetimeChunk()