Home
last modified time | relevance | path

Searched refs:selection_indices (Results 1 – 15 of 15) 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/
Dannotator.cc711 int CountDigits(const std::string& str, CodepointSpan selection_indices) { in CountDigits() argument
716 if (i >= selection_indices.first && i < selection_indices.second && in CountDigits()
1336 CodepointSpan selection_indices, InterpreterManager* interpreter_manager, in ModelClassifyText() argument
1340 selection_indices, interpreter_manager, in ModelClassifyText()
1346 CodepointSpan selection_indices, in CopyCachedTokens() argument
1349 cached_tokens.begin(), cached_tokens.end(), selection_indices.first, in CopyCachedTokens()
1354 cached_tokens.begin(), cached_tokens.end(), selection_indices.second, in CopyCachedTokens()
1410 CodepointSpan selection_indices, InterpreterManager* interpreter_manager, in ModelClassifyText() argument
1415 selection_indices, interpreter_manager, in ModelClassifyText()
1422 CodepointSpan selection_indices, InterpreterManager* interpreter_manager, in ModelClassifyText() argument
[all …]
Dannotator.h187 const std::string& context, CodepointSpan selection_indices,
295 const std::vector<Locale>& locales, CodepointSpan selection_indices,
305 CodepointSpan selection_indices, InterpreterManager* interpreter_manager,
313 CodepointSpan selection_indices, InterpreterManager* interpreter_manager,
325 const std::string& context, CodepointSpan selection_indices,
331 const std::string& context, CodepointSpan selection_indices,
537 CodepointSpan selection_indices,
Dannotator_jni.cc131 const std::string& context, const CodepointSpan& selection_indices, in ClassificationResultWithIntentsToJObject() argument
259 options->reference_time_ms_utc, context, selection_indices, in ClassificationResultWithIntentsToJObject()
288 const std::string& context, const CodepointSpan& selection_indices, in ClassificationResultsWithIntentsToJObjectArray() argument
329 selection_indices, classification_result[i], in ClassificationResultsWithIntentsToJObjectArray()
/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/duration/
Dduration.cc106 const UnicodeText& context, CodepointSpan selection_indices, in ClassifyText() argument
115 UnicodeText::Substring(context, selection_indices.first, in ClassifyText()
116 selection_indices.second, /*do_copy=*/false); in ClassifyText()
Dduration.h84 bool ClassifyText(const UnicodeText& context, 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/contact/
Dcontact-engine-dummy.h44 bool ClassifyText(const std::string& context, CodepointSpan selection_indices, in ClassifyText() argument
/external/libtextclassifier/native/annotator/knowledge/
Dknowledge-engine-dummy.h39 bool ClassifyText(const std::string& text, CodepointSpan selection_indices, in ClassifyText() argument
/external/libtextclassifier/native/utils/intents/
Dintent-generator.h38 const CodepointSpan selection_indices,
Dintent-generator.cc876 const CodepointSpan selection_indices, const jobject context, in GenerateIntents() argument
892 .UTF8Substring(selection_indices.first, selection_indices.second); in GenerateIntents()