ibm-watson

Assistant Entities and Different Speakers

喜欢而已 提交于 2019-12-11 16:08:13
问题 It is possible to differentiate among speakers/users with the Watson-Unity-SDK, as it seems to be able to return an array that identifies which words were spoken by which speakers in a multi-person exchange, but I cannot figure out how to execute it, particularly in the case where I am sending different utterances (spoken by different people) to the Assistant service to get a response accordingly. The code snippets for parsing Assistant's json output/response as well as OnRecognize and

Weird bug with Watson Credentials in Unity

妖精的绣舞 提交于 2019-12-11 15:34:42
问题 I'm trying to implement Watson Assistant into Unity. When I create a new Credentials object using the username, password, and serviceUrl as arguments. The serviceUrl is set correctly, but the username and password remain null. I use the same exact code for other services but specifically with this script I get this bug. //Properties [SerializeField] private string _username; [SerializeField] private string _password; [SerializeField] private string _serviceUrl; private void CreateService() {

BlueMix service error with Android app - 'Unknown pattern character 'X''

跟風遠走 提交于 2019-12-11 13:37:25
问题 I'm developing an android application and am attempting to integrate the Bluemix service - Personality Insights. However, due to a conflict with dates (Bluemix service is assuming a Java SimpleDateFormat which includes the symbol 'X', while Android's SimpleDateFormat does not include this symbol) causing an error (Log below). My question is this, is there a way to brute force the app to use the Java SimpleDateFormat version as opposed the Android version? other than that I don't see how I can

Cannot Connect to gateway.watsonplatform.net:443

▼魔方 西西 提交于 2019-12-11 13:31:32
问题 i am trying to run the sample java application as described on https://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/getting_started/gs-full-java.shtml i have been able to set up my liberty server properly and i have been able to create an app on the bluemix server with my account. When i try to run the sample code in Eclipse, i can see the watson q&a app interface. But when i hit the Ask button, i get Error: Connect to gateway.watsonplatform.net:443 [gateway.watsonplatform.net

Conditionally return from digression in watson assistant

白昼怎懂夜的黑 提交于 2019-12-11 13:25:12
问题 I have been reading through the documentation and cannot find the answer to this question for Watson Assistant. I have a digression that I only sometimes want to return back to the previous place in the dialog. Specifically, after the user enters the digression, if the user responds "Yes" then I do not want the digression to return back, but if the user responds "No" then I do want the digression to return to the previous place. Is there a way to do this? Perhaps by manually editing the JSON

Watson Dialog Dynamic Data variable input/output

旧时模样 提交于 2019-12-11 13:15:05
问题 I'm trying to build a simple dialog that the user will write: "My name is Joe", and I want the Dialog to set a userName variable to "Joe". I found this example, but the response is always empty string. <folder label="Main"> <output> <prompt selectionType="RANDOM"> <item>Hello, What's your name? </item> </prompt> </output> <input id="input_2530402"> <grammar> <item>My name is</item> <item>my name is (DYNAMIC_DATA)={userName}</item> <item>mine is (DYNAMIC_DATA)={userName}</item> <item>(DYNAMIC

HTTP post Request to IBM Personality insights with Android

做~自己de王妃 提交于 2019-12-11 11:18:17
问题 I would like to make an HTTP post request to IBM Service Personality Insight using Android. I tried to use this code: private String mServer="gateway.watsonplatform.net"; private int mPort = 9081; private String mUser= "**USERID HIDDEN**"; private String mPassword= "**PASSWORD HIDDEN**"; private HttpResponse makeRequest(String urlPath) throws Exception { HttpClient httpclient; HttpParams httpParameters; HttpPost request; int timeoutConnection = 10000; int timeoutSocket = 10000; httpParameters

If I want to do an analysis of a single Twitter user with 1000 tweets, do I have to make 1000 API calls to the Watson Personality Insights API?

邮差的信 提交于 2019-12-11 09:59:27
问题 I want to use the Watson Personality Insights API to analyze the personality traits of a particular Twitter user. This user has 1000 tweets. Do I have to call the Personality Insights API 1000 times in order to do this? 回答1: Personality Insights can process multiple text elements in a single API call. To obtain a single result (the a meaningful output according to the service documentation) this needs to be written by an individual author. Now assuming you obtained 1000s of tweets from an

Race condition with UI thread issue.

时光总嘲笑我的痴心妄想 提交于 2019-12-11 08:35:30
问题 This is the code i am working on. Here I cant update the UI until my OnResponse is finished.Because we are doing a doInBackgrnd , so my textresponse is empty. And Since onPostExecute is happening right after. For his I think PublicProgres should help. How to Call PublishProgress at AsyncTask ? private class ConversationTask extends AsyncTask<String, Void, String> { String textResponse = new String(); @Override protected String doInBackground(String... params) { System.out.println("in

Watson Conversation Logs by Date

天涯浪子 提交于 2019-12-11 07:35:20
问题 I wanted to know if there is a way to pull Watson conversation logs for a specific time period using Watson Python SDK? Also is there a way to avoid the pagination added at the end of the logs? I want to pull all the logs for a given time period. Below is the code I am currently using which pulls logs for a specific workspace: import json import watson_developer_cloud conversation = watson_developer_cloud.ConversationV1( username='xxxxxxxxxx', password- 'xxxxxxxx', version='2017-05-26' )