Home
last modified time | relevance | path

Searched refs:lang_id (Results 1 – 25 of 32) sorted by relevance

12

/external/libtextclassifier/native/lang_id/
Dlang-id_jni.cc34 using libtextclassifier3::mobile::lang_id::GetLangIdFromFlatbufferFile;
35 using libtextclassifier3::mobile::lang_id::GetLangIdFromFlatbufferFileDescriptor;
36 using libtextclassifier3::mobile::lang_id::LangId;
37 using libtextclassifier3::mobile::lang_id::LangIdResult;
78 std::unique_ptr<LangId> lang_id = GetLangIdFromFlatbufferFileDescriptor(fd); in TC3_JNI_METHOD() local
79 if (!lang_id->is_valid()) { in TC3_JNI_METHOD()
82 return reinterpret_cast<jlong>(lang_id.release()); in TC3_JNI_METHOD()
89 std::unique_ptr<LangId> lang_id = GetLangIdFromFlatbufferFile(path_str); in TC3_JNI_METHOD() local
90 if (!lang_id->is_valid()) { in TC3_JNI_METHOD()
93 return reinterpret_cast<jlong>(lang_id.release()); in TC3_JNI_METHOD()
[all …]
Dlang-id-wrapper.cc28 std::unique_ptr<libtextclassifier3::mobile::lang_id::LangId> LoadFromPath( in LoadFromPath()
30 std::unique_ptr<libtextclassifier3::mobile::lang_id::LangId> langid_model = in LoadFromPath()
31 libtextclassifier3::mobile::lang_id::GetLangIdFromFlatbufferFile(langid_model_path); in LoadFromPath()
35 std::unique_ptr<libtextclassifier3::mobile::lang_id::LangId> LoadFromDescriptor( in LoadFromDescriptor()
37 std::unique_ptr<libtextclassifier3::mobile::lang_id::LangId> langid_model = in LoadFromDescriptor()
38 libtextclassifier3::mobile::lang_id::GetLangIdFromFlatbufferFileDescriptor( in LoadFromDescriptor()
43 std::unique_ptr<libtextclassifier3::mobile::lang_id::LangId> LoadFromUnownedBuffer( in LoadFromUnownedBuffer()
45 std::unique_ptr<libtextclassifier3::mobile::lang_id::LangId> langid_model = in LoadFromUnownedBuffer()
46 libtextclassifier3::mobile::lang_id::GetLangIdFromFlatbufferBytes(buffer, size); in LoadFromUnownedBuffer()
51 const libtextclassifier3::mobile::lang_id::LangId* model, const std::string& text) { in GetPredictions()
[all …]
Dlang-id-wrapper.h31 std::unique_ptr<libtextclassifier3::mobile::lang_id::LangId> LoadFromPath(
35 std::unique_ptr<libtextclassifier3::mobile::lang_id::LangId> LoadFromDescriptor(
40 std::unique_ptr<libtextclassifier3::mobile::lang_id::LangId> LoadFromUnownedBuffer(
47 const libtextclassifier3::mobile::lang_id::LangId* model, const std::string& text);
51 const libtextclassifier3::mobile::lang_id::LangId* model, const char* text,
56 std::string GetLanguageTags(const libtextclassifier3::mobile::lang_id::LangId* model,
Dlang-id.cc48 namespace lang_id { namespace
202 libtextclassifier3::mobile::lang_id::ContinuousBagOfNgramsFunction::RegisterClass(); in RegisterClasses()
203 libtextclassifier3::mobile::lang_id::TinyScriptDetector::RegisterClass(); in RegisterClasses()
204 libtextclassifier3::mobile::lang_id::RelevantScriptFeature::RegisterClass(); in RegisterClasses()
Dlight-sentence.h25 namespace lang_id {
Dcustom-tokenizer.h28 namespace lang_id {
Dmodel-provider.h27 namespace lang_id {
Dlang-id.h33 namespace lang_id {
Dcustom-tokenizer.cc30 namespace lang_id { namespace
/external/libtextclassifier/native/lang_id/features/
Dlight-sentence-features.h26 namespace lang_id {
36 SAFTM_DECLARE_CLASS_REGISTRY_NAME(lang_id::LightSentenceFeature);
Dlight-sentence-features.cc24 lang_id::LightSentenceFeature);
Drelevant-script-feature.h31 namespace lang_id {
Dchar-ngram-feature.h32 namespace lang_id {
Drelevant-script-feature.cc30 namespace lang_id { namespace
Dchar-ngram-feature.cc31 namespace lang_id { namespace
/external/libtextclassifier/native/annotator/translate/
Dtranslate.h33 const libtextclassifier3::mobile::lang_id::LangId* langid_model, in TranslateAnnotator()
75 const libtextclassifier3::mobile::lang_id::LangId* langid_model_;
Dtranslate_test.cc65 langid_model_(libtextclassifier3::mobile::lang_id::GetLangIdFromFlatbufferFile( in TranslateAnnotatorTest()
71 std::unique_ptr<libtextclassifier3::mobile::lang_id::LangId> langid_model_;
/external/libtextclassifier/native/lang_id/script/
Dtiny-script-detector.h24 namespace lang_id {
167 return libtextclassifier3::mobile::lang_id::GetScript(s, num_bytes); in GetScript()
Dtiny-script-detector.cc21 namespace lang_id { namespace
/external/libtextclassifier/native/
DFlatBufferHeaders.bp33 srcs: ["lang_id/common/flatbuffers/embedding-network.fbs"],
34 out: ["lang_id/common/flatbuffers/embedding-network_generated.h"],
40 srcs: ["lang_id/common/flatbuffers/model.fbs"],
41 out: ["lang_id/common/flatbuffers/model_generated.h"],
/external/fonttools/Snippets/
Drename-fonts.py33 for plat_id, enc_id, lang_id in (WINDOWS_ENGLISH_IDS, MAC_ROMAN_IDS):
42 langID=lang_id,
/external/libtextclassifier/native/lang_id/fb_model/
Dlang-id-from-fb.h30 namespace lang_id {
Dmodel-provider-from-fb.h33 namespace lang_id {
Dlang-id-from-fb.cc25 namespace lang_id { namespace
Dmodel-provider-from-fb.cc29 namespace lang_id { namespace

12