Home
last modified time | relevance | path

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

/external/libtextclassifier/native/annotator/grammar/
Dgrammar-annotator.cc146 if (interpretation->serialized_entity_data() != nullptr) { in InstantiateClassificationFromDerivation()
148 StringPiece(interpretation->serialized_entity_data()->data(), in InstantiateClassificationFromDerivation()
149 interpretation->serialized_entity_data()->size())); in InstantiateClassificationFromDerivation()
171 if (group->serialized_entity_data() != nullptr) { in InstantiateClassificationFromDerivation()
173 StringPiece(interpretation->serialized_entity_data()->data(), in InstantiateClassificationFromDerivation()
174 interpretation->serialized_entity_data()->size())); in InstantiateClassificationFromDerivation()
196 classification->serialized_entity_data = entity_data->Serialize(); in InstantiateClassificationFromDerivation()
Dgrammar-annotator_test.cc372 ->serialized_entity_data = entity_data->Serialize(); in TEST_F()
391 result.front().classification.front().serialized_entity_data.data())); in TEST_F()
449 result.front().classification.front().serialized_entity_data.data())); in TEST_F()
/external/libtextclassifier/native/actions/
Dtypes.h84 std::string serialized_entity_data; member
91 serialized_entity_data.data(), serialized_entity_data.size()); in entity_data()
Dutils.cc42 if (action->serialized_entity_data() != nullptr) { in FillSuggestionFromSpec()
45 StringPiece(action->serialized_entity_data()->data(), in FillSuggestionFromSpec()
46 action->serialized_entity_data()->size())); in FillSuggestionFromSpec()
55 suggestion->serialized_entity_data = entity_data->Serialize(); in FillSuggestionFromSpec()
Dactions_jni.cc181 !action_response.actions[i].serialized_entity_data.empty()) { in ActionSuggestionsToJObject()
185 action_response.actions[i].serialized_entity_data)); in ActionSuggestionsToJObject()
188 ScopedLocalRef<jbyteArray> serialized_entity_data; in ActionSuggestionsToJObject() local
189 if (!action_response.actions[i].serialized_entity_data.empty()) { in ActionSuggestionsToJObject()
191 serialized_entity_data, in ActionSuggestionsToJObject()
193 env, action_response.actions[i].serialized_entity_data.size())); in ActionSuggestionsToJObject()
195 env, serialized_entity_data.get(), 0, in ActionSuggestionsToJObject()
196 action_response.actions[i].serialized_entity_data.size(), in ActionSuggestionsToJObject()
198 action_response.actions[i].serialized_entity_data.data()))); in ActionSuggestionsToJObject()
254 serialized_entity_data.get(), remote_action_templates_result.get(), in ActionSuggestionsToJObject()
Dgrammar-actions_test.cc408 action_grammar_rules.actions[spec_id]->action->serialized_entity_data = in TEST_F()
438 result[0].serialized_entity_data.data())); in TEST_F()
462 action_grammar_rules.actions[spec_id]->action->serialized_entity_data = in TEST_F()
518 result[0].serialized_entity_data.data())); in TEST_F()
575 result[0].serialized_entity_data.data())); in TEST_F()
Dranker.cc136 if (const int value = Compare(action.serialized_entity_data, in Compare()
137 other.serialized_entity_data)) { in Compare()
Dactions-suggestions_test.cc216 response.actions.front().serialized_entity_data.data())); in TEST_F()
273 response.actions.front().serialized_entity_data.data())); in TEST_F()
921 action->serialized_entity_data = entity_data->Serialize(); in TEST_F()
942 response.actions[0].serialized_entity_data.data())); in TEST_F()
1006 response.actions[0].serialized_entity_data.data())); in TEST_F()
Dactions_model.fbs316 serialized_entity_data:string (shared);
391 // If true, annotator would populate serialized_entity_data in the results.
/external/libtextclassifier/native/utils/
Dlua-utils.cc368 classification.serialized_entity_data.empty()) { in PushAnnotation()
374 classification.serialized_entity_data.data())); in PushAnnotation()
384 Push(classification.serialized_entity_data); in PushAnnotation()
526 classification.serialized_entity_data = in ReadClassificationResult()
531 classification.serialized_entity_data = buffer->Serialize(); in ReadClassificationResult()
545 action.serialized_entity_data.empty()) { in PushAction()
551 action.serialized_entity_data.data())); in PushAction()
599 action.serialized_entity_data = buffer->Serialize(); in ReadAction()
/external/libtextclassifier/native/annotator/
Dannotator_jni.cc248 !classification_result.serialized_entity_data.empty()) { in ClassificationResultWithIntentsToJObject()
253 classification_result.serialized_entity_data)); in ClassificationResultWithIntentsToJObject()
256 ScopedLocalRef<jbyteArray> serialized_entity_data; in ClassificationResultWithIntentsToJObject() local
257 if (!classification_result.serialized_entity_data.empty()) { in ClassificationResultWithIntentsToJObject()
259 serialized_entity_data, in ClassificationResultWithIntentsToJObject()
261 env, classification_result.serialized_entity_data.size())); in ClassificationResultWithIntentsToJObject()
263 env, serialized_entity_data.get(), 0, in ClassificationResultWithIntentsToJObject()
264 classification_result.serialized_entity_data.size(), in ClassificationResultWithIntentsToJObject()
266 classification_result.serialized_entity_data.data()))); in ClassificationResultWithIntentsToJObject()
296 app_package_name.get(), extras.get(), serialized_entity_data.get(), in ClassificationResultWithIntentsToJObject()
Dannotator.cc1648 &classification_result->back().serialized_entity_data)) { in RegexClassifyText()
1709 classification_results->back().serialized_entity_data = in DatetimeClassifyText()
2519 if (pattern->serialized_entity_data() != nullptr || in HasEntityData()
2528 if (group->serialized_entity_data() != nullptr || in HasEntityData()
2539 std::string* serialized_entity_data) const { in SerializedEntityDataFromRegexMatch()
2541 serialized_entity_data->clear(); in SerializedEntityDataFromRegexMatch()
2552 if (pattern->serialized_entity_data() != nullptr) { in SerializedEntityDataFromRegexMatch()
2554 StringPiece(pattern->serialized_entity_data()->c_str(), in SerializedEntityDataFromRegexMatch()
2555 pattern->serialized_entity_data()->size())); in SerializedEntityDataFromRegexMatch()
2576 if (group->serialized_entity_data() != nullptr) { in SerializedEntityDataFromRegexMatch()
[all …]
Dtypes.h453 std::string serialized_entity_data; member
455 return LoadAndVerifyFlatbuffer<EntityData>(serialized_entity_data.data(), in entity_data()
456 serialized_entity_data.size()); in entity_data()
Dtypes.cc166 serialized_entity_data == other.serialized_entity_data; in operator ==()
Dannotator.h426 std::string* serialized_entity_data) const;
484 bool ParseAndFillInMoneyAmount(std::string* serialized_entity_data,
Dannotator_test-include.cc69 GetEntityData(result[0].classification[0].serialized_entity_data.data()); in ExpectFirstEntityIsMoney()
377 classifications[0].serialized_entity_data.data())); in TEST_F()
404 classifications[0].serialized_entity_data.data())); in TEST_F()
454 classifications[0].serialized_entity_data.data())); in TEST_F()
807 annotations[0].classification[0].serialized_entity_data.data())); in TEST_F()
859 annotations[0].classification[0].serialized_entity_data.data())); in TEST_F()
890 EXPECT_EQ("", annotations[0].classification[0].serialized_entity_data); in TEST_F()
2571 GetEntityData(result[0].serialized_entity_data.data()); in VerifyClassifyTextOutputsDatetimeEntityData()
2656 GetEntityData(result[0].classification[0].serialized_entity_data.data()); in VerifyAnnotateOutputsDatetimeEntityData()
Dmodel.fbs222 serialized_entity_data:string (shared);
261 serialized_entity_data:string (shared);
404 serialized_entity_data:string (shared);
/external/libtextclassifier/native/annotator/translate/
Dtranslate_test.cc84 GetEntityData(classification.serialized_entity_data.data()); in TEST_F()
101 GetEntityData(classification.serialized_entity_data.data()); in TEST_F()
Dtranslate.cc72 classification_result->serialized_entity_data = in ClassifyText()
/external/libtextclassifier/native/utils/testing/
Dannotator.cc84 pattern->serialized_entity_data = entity_data->Serialize(); in AddTestRegexModel()
108 pattern->capturing_group[2]->serialized_entity_data = in AddTestRegexModel()
/external/libtextclassifier/native/utils/intents/
Djni.h78 const std::string& serialized_entity_data) const;
Djni.cc349 const std::string& serialized_entity_data) const { in EntityDataAsNamedVariantArray()
352 buffer->MergeFromSerializedFlatbuffer(serialized_entity_data); in EntityDataAsNamedVariantArray()