Home
last modified time | relevance | path

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

/external/libtextclassifier/native/annotator/
Dtypes.h314 float priority_score; member
317 : target_classification_score(-1.0), priority_score(-1.0) {} in DatetimeParseResultSpan()
322 const float priority_score) { in DatetimeParseResultSpan()
326 this->priority_score = priority_score; in DatetimeParseResultSpan()
333 std::abs(priority_score - other.priority_score) <
377 float priority_score; member
392 priority_score(-1.0) {} in ClassificationResult()
400 priority_score(arg_score) {} in ClassificationResult()
409 priority_score(arg_priority_score) {} in ClassificationResult()
Dtypes.cc127 << value.priority_score << " {"; in operator <<()
150 fabs(priority_score - other.priority_score) < 0.001 && in operator ==()
177 << result.priority_score << ")"; in operator <<()
Dmodel.fbs243 priority_score:float = 0;
306 priority_score:float = 0;
404 // GrammarDatetimeModel's priority_score
446 priority_score:float = 0;
474 priority_score:float = 0;
848 priority_score:float = 0;
906 priority_score:float = 0;
982 priority_score:float;
Dannotator.cc451 model_->grammar_datetime_model()->priority_score())); in ValidateAndInitialize()
799 return classification[0].priority_score; in GetPriorityScore()
1584 (*classification_results)[0].priority_score *= entry->value(); in ModelClassifyText()
1620 regex_pattern.config->priority_score()}); in RegexClassifyText()
1733 classification_results->back().priority_score = in DatetimeClassifyText()
1734 datetime_span.priority_score; in DatetimeClassifyText()
2624 regex_pattern.config->priority_score()}}; in RegexChunk()
2914 datetime_span.priority_score); in DatetimeChunk()
/external/libtextclassifier/native/annotator/grammar/dates/
Dcfg-datetime-annotator.cc122 datetime_parse_result_span.priority_score = annotator_priority_score_; in Parse()
124 datetime_parse_result_span.priority_score = in Parse()
125 grammar_datetime_parse_result_span.priority_score; in Parse()
/external/libtextclassifier/native/annotator/number/
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/actions/
Dranker.cc242 return a.priority_score > b.priority_score || in RankActions()
243 (a.priority_score >= b.priority_score && a.score > b.score); in RankActions()
Dutils.cc30 suggestion->priority_score = action->priority_score(); in FillSuggestionFromSpec()
Dtypes.h70 float priority_score = 0.f; member
Dactions_model.fbs305 priority_score:float = 0;
/external/libtextclassifier/native/annotator/grammar/
Dgrammar-annotator.cc217 best_interpretation->priority_score() < in GetBestValidInterpretation()
218 rule_classification_result->priority_score()) { in GetBestValidInterpretation()
273 classification->priority_score = interpretation->priority_score(); in InstantiateClassificationInterpretation()
/external/libtextclassifier/native/annotator/translate/
Dtranslate.cc71 classification_result->priority_score = options_->priority_score(); in ClassifyText()
/external/libtextclassifier/native/annotator/knowledge/
Dknowledge-engine-dummy.h37 void SetPriorityScore(float priority_score) {} in SetPriorityScore() argument
/external/libtextclassifier/native/annotator/duration/
Dduration.cc206 classification.priority_score = options_->priority_score(); in FindDurationStartingAt()
/external/libtextclassifier/native/annotator/grammar/dates/utils/
Ddate-utils.cc253 instance->priority_score = date.GetAnnotatorPriorityScore(); in FillDateInstance()
263 instance->priority_score = range.GetAnnotatorPriorityScore(); in FillDateRangeInstance()
Ddate-match_test.cc378 EXPECT_FLOAT_EQ(datetime_parse_result_span.priority_score, 0.5) in TEST_F()
/external/libtextclassifier/native/annotator/datetime/
Dparser.cc254 parse_result.priority_score = rule.pattern->priority_score(); in HandleParseMatch()
/external/libtextclassifier/native/utils/
Dlua-utils.cc576 Push(action.priority_score); in PushAction()
609 action.priority_score = Read<float>(/*index=*/kIndexStackTop); in ReadAction()