/external/libtextclassifier/native/annotator/grammar/ |
D | grammar-annotator.cc | 146 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()
|
D | grammar-annotator_test.cc | 372 ->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/ |
D | types.h | 84 std::string serialized_entity_data; member 91 serialized_entity_data.data(), serialized_entity_data.size()); in entity_data()
|
D | utils.cc | 42 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()
|
D | actions_jni.cc | 181 !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()
|
D | grammar-actions_test.cc | 408 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()
|
D | ranker.cc | 136 if (const int value = Compare(action.serialized_entity_data, in Compare() 137 other.serialized_entity_data)) { in Compare()
|
D | actions-suggestions_test.cc | 216 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()
|
D | actions_model.fbs | 316 serialized_entity_data:string (shared); 391 // If true, annotator would populate serialized_entity_data in the results.
|
/external/libtextclassifier/native/utils/ |
D | lua-utils.cc | 368 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/ |
D | annotator_jni.cc | 248 !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()
|
D | annotator.cc | 1648 &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 …]
|
D | types.h | 453 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()
|
D | types.cc | 166 serialized_entity_data == other.serialized_entity_data; in operator ==()
|
D | annotator.h | 426 std::string* serialized_entity_data) const; 484 bool ParseAndFillInMoneyAmount(std::string* serialized_entity_data,
|
D | annotator_test-include.cc | 69 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()
|
D | model.fbs | 222 serialized_entity_data:string (shared); 261 serialized_entity_data:string (shared); 404 serialized_entity_data:string (shared);
|
/external/libtextclassifier/native/annotator/translate/ |
D | translate_test.cc | 84 GetEntityData(classification.serialized_entity_data.data()); in TEST_F() 101 GetEntityData(classification.serialized_entity_data.data()); in TEST_F()
|
D | translate.cc | 72 classification_result->serialized_entity_data = in ClassifyText()
|
/external/libtextclassifier/native/utils/testing/ |
D | annotator.cc | 84 pattern->serialized_entity_data = entity_data->Serialize(); in AddTestRegexModel() 108 pattern->capturing_group[2]->serialized_entity_data = in AddTestRegexModel()
|
/external/libtextclassifier/native/utils/intents/ |
D | jni.h | 78 const std::string& serialized_entity_data) const;
|
D | jni.cc | 349 const std::string& serialized_entity_data) const { in EntityDataAsNamedVariantArray() 352 buffer->MergeFromSerializedFlatbuffer(serialized_entity_data); in EntityDataAsNamedVariantArray()
|