Home
last modified time | relevance | path

Searched refs:conversation (Results 1 – 25 of 62) sorted by relevance

123

/external/libtextclassifier/native/actions/
Dlua-ranker_test.cc69 const Conversation conversation = {{{/*user_id=*/1, "hello hello"}}}; in TEST() local
85 conversation, test_snippet, /*entity_data_schema=*/nullptr, in TEST()
95 const Conversation conversation = {{{/*user_id=*/1, "hello hello"}}}; in TEST() local
107 conversation, test_snippet, /*entity_data_schema=*/nullptr, in TEST()
114 const Conversation conversation = {{{/*user_id=*/1, "hello hello"}}}; in TEST() local
130 conversation, test_snippet, /*entity_data_schema=*/nullptr, in TEST()
140 const Conversation conversation = {{{/*user_id=*/1, "hello hello"}}}; in TEST() local
160 conversation, test_snippet, /*entity_data_schema=*/nullptr, in TEST()
170 const Conversation conversation = {{{/*user_id=*/1, "hello hello"}}}; in TEST() local
188 conversation, test_snippet, /*entity_data_schema=*/nullptr, in TEST()
[all …]
Dranker_test.cc38 const Conversation conversation = {{{/*user_id=*/1, "hello hello"}}}; in TEST() local
53 ranker->RankActions(conversation, &response); in TEST()
60 const Conversation conversation = {{{/*user_id=*/1, "hello hello"}}}; in TEST() local
80 ranker->RankActions(conversation, &response); in TEST()
89 const Conversation conversation = { in TEST() local
134 ranker->RankActions(conversation, &response); in TEST()
141 const Conversation conversation = { in TEST() local
186 ranker->RankActions(conversation, &response); in TEST()
196 const Conversation conversation = {{{/*user_id=*/1, "code A-911"}}}; in TEST() local
228 ranker->RankActions(conversation, &response); in TEST()
[all …]
Dtflite-sensitive-model.cc42 Conversation conversation; in Eval() local
43 conversation.messages.emplace_back(); in Eval()
44 conversation.messages.front().text = text.ToUTF8String(); in Eval()
46 return EvalConversation(conversation, 1); in Eval()
50 const Conversation& conversation, int num_messages) const { in EvalConversation() argument
68 for (int i = conversation.messages.size() - num_messages; in EvalConversation()
69 i < conversation.messages.size(); i++) { in EvalConversation()
70 const ConversationMessage& message = conversation.messages[i]; in EvalConversation()
Dlua-actions_test.cc34 Conversation conversation; in TEST() local
40 test_snippet, conversation, in TEST()
51 Conversation conversation; local
52 conversation.messages.push_back({/*user_id=*/0, "hello there!"});
53 conversation.messages.push_back({/*user_id=*/1, "general kenobi!"});
Dactions-suggestions.cc72 int NumMessagesToConsider(const Conversation& conversation, in NumMessagesToConsider() argument
75 conversation.messages.size() < max_conversation_history_length) in NumMessagesToConsider()
76 ? conversation.messages.size() in NumMessagesToConsider()
981 const Conversation& conversation, const int num_messages, in SuggestActionsFromModel() argument
985 TC3_CHECK_LE(num_messages, conversation.messages.size()); in SuggestActionsFromModel()
988 sensitive_model_->EvalConversation(conversation, num_messages).first) { in SuggestActionsFromModel()
1014 for (int i = conversation.messages.size() - num_messages; in SuggestActionsFromModel()
1015 i < conversation.messages.size(); i++) { in SuggestActionsFromModel()
1016 const ConversationMessage& message = conversation.messages[i]; in SuggestActionsFromModel()
1049 const Conversation& conversation, const ActionSuggestionOptions& options, in SuggestActionsFromConversationIntentDetection() argument
[all …]
Dgrammar-actions.cc129 const Conversation& conversation, in SuggestActions() argument
132 conversation.messages.back().text.empty()) { in SuggestActions()
138 if (!ParseLocales(conversation.messages.back().detected_text_language_tags, in SuggestActions()
144 const int message_index = conversation.messages.size() - 1; in SuggestActions()
146 UTF8ToUnicodeText(conversation.messages.back().text, /*do_copy=*/false), in SuggestActions()
148 text.annotations = conversation.messages.back().annotations; in SuggestActions()
Dactions-suggestions.h101 const Conversation& conversation,
105 const Conversation& conversation, const Annotator* annotator,
192 const Conversation& conversation, const int num_messages,
198 const Conversation& conversation, const ActionSuggestionOptions& options,
206 const Conversation& conversation,
214 Conversation AnnotateConversation(const Conversation& conversation,
224 const Conversation& conversation,
230 bool GatherActionsSuggestions(const Conversation& conversation,
Dlua-ranker.h32 const Conversation& conversation, const std::string& ranker_code,
41 const Conversation& conversation, const std::string& ranker_code, in ActionsSuggestionsLuaRanker() argument
45 : conversation_(conversation), in ActionsSuggestionsLuaRanker()
Dlua-actions.cc56 const std::string& snippet, const Conversation& conversation, in CreateLuaActionsSuggestions() argument
64 snippet, conversation, model_executor, model_spec, interpreter, in CreateLuaActionsSuggestions()
75 const std::string& snippet, const Conversation& conversation, in LuaActionsSuggestions() argument
82 conversation_(conversation), in LuaActionsSuggestions()
Dregex-actions.cc130 const Conversation& conversation, const int num_messages, in IsLowConfidenceInput() argument
134 conversation.messages[conversation.messages.size() - i].text; in IsLowConfidenceInput()
194 const Conversation& conversation, in SuggestActions() argument
198 const int message_index = conversation.messages.size() - 1; in SuggestActions()
199 const std::string& message = conversation.messages.back().text; in SuggestActions()
Dlua-actions.h32 const std::string& snippet, const Conversation& conversation,
43 const std::string& snippet, const Conversation& conversation,
Dregex-actions.h47 const Conversation& conversation, const int num_messages,
57 bool SuggestActions(const Conversation& conversation,
Dlua-ranker.cc35 const Conversation& conversation, const std::string& ranker_code, in Create() argument
41 conversation, ranker_code, entity_data_schema, in Create()
Dngram-model.cc210 const Conversation& conversation, const int num_messages) const { in EvalConversation() argument
214 conversation.messages[conversation.messages.size() - i].text; in EvalConversation()
Dactions_jni.cc129 const Conversation& conversation, const jstring device_locales, in ActionSuggestionsToJObject() argument
205 device_locales, action_response.actions[i], conversation, in ActionSuggestionsToJObject()
371 Conversation conversation; in FromJavaConversation() local
372 conversation.messages = messages; in FromJavaConversation()
373 return conversation; in FromJavaConversation()
505 TC3_ASSIGN_OR_RETURN_NULL(const Conversation conversation, in TC3_JNI_METHOD()
514 context->model()->SuggestActions(conversation, annotator, options); in TC3_JNI_METHOD()
523 conversation, device_locales, generate_intents)); in TC3_JNI_METHOD()
Dactions_model.fbs65 // (num messages,) string tensor, each message of the conversation.
68 // int, the number of messages in the conversation.
72 // messages in the conversation.
86 // each message in the conversation.
91 // in the conversation.
197 // limit, tokens at the start of the conversation are dropped.
201 // limit, the conversation is padded with padding tokens.
268 // Whether to suppress all model output when a conversation is classified as
279 // Minimal fraction of messages in the input conversation that need to match
Dsensitive-classifier-base.h33 const Conversation& conversation, int num_messages) const = 0;
Dtflite-sensitive-model.h34 std::pair<bool, float> EvalConversation(const Conversation& conversation,
/external/icing/icing/util/
Ddocument-validator_test.cc135 DocumentProto conversation = SimpleConversationBuilder().Build(); in TEST_F() local
136 EXPECT_THAT(document_validator_->Validate(conversation), IsOk()); in TEST_F()
154 DocumentProto conversation = in TEST_F() local
164 EXPECT_THAT(document_validator_->Validate(conversation), IsOk()); in TEST_F()
297 DocumentProto conversation = in TEST_F() local
307 EXPECT_THAT(document_validator_->Validate(conversation), in TEST_F()
315 DocumentProto conversation = in TEST_F() local
325 EXPECT_THAT(document_validator_->Validate(conversation), in TEST_F()
363 DocumentProto conversation = SimpleConversationBuilder().Build(); in TEST_F() local
366 EXPECT_THAT(document_validator.Validate(conversation), in TEST_F()
[all …]
/external/libtextclassifier/jni/com/google/android/textclassifier/
DActionsSuggestionsModel.java91 Conversation conversation, ActionSuggestionOptions options, AnnotatorModel annotator) { in suggestActions() argument
94 conversation, in suggestActions()
103 Conversation conversation, in suggestActionsWithIntents() argument
110 conversation, in suggestActionsWithIntents()
378 Conversation conversation, in nativeSuggestActions() argument
/external/libtextclassifier/native/utils/intents/
Dintent-generator.cc81 const Conversation& conversation, const ActionSuggestion& action, in ActionsJniLuaEnvironment() argument
85 conversation_(conversation), in ActionsJniLuaEnvironment()
210 const Conversation& conversation, const jobject context, in GenerateIntents() argument
227 ParseDeviceLocales(device_locales), conversation, action, in GenerateIntents()
Dintent-generator-test-lib.cc300 local conversation = external.conversation in TEST_F()
304 { name = "timezone", string_value = conversation[#conversation].timezone }, in TEST_F()
305 { name = "num_messages", int_value = #conversation }, in TEST_F()
306 { name = "reference_time", long_value = conversation[#conversation].time_ms_utc } in TEST_F()
/external/curl/docs/cmdline-opts/
Dmail-rcpt-allowfails.d8 conversation if at least one of the recipients causes RCPT TO command to
16 conversation and return the error received from to the last RCPT TO command.
/external/replicaisland/src/com/replica/replicaisland/
DConversationDialogActivity.java85 private void formatPages(Conversation conversation, TextView textView) { in formatPages() argument
92 for (int page = conversation.pages.size() - 1; page >= 0 ; page--) { in formatPages()
93 ConversationUtils.ConversationPage currentPage = conversation.pages.get(page); in formatPages()
136 conversation.pages.add(page + addedPages, newPage); in formatPages()
/external/libtextclassifier/native/actions/conversation_intent_detection/
Dconversation-intent-detection-dummy.h37 const Conversation& conversation, const ActionSuggestionOptions& options =

123