/external/libtextclassifier/native/annotator/grammar/ |
D | utils.cc | 56 float priority_score, GrammarModelT* model) { in AddRuleClassificationResult() argument 63 result->priority_score = priority_score; in AddRuleClassificationResult()
|
D | grammar-annotator.cc | 138 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()
|
D | utils.h | 38 float priority_score, GrammarModelT* model);
|
/external/libtextclassifier/native/annotator/ |
D | types.h | 384 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()
|
D | types.cc | 142 << value.priority_score << " {"; in operator <<() 165 fabs(priority_score - other.priority_score) < 0.001 && in operator ==() 192 << result.priority_score << ")"; in operator <<()
|
D | model.fbs | 246 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/ |
D | number_test-include.cc | 45 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 …]
|
D | number.cc | 260 : options_->priority_score())); in FindAll() 281 const float priority_score) const { in CreateAnnotatedSpan() 285 classification.priority_score = priority_score; in CreateAnnotatedSpan()
|
D | number.h | 113 float priority_score) const;
|
/external/libtextclassifier/native/annotator/datetime/ |
D | grammar-parser.cc | 36 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()
|
D | grammar-parser.h | 40 const float priority_score);
|
D | regex-parser.cc | 264 parse_result.priority_score = rule.pattern->priority_score(); in HandleParseMatch()
|
/external/libtextclassifier/native/actions/ |
D | ranker.cc | 248 return a.priority_score > b.priority_score || in RankActions() 249 (a.priority_score >= b.priority_score && a.score > b.score); in RankActions()
|
D | utils.cc | 35 suggestion->priority_score = action->priority_score(); in FillSuggestionFromSpec()
|
D | actions-suggestions_test.cc | 185 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 …]
|
D | types.h | 78 float priority_score = 0.f; member
|
/external/libtextclassifier/native/utils/testing/ |
D | annotator.cc | 40 const float priority_score) { in MakePattern() argument 51 result->priority_score = priority_score; in MakePattern()
|
D | annotator.h | 58 const float priority_score);
|
/external/libtextclassifier/native/annotator/pod_ner/ |
D | pod-ner-impl_test.cc | 61 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()
|
D | utils.cc | 221 float priority_score, in ConvertTagsToAnnotatedSpans() argument 265 /*arg_score=*/1.0, priority_score}}}); in ConvertTagsToAnnotatedSpans() 277 /*arg_score=*/1.0, priority_score}); in ConvertTagsToAnnotatedSpans()
|
D | utils.h | 90 float priority_score,
|
/external/libtextclassifier/native/annotator/translate/ |
D | translate.cc | 71 classification_result->priority_score = options_->priority_score(); in ClassifyText()
|
/external/libtextclassifier/native/annotator/knowledge/ |
D | knowledge-engine-dummy.h | 38 void SetPriorityScore(float priority_score) {} in SetPriorityScore() argument
|
/external/libtextclassifier/native/annotator/duration/ |
D | duration.cc | 245 classification.priority_score = options_->priority_score(); in FindDurationStartingAt()
|
/external/libtextclassifier/native/annotator/vocab/ |
D | vocab-annotator-impl.cc | 125 model_->priority_score()); in ClassifyTextInternal()
|