Home
last modified time | relevance | path

Searched refs:priority_score (Results 1 – 25 of 31) sorted by relevance

12

/external/libtextclassifier/native/annotator/grammar/
Dutils.cc56 float priority_score, GrammarModelT* model) { in AddRuleClassificationResult() argument
63 result->priority_score = priority_score; in AddRuleClassificationResult()
Dgrammar-annotator.cc138 classification->priority_score = interpretation->priority_score(); in InstantiateClassificationFromDerivation()
252 interpretation->priority_score() > in SuggestSelection()
253 best_interpretation->priority_score()) { in SuggestSelection()
308 interpretation->priority_score() > in ClassifyText()
309 best_interpretation->priority_score()) { in ClassifyText()
Dutils.h38 float priority_score, GrammarModelT* model);
/external/libtextclassifier/native/annotator/
Dtypes.h384 float priority_score; member
389 priority_score(-1.0) {} in DatetimeParseResultSpan()
394 const float priority_score) in DatetimeParseResultSpan()
398 priority_score(priority_score) {} in DatetimeParseResultSpan()
404 std::abs(priority_score - other.priority_score) <
449 float priority_score; member
464 priority_score(-1.0) {} in ClassificationResult()
472 priority_score(arg_score) {} in ClassificationResult()
481 priority_score(arg_priority_score) {} in ClassificationResult()
Dtypes.cc142 << value.priority_score << " {"; in operator <<()
165 fabs(priority_score - other.priority_score) < 0.001 && in operator ==()
192 << result.priority_score << ")"; in operator <<()
Dmodel.fbs246 priority_score:float = 0;
309 priority_score:float = 0;
398 priority_score:float = 0;
434 priority_score:float = 1;
792 priority_score:float = 0;
850 priority_score:float = 0;
926 priority_score:float;
987 priority_score:float = 0;
1045 priority_score:float = 0;
/external/libtextclassifier/native/annotator/number/
Dnumber_test-include.cc45 options.priority_score = -10.0; in TestingNumberAnnotatorOptions()
88 MATCHER_P(IsCorrectPriortyScore, priority_score,
89 "priority score is " + std::to_string(priority_score)) {
90 return arg.priority_score == priority_score;
107 const float priority_score = -10, const float score = 1) { in IsAnnotatedSpan() argument
113 IsCorrectPriortyScore(priority_score))))); in IsAnnotatedSpan()
784 EXPECT_EQ(classification_result.priority_score, -10); in TEST_F()
809 EXPECT_EQ(classification_result.priority_score, 1); in TEST_F()
834 EXPECT_EQ(classification_result.priority_score, 1); in TEST_F()
843 EXPECT_EQ(classification_result.priority_score, 1); in TEST_F()
[all …]
Dnumber.cc260 : options_->priority_score())); in FindAll()
281 const float priority_score) const { in CreateAnnotatedSpan()
285 classification.priority_score = priority_score; in CreateAnnotatedSpan()
Dnumber.h113 float priority_score) const;
/external/libtextclassifier/native/annotator/datetime/
Dgrammar-parser.cc36 const float target_classification_score, const float priority_score) in GrammarDatetimeParser() argument
40 priority_score_(priority_score) {} in GrammarDatetimeParser()
107 datetime_parse_result_span.priority_score = priority_score_; in Parse()
Dgrammar-parser.h40 const float priority_score);
Dregex-parser.cc264 parse_result.priority_score = rule.pattern->priority_score(); in HandleParseMatch()
/external/libtextclassifier/native/actions/
Dranker.cc248 return a.priority_score > b.priority_score || in RankActions()
249 (a.priority_score >= b.priority_score && a.score > b.score); in RankActions()
Dutils.cc35 suggestion->priority_score = action->priority_score(); in FillSuggestionFromSpec()
Dactions-suggestions_test.cc185 mapping->action->priority_score = 2.0; in TEST_F()
239 mapping->action->priority_score = 2.0; in TEST_F()
629 rule_action->action->priority_score = 1.0f; in TEST_F()
639 rule_action->action->priority_score = 1.0f; in TEST_F()
690 rule_action->action->priority_score = 1.0f; in TEST_F()
700 rule_action->action->priority_score = 1.0f; in TEST_F()
843 EXPECT_EQ(response.actions.front().priority_score, 0.0); in TEST_F()
891 action->priority_score = 1.0f; in TEST_F()
968 action->priority_score = 1.0f; in TEST_F()
1032 code_group->text_reply->priority_score = 1.0f; in TEST_F()
[all …]
Dtypes.h78 float priority_score = 0.f; member
/external/libtextclassifier/native/utils/testing/
Dannotator.cc40 const float priority_score) { in MakePattern() argument
51 result->priority_score = priority_score; in MakePattern()
Dannotator.h58 const float priority_score);
/external/libtextclassifier/native/annotator/pod_ner/
Dpod-ner-impl_test.cc61 model.priority_score = kDefaultPriorityScore; in PodNerTest()
199 EXPECT_EQ(annotations[0].classification[0].priority_score, in TEST_F()
207 EXPECT_EQ(annotations[0].classification[0].priority_score, in TEST_F()
247 EXPECT_EQ(annotations[0].classification[0].priority_score, in TEST_F()
255 EXPECT_EQ(annotations[0].classification[0].priority_score, in TEST_F()
Dutils.cc221 float priority_score, in ConvertTagsToAnnotatedSpans() argument
265 /*arg_score=*/1.0, priority_score}}}); in ConvertTagsToAnnotatedSpans()
277 /*arg_score=*/1.0, priority_score}); in ConvertTagsToAnnotatedSpans()
Dutils.h90 float priority_score,
/external/libtextclassifier/native/annotator/translate/
Dtranslate.cc71 classification_result->priority_score = options_->priority_score(); in ClassifyText()
/external/libtextclassifier/native/annotator/knowledge/
Dknowledge-engine-dummy.h38 void SetPriorityScore(float priority_score) {} in SetPriorityScore() argument
/external/libtextclassifier/native/annotator/duration/
Dduration.cc245 classification.priority_score = options_->priority_score(); in FindDurationStartingAt()
/external/libtextclassifier/native/annotator/vocab/
Dvocab-annotator-impl.cc125 model_->priority_score()); in ClassifyTextInternal()

12