Searched refs:annotated_span (Results 1 – 6 of 6) sorted by relevance
/external/libtextclassifier/native/annotator/number/ |
D | number.cc | 287 AnnotatedSpan annotated_span; in CreateAnnotatedSpan() local 288 annotated_span.span = {start, end}; in CreateAnnotatedSpan() 289 annotated_span.classification.push_back(classification); in CreateAnnotatedSpan() 290 return annotated_span; in CreateAnnotatedSpan()
|
/external/libtextclassifier/native/utils/grammar/parsing/ |
D | parser.cc | 166 for (const AnnotatedSpan& annotated_span : input.annotations) { in SortedSymbolsForInput() local 168 annotated_span.classification.front(); in SortedSymbolsForInput() 172 entry->value(), annotated_span.span, /*match_offset=*/ in SortedSymbolsForInput() 174 annotated_span.span.first), in SortedSymbolsForInput()
|
/external/libtextclassifier/native/annotator/duration/ |
D | duration.cc | 138 AnnotatedSpan annotated_span; in ClassifyText() local 140 FindDurationStartingAt(context, tokens, 0, &annotated_span) != in ClassifyText() 145 TC3_DCHECK(!annotated_span.classification.empty()); in ClassifyText() 147 *classification_result = annotated_span.classification[0]; in ClassifyText()
|
/external/libtextclassifier/native/utils/ |
D | lua-utils.cc | 415 const AnnotatedSpan& annotated_span, in PushAnnotatedSpan() argument 420 Push(annotated_span.span.first); in PushAnnotatedSpan() 422 Push(annotated_span.span.second); in PushAnnotatedSpan() 426 PushAnnotations(&annotated_span.classification, entity_data_schema); in PushAnnotatedSpan()
|
D | lua-utils.h | 344 void PushAnnotatedSpan(const AnnotatedSpan& annotated_span,
|
/external/libtextclassifier/native/annotator/ |
D | annotator.cc | 2125 for (AnnotatedSpan& annotated_span : *annotated_spans) { in RemoveNotEnabledEntityTypes() 2127 annotated_span.classification; in RemoveNotEnabledEntityTypes() 2139 [](const AnnotatedSpan& annotated_span) { in RemoveNotEnabledEntityTypes() argument 2140 return annotated_span.classification.empty(); in RemoveNotEnabledEntityTypes() 2371 for (AnnotatedSpan& annotated_span : result) { in AnnotateSingleInput() 2372 SortClassificationResults(&annotated_span.classification); in AnnotateSingleInput() 3157 AnnotatedSpan annotated_span; in DatetimeChunk() local 3158 annotated_span.span = datetime_span.span; in DatetimeChunk() 3160 annotated_span.classification.emplace_back( in DatetimeChunk() 3164 annotated_span.classification.back().datetime_parse_result = parse_result; in DatetimeChunk() [all …]
|