queries = [
“Is it currently cloudy in Tokyo?”,
“What is the annual rainfall in Pune?”,
“What is the humidity going to be tomorrow?”
]
for q in queries:
req = jnlp.AnalyzeIntentRequest()
req.query = q
start = time()
resp = jarvis_nlp.AnalyzeIntent(req)
print(f"[{resp.intent.class_name}]\t{req.query}")
I got this error:
_InactiveRpcError: <_InactiveRpcError of RPC that terminated with: status = StatusCode.UNIMPLEMENTED details = “Method not found!” debug_error_string = “{“created”:”@1619771255.257000000",“description”:“Error received from peer ipv6:[::1]:50051”,“file”:“src/core/lib/surface/call.cc”,“file_line”:1068,“grpc_message”:“Method not found!”,“grpc_status”:12}" >
Could you please check the deployment of your service to confirm?
Also, please share the steps and source code to reproduce the error so we can help better.
Hi, we passed by this problem at this moment. Thanks for your help.
I noticed that Jarvis can support five languages including English、Chinese、Japanese and so on.
Could you please tell me how to set the Chinese parameter in Jarvis frame since our conversation
conducts in the Chinese scenario ?
Hi, here is one code block in Jarvis’s official demo:
req = jnlp.AnalyzeIntentRequest()
req.query = “How is the humidity in San Francisco ?”
req.options.domain = “weather” # The <domain_name> is appended to “jarvis_intent_” to look for a
# model “jarvis_intent_<domain_name>”. So in this e.g., the model
# “jarvis_intent_weather” needs to be preloaded in jarvis server. If
# you would like to deploy your custom Joint Intent and Slot model
# use the ‘–domain_name’ parameter in ServiceMaker’s ‘jarvis-
# build intent_slot’ command.
resp = jarvis_nlp.AnalyzaIntent(req)
print (resp)
the question is how to set the ‘–domain_name’ parameter and where to find the ServiceMaker’s ‘jarvis-build intent_slot’ command ?