Home
last modified time | relevance | path

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

/external/libtextclassifier/native/utils/grammar/
Drules-utils.cc59 std::vector<Derivation> sorted_candidates = derivations; in DeduplicateDerivations() local
61 sorted_candidates.begin(), sorted_candidates.end(), in DeduplicateDerivations()
79 for (int i = 0; i < sorted_candidates.size(); i++) { in DeduplicateDerivations()
80 const Derivation& candidate = sorted_candidates[i]; in DeduplicateDerivations()
86 if (sorted_candidates[j].rule_id != candidate.rule_id) { in DeduplicateDerivations()
89 if (sorted_candidates[j].match->codepoint_span.first <= in DeduplicateDerivations()
91 sorted_candidates[j].match->codepoint_span.second >= in DeduplicateDerivations()