summaryrefslogtreecommitdiffstats
path: root/actions/actions-suggestions.cc
diff options
context:
space:
mode:
authorTony Mak <tonymak@google.com>2019-03-29 14:05:34 +0000
committerTony Mak <tonymak@google.com>2019-03-29 14:16:00 +0000
commit2753d687954df8a5e4a03776daa3d18c73894358 (patch)
tree145b66684d05996067b5d1e2e5f5fb08284d463b /actions/actions-suggestions.cc
parentdf54e74fd621225ad3ac7c77c89d0e1c965ba01e (diff)
downloadandroid_external_libtextclassifier-2753d687954df8a5e4a03776daa3d18c73894358.tar.gz
android_external_libtextclassifier-2753d687954df8a5e4a03776daa3d18c73894358.tar.bz2
android_external_libtextclassifier-2753d687954df8a5e4a03776daa3d18c73894358.zip
Import libtextclassifier
Not exporting model file, as the content description thing needs some integration works which take time to review. BUG: 129481059 Test: atest frameworks/base/core/tests/coretests/src/android/view/textclassifier/ Change-Id: I24c7dcaffe79c523b23b591767e2aeb3f581b3f7
Diffstat (limited to 'actions/actions-suggestions.cc')
-rw-r--r--actions/actions-suggestions.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/actions-suggestions.cc b/actions/actions-suggestions.cc
index d8be1b0..1d4a70f 100644
--- a/actions/actions-suggestions.cc
+++ b/actions/actions-suggestions.cc
@@ -1035,7 +1035,7 @@ std::vector<int> ActionsSuggestions::DeduplicateAnnotations(
bool ActionsSuggestions::FillAnnotationFromMatchGroup(
const UniLib::RegexMatcher* matcher,
- const RulesModel_::Rule_::RuleActionSpec_::CapturingGroup* group,
+ const RulesModel_::Rule_::RuleActionSpec_::RuleCapturingGroup* group,
const int message_index, ActionSuggestionAnnotation* annotation) const {
if (group->annotation_name() != nullptr ||
group->annotation_type() != nullptr) {
@@ -1100,7 +1100,7 @@ bool ActionsSuggestions::SuggestActionsFromRules(
// Add entity data from rule capturing groups.
if (rule_action->capturing_group() != nullptr) {
- for (const RulesModel_::Rule_::RuleActionSpec_::CapturingGroup*
+ for (const RulesModel_::Rule_::RuleActionSpec_::RuleCapturingGroup*
group : *rule_action->capturing_group()) {
if (group->entity_field() != nullptr) {
TC3_CHECK(entity_data != nullptr);