Home
last modified time | relevance | path

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

/external/libtextclassifier/utils/
Dflatbuffers_test.cc58 std::string serialized_entity_data = buffer->Serialize(); in TEST() local
61 serialized_entity_data.data(), serialized_entity_data.size()); in TEST()
139 std::string serialized_entity_data = buffer->Serialize(); in TEST() local
142 serialized_entity_data.data(), serialized_entity_data.size()); in TEST()
174 std::string serialized_entity_data = buffer->Serialize(); in TEST() local
177 serialized_entity_data.data(), serialized_entity_data.size()); in TEST()
205 std::string serialized_entity_data = buffer->Serialize(); in TEST() local
208 serialized_entity_data.data(), serialized_entity_data.size()); in TEST()
241 std::string serialized_entity_data = buffer->Serialize(); in TEST() local
244 serialized_entity_data.data(), serialized_entity_data.size()); in TEST()
[all …]
/external/libtextclassifier/actions/
Dactions_jni.cc148 !action_result[i].serialized_entity_data.empty()) { in ActionSuggestionsToJObjectArray()
150 actions_entity_data_schema, action_result[i].serialized_entity_data); in ActionSuggestionsToJObjectArray()
153 jbyteArray serialized_entity_data = nullptr; in ActionSuggestionsToJObjectArray() local
154 if (!action_result[i].serialized_entity_data.empty()) { in ActionSuggestionsToJObjectArray()
155 serialized_entity_data = in ActionSuggestionsToJObjectArray()
156 env->NewByteArray(action_result[i].serialized_entity_data.size()); in ActionSuggestionsToJObjectArray()
158 serialized_entity_data, 0, in ActionSuggestionsToJObjectArray()
159 action_result[i].serialized_entity_data.size(), in ActionSuggestionsToJObjectArray()
161 action_result[i].serialized_entity_data.data())); in ActionSuggestionsToJObjectArray()
184 serialized_entity_data, remote_action_templates_result)); in ActionSuggestionsToJObjectArray()
Dtypes.h77 std::string serialized_entity_data; member
81 serialized_entity_data.data(), serialized_entity_data.size()); in entity_data()
Dlua-utils.cc77 classification.serialized_entity_data.empty()) { in PushAnnotation()
83 classification.serialized_entity_data.data())); in PushAnnotation()
95 env->PushString(classification.serialized_entity_data); in PushAnnotation()
215 classification.serialized_entity_data = in ReadClassificationResult()
220 classification.serialized_entity_data = buffer->Serialize(); in ReadClassificationResult()
254 if (entity_data_schema == nullptr || action.serialized_entity_data.empty()) { in PushAction()
260 action.serialized_entity_data.data())); in PushAction()
298 action.serialized_entity_data = buffer->Serialize(); in ReadAction()
Dactions-suggestions.cc583 suggestion.serialized_entity_data = in SuggestionFromSpec()
584 action != nullptr && action->serialized_entity_data() != nullptr in SuggestionFromSpec()
585 ? action->serialized_entity_data()->str() in SuggestionFromSpec()
1135 if (!suggestion.serialized_entity_data.empty()) { in SuggestActionsFromAnnotation()
1137 StringPiece(suggestion.serialized_entity_data.c_str(), in SuggestActionsFromAnnotation()
1138 suggestion.serialized_entity_data.size())); in SuggestActionsFromAnnotation()
1142 suggestion.serialized_entity_data = entity_data->Serialize(); in SuggestActionsFromAnnotation()
1235 if (action != nullptr && action->serialized_entity_data() != nullptr) { in SuggestActionsFromRules()
1239 StringPiece(action->serialized_entity_data()->c_str(), in SuggestActionsFromRules()
1240 action->serialized_entity_data()->size())); in SuggestActionsFromRules()
[all …]
Dranker.cc132 if (const int value = Compare(action.serialized_entity_data, in Compare()
133 other.serialized_entity_data)) { in Compare()
Dactions_model.fbs267 serialized_entity_data:string;
337 // If true, annotator would populare serialized_entity_data in the results.
Dactions-suggestions_test.cc156 response.actions.front().serialized_entity_data.data())); in TEST_F()
763 action->serialized_entity_data = entity_data->Serialize(); in TEST_F()
784 response.actions[0].serialized_entity_data.data())); in TEST_F()
/external/libtextclassifier/annotator/
Dannotator_jni.cc194 !classification_result.serialized_entity_data.empty()) { in ClassificationResultWithIntentsToJObject()
197 classification_result.serialized_entity_data); in ClassificationResultWithIntentsToJObject()
200 jbyteArray serialized_entity_data = nullptr; in ClassificationResultWithIntentsToJObject() local
201 if (!classification_result.serialized_entity_data.empty()) { in ClassificationResultWithIntentsToJObject()
202 serialized_entity_data = in ClassificationResultWithIntentsToJObject()
203 env->NewByteArray(classification_result.serialized_entity_data.size()); in ClassificationResultWithIntentsToJObject()
205 serialized_entity_data, 0, in ClassificationResultWithIntentsToJObject()
206 classification_result.serialized_entity_data.size(), in ClassificationResultWithIntentsToJObject()
208 classification_result.serialized_entity_data.data())); in ClassificationResultWithIntentsToJObject()
232 app_name, app_package_name, extras, serialized_entity_data, in ClassificationResultWithIntentsToJObject()
Dtypes.h227 std::string serialized_entity_data; member
229 return LoadAndVerifyFlatbuffer<EntityData>(serialized_entity_data.data(), in entity_data()
230 serialized_entity_data.size()); in entity_data()
Dannotator.cc1392 &classification_result->back().serialized_entity_data)) { in RegexClassifyText()
1463 classification_results->back().serialized_entity_data = in DatetimeClassifyText()
1964 if (pattern->serialized_entity_data() != nullptr) { in HasEntityData()
1980 std::string* serialized_entity_data) const { in SerializedEntityDataFromRegexMatch()
1982 serialized_entity_data->clear(); in SerializedEntityDataFromRegexMatch()
1993 if (pattern->serialized_entity_data() != nullptr) { in SerializedEntityDataFromRegexMatch()
1996 StringPiece(pattern->serialized_entity_data()->c_str(), in SerializedEntityDataFromRegexMatch()
1997 pattern->serialized_entity_data()->size())); in SerializedEntityDataFromRegexMatch()
2019 *serialized_entity_data = entity_data->Serialize(); in SerializedEntityDataFromRegexMatch()
2047 std::string serialized_entity_data; in RegexChunk() local
[all …]
Dannotator.h454 std::string* serialized_entity_data) const;
Dmodel.fbs241 serialized_entity_data:string;
/external/libtextclassifier/utils/intents/
Djni.cc219 const std::string& serialized_entity_data) const { in EntityDataAsNamedVariantArray()
222 buffer->MergeFromSerializedFlatbuffer(serialized_entity_data); in EntityDataAsNamedVariantArray()
Djni.h67 const std::string& serialized_entity_data) const;