ibm-watson

Watson Speech-to-Text register_callback returns only 400s

杀马特。学长 韩版系。学妹 提交于 2019-12-11 07:34:32
问题 The Watson Speech-to-Text asynchronous HTTP interface allows one to register a callback url through a call to register_callback . This call is clearly not working; for illustration, please see these six lines of code. # Illustration of how I can't get the Watson Speech-to-Text # register_callback call to work. r = requests.post( "https://stream.watsonplatform.net/speech-to-text/api/v1/register_callback?{0}".format( urllib.urlencode({ "callback_url": callback_url })), auth=(watson_username,

IBM Watson Visual recognition{“code”:400,“error”:“Cannot execute learning task. : no classifier name given”}

北慕城南 提交于 2019-12-11 07:32:16
问题 When I try to train a classifier with two positive classes and with the API key (each class contains around 1200 images) in Watson Visual Recognition, it returns that "no classifier name is given" - but that I have already provided. This is the code: $ curl -X POST -F "blank_positive_examples=@C:\Users\rahansen\Desktop\Altmuligt\training\no_ocd\no_ocd.zip" -F "OCD_positive_examples=@C:\Users\rahansen\Desktop\Altmuligt\training\ocd\ocd.zip" -F "name=disease" "https://gateway-a.watsonplatform

How can I get Watson to recognize two different dates upon user input?

China☆狼群 提交于 2019-12-11 07:27:33
问题 If a user asks the following sentence: For some reason Watson uses the first date for the both $checkin and $checkout variables even though it detects the second date. You can refer to the "dialog node" screenshot to see how the nodes are setup. How can I get Watson to recognize the first date is the checkin date and the second one is the checkout date. Is there a way I could tell Watson after the first date is used if a second one is detected use it to fill the next slot? I've found

What do I have to do for the continuous conversation of watson chatbot?

廉价感情. 提交于 2019-12-11 07:27:05
问题 I want to have a continuous conversation with watson chatbot. current situation : The chatbox does not remember the status of the conversation you previously sent. I installed the Django framework on the server and created a watson.py file to load the workspace and work with KakaoTalk, a Korean chat application. The chatbot's conversation flow that I want is as follows. User: I want to make a reservation Chatbot: When is the meeting date? User: tomorrow Chatbot: How is your meeting time? User

Javax content not accessible

拜拜、爱过 提交于 2019-12-11 06:47:26
问题 I have a runtime error when i try to run my android application, due to the importation of this package that allows me to use Watson Services. 'com.ibm.watson.developer_cloud:java-sdk:2.9.0' In fact, when I use something related to this package, the error that appears is: E/dalvikvm: Could not find class 'javax.naming.InitialContext', referenced from method com.ibm.watson.developer_cloud.util.CredentialUtils.getKeyUsingJNDI and the corresponding stacktrace is: E/AndroidRuntime: FATAL

Is outputMode Still Supported In alchemy_language.entities

隐身守侯 提交于 2019-12-11 06:36:43
问题 I have this inherited code which in Python 2.7 successfully returns results in xml that are then parsed by ElementTree. result = alchemyObj.TextGetRankedNamedEntities(text) root = ET.fromstring(result) I am updating program to Python 3.5 and am attempting to do this so that I don't need to modify xml parsing of results: result = alchemy_language.entities(outputMode='xml', text='text', max_ items='10'), root = ET.fromstring(result) Per http://www.ibm.com/watson/developercloud/alchemy-language

How do i extract the original date value passed from the user input

徘徊边缘 提交于 2019-12-11 06:28:36
问题 Context: The Watson Conversation bot has a node that gets triggered by three input entities from the user, this works fine, but i want the reply from the bot to be "Checking if you have a lecture tomorrow . Give me a moment" then there's a query in the background building up the answer that gets replied later to the user. the strong word tomorrow is an @sys-date entity, but i want it to reply to the user what he/she said instead of the date, because the bot can check no both weeks months ect,

Save user input (string) in Watson assistant

巧了我就是萌 提交于 2019-12-11 06:07:40
问题 I'm building a chat-bot application based on IBM Watson. I need to save the user input into a variable. I searched the web and I only found tutorials where the input must be of entity sys-(number, day, time, location, person). In my dialog I ask the user about his identifier. This identifier should be an alphanumerical string. How can I do so? 回答1: Take a look at this IBM Cloud solution tutorial that creates a chatbot. It uses identifiers for emails, URIs and conferences. I see two options

Watson Conversation API response inconsistent with workspace response on Watson web console

只愿长相守 提交于 2019-12-11 05:47:23
问题 I built a conversations dialog model that works perfectly when tested on the www.ibmwatsonconversation.com workspace. However, when I use the API calling the same workspace on my web app, the response given through the API not the same. Below is the flow: Intent 1 Intent 2 -> Entity 1 Intent 3 Intended behavior : 1.Ask question with intent 2, get reply from intent 2 node. 2.Enter entity 1, get reply from entity 1 node. Actual behaviour (only from API): Ask question with intent 2, get reply

How can I train an intent in Watson conversation to accept any number?

你离开我真会死。 提交于 2019-12-11 01:47:56
问题 How can we train an intent to accept numbers and identify it as that particular state? For example, I'm training an intent to accept a price. If I type: What about 560? It accepts 560 but if I just type 560 it does not identify. 回答1: If you wanna combine the intent and the entity, you can simply ADD one more condition, e.g: if bot recognizes #yourIntent AND @sys-number response: "Do you want information about @sys-number?" Or, if you want to identify the number even ONLY it is entered by the