Home
last modified time | relevance | path

Searched refs:selection_indices (Results 1 – 16 of 16) sorted by relevance

/external/libtextclassifier/native/annotator/translate/
Dtranslate.cc33 const UnicodeText& context, CodepointSpan selection_indices, in ClassifyText() argument
43 confidences = BackoffDetectLanguages(context, selection_indices); in ClassifyText()
103 const UnicodeText& context, CodepointSpan selection_indices) const { in BackoffDetectLanguages()
106 if (selection_indices.second - selection_indices.first < min_text_size && in BackoffDetectLanguages()
112 UnicodeText::Substring(context, selection_indices.first, in BackoffDetectLanguages()
113 selection_indices.second, /*do_copy=*/false); in BackoffDetectLanguages()
122 context, selection_indices, min_text_size); in BackoffDetectLanguages()
Dtranslate.h39 bool ClassifyText(const UnicodeText& context, CodepointSpan selection_indices,
54 const UnicodeText& context, CodepointSpan selection_indices) const;
/external/libtextclassifier/native/annotator/number/
Dnumber.cc32 const UnicodeText& context, CodepointSpan selection_indices, in ClassifyText() argument
38 context, selection_indices.first, selection_indices.second); in ClassifyText()
54 if (result.span.first + selection_indices.first == in ClassifyText()
55 selection_indices.first && in ClassifyText()
56 result.span.second + selection_indices.first == in ClassifyText()
57 selection_indices.second) { in ClassifyText()
Dnumber.h55 bool ClassifyText(const UnicodeText& context, CodepointSpan selection_indices,
/external/libtextclassifier/native/annotator/
Dannotator.cc1357 const CodepointSpan& selection_indices, in CopyCachedTokens() argument
1360 cached_tokens.begin(), cached_tokens.end(), selection_indices.first, in CopyCachedTokens()
1365 cached_tokens.begin(), cached_tokens.end(), selection_indices.second, in CopyCachedTokens()
1421 const CodepointSpan& selection_indices, const BaseOptions& options, in ModelClassifyText() argument
1429 CodepointSpanToUnicodeTextRange(context_unicode, selection_indices); in ModelClassifyText()
1432 /*line=*/nullptr, selection_indices, options, in ModelClassifyText()
1442 const CodepointSpan& selection_indices, const BaseOptions& options, in ModelClassifyText() argument
1467 *tokens = internal::CopyCachedTokens(cached_tokens, selection_indices, in ModelClassifyText()
1473 context_unicode, span_begin, span_end, selection_indices, in ModelClassifyText()
1478 CodepointSpanToTokenSpan(*tokens, selection_indices); in ModelClassifyText()
[all …]
Dannotator.h196 const std::string& context, const CodepointSpan& selection_indices,
304 const CodepointSpan& selection_indices, const BaseOptions& options,
322 const CodepointSpan& selection_indices, const BaseOptions& options,
336 const std::string& context, const CodepointSpan& selection_indices,
342 const std::string& context, const CodepointSpan& selection_indices,
580 const CodepointSpan& selection_indices,
Dannotator_jni.cc131 const std::string& context, const CodepointSpan& selection_indices, in ClassificationResultWithIntentsToJObject() argument
276 options->reference_time_ms_utc, context, selection_indices, in ClassificationResultWithIntentsToJObject()
306 const std::string& context, const CodepointSpan& selection_indices, in ClassificationResultsWithIntentsToJObjectArray() argument
357 selection_indices, classification_result[i], in ClassificationResultsWithIntentsToJObjectArray()
/external/libtextclassifier/native/utils/intents/
Dintent-generator.cc176 const CodepointSpan selection_indices, const jobject context, in GenerateIntents() argument
192 .UTF8Substring(selection_indices.first, selection_indices.second); in GenerateIntents()
Dintent-generator.h55 const CodepointSpan selection_indices,
/external/libtextclassifier/native/annotator/person_name/
Dperson-name-engine-dummy.h43 bool ClassifyText(const std::string& context, CodepointSpan selection_indices, in ClassifyText() argument
/external/libtextclassifier/native/annotator/installed_app/
Dinstalled-app-engine-dummy.h42 bool ClassifyText(const std::string& context, CodepointSpan selection_indices, in ClassifyText() argument
/external/libtextclassifier/native/annotator/experimental/
Dexperimental-dummy.h50 bool ClassifyText(const UnicodeText& context, CodepointSpan selection_indices, in ClassifyText() argument
/external/libtextclassifier/native/annotator/contact/
Dcontact-engine-dummy.h44 bool ClassifyText(const std::string& context, CodepointSpan selection_indices, in ClassifyText() argument
/external/libtextclassifier/native/annotator/duration/
Dduration.cc125 const UnicodeText& context, CodepointSpan selection_indices, in ClassifyText() argument
134 UnicodeText::Substring(context, selection_indices.first, in ClassifyText()
135 selection_indices.second, /*do_copy=*/false); in ClassifyText()
Dduration.h84 bool ClassifyText(const UnicodeText& context, CodepointSpan selection_indices,
/external/libtextclassifier/native/annotator/knowledge/
Dknowledge-engine-dummy.h40 Status ClassifyText(const std::string& text, CodepointSpan selection_indices, in ClassifyText() argument