Home
last modified time | relevance | path

Searched refs:grammar_model (Results 1 – 4 of 4) sorted by relevance

/external/libtextclassifier/native/annotator/grammar/
Dgrammar-annotator_test.cc46 GrammarModelT grammar_model; in TEST_F() local
47 SetTestTokenizerOptions(&grammar_model); in TEST_F()
48 grammar_model.rules.reset(new grammar::RulesSetT); in TEST_F()
62 AddRuleClassificationResult("flight", ModeFlag_ALL, 1.0, &grammar_model)); in TEST_F()
64 grammar_model.rules.get()); in TEST_F()
65 flatbuffers::DetachedBuffer serialized_model = PackModel(grammar_model); in TEST_F()
82 GrammarModelT grammar_model; in TEST_F() local
83 SetTestTokenizerOptions(&grammar_model); in TEST_F()
84 grammar_model.rules.reset(new grammar::RulesSetT); in TEST_F()
100 AddRuleClassificationResult("flight", ModeFlag_ALL, 1.0, &grammar_model)); in TEST_F()
[all …]
/external/libtextclassifier/native/annotator/
Dannotator_test-include.cc1833 unpacked_model->grammar_model.reset(new GrammarModelT); in TEST_F()
1834 GrammarModelT* grammar_model = unpacked_model->grammar_model.get(); in TEST_F() local
1835 grammar_model->tokenizer_options.reset(new GrammarTokenizerOptionsT); in TEST_F()
1836 grammar_model->tokenizer_options->tokenization_type = TokenizationType_ICU; in TEST_F()
1837 grammar_model->tokenizer_options->icu_preserve_whitespace_tokens = false; in TEST_F()
1838 grammar_model->tokenizer_options->tokenize_on_script_change = true; in TEST_F()
1841 grammar_model->rules.reset(new grammar::RulesSetT); in TEST_F()
1855 grammar_model->rule_classification_result.emplace_back( in TEST_F()
1858 grammar_model->rule_classification_result.back().get(); in TEST_F()
1862 grammar_model->rules.get()); in TEST_F()
Dannotator.cc479 if (model_->grammar_model()) { in ValidateAndInitialize()
481 unilib_, model_->grammar_model(), entity_data_builder_.get())); in ValidateAndInitialize()
Dmodel.fbs600 grammar_model:GrammarModel;