ibm-watson

Watson visual recognition, classify against multiple classifiers in java

陌路散爱 提交于 2019-12-11 01:07:42
问题 I found this curl command in API document that can classify an image against multiple classifiers: curl -u "{username}":"{password}" \ -X POST \ -F "images_file=@batch1.zip" \ -F "classifier_ids=<classifierlist.json" \ "https://gateway.watsonplatform.net/visual-recognition-beta/api/v2/classify?version=2015-12-02" I wondered if it is possible to do this in java since I'm working on an android program using Watson's visual recognition service. thank you 回答1: Use this tutorial to set your Java

IBM Watson Visual Recognition - Access is denied due to invalid credentials

流过昼夜 提交于 2019-12-11 00:44:48
问题 I'm trying to use IBM Watson Visual Recognition tool with nodejs (express). I followed the instruction from the guide, but I can't connect with the tool. var fs = require('fs'); var VisualRecognitionV3 = require('watson-developer-cloud/visual-recognition/v3'); var visualRecognition = new VisualRecognitionV3({ version: '2018-03-19', api_key: 'api key', }); var images_file = fs.createReadStream('public/images/fruitbowl.jpg'); var classifier_ids = ["food"]; var params = { images_file: images

How to extract the values that return from the createRecognizeStream() method?

走远了吗. 提交于 2019-12-11 00:42:58
问题 Using Watson Speech to Text Services How to extract the values that return from the createRecognizeStream() method? Here is a chunk of the sample code. I am trying to see in the terminal the interim results but all i get is this. How do I set the options for the results to appear? { results: [ { alternatives: [Object], final: false } ], result_index: 0 } { results: [ { alternatives: [Object], final: false } ], result_index: 0 } { results: [ { alternatives: [Object], final: false } ]... they

Use IBM watson API with jquery's $.ajax

旧巷老猫 提交于 2019-12-10 20:19:29
问题 I'm looking at the documentation for the watson API ( http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/qaapi/#apiRef ) but there isn't a clear way regarding how to use the API with client-side js. I'd like to use jquery's $.AJAX function. How do I authenticate my account with the API using jquery and the send it a question? Once I get the json form the API, I can parse that, but how do I send it? Here is how I'd think about doing this, but I don't know where I get the

Why Does AWS Lambda function finishes before callback function is executed?

爷,独闯天下 提交于 2019-12-10 18:25:09
问题 I am working on a project to get the transcript out of an audio file. Audio files are of the format flac. I am using AWS Lambda and have written the code in node. Also, I am using IBM Speech to text service and using the basic example code given by them which can be found here. The problem is that my lambda function finishes before running these functions. I am downloading a file from s3 and storing it locally(which is working fine). After that, I am trying to pass the same file to IBM Speech

How to extract current date in watson conversation

一个人想着一个人 提交于 2019-12-10 13:54:48
问题 I need to create a condition, in Watson Conversation dialog model, like this: if "today's date" < 04-15-2017 do something. else do something else. I prefer not asking the user for current date and save it. I tried many ways but they don't work, I also tried to output the date (doesn't work): { "context": { "currdate": "@sys-date:today" }, "output": { "text": { "values": [ "here it is $currdate" ], "selection_policy": "sequential" } } } 回答1: I'm not sure about that, but with all tests I've

How can I access IBM speech-to-text api with curl?

半世苍凉 提交于 2019-12-10 11:05:31
问题 I cannot access the speech-to-text API on IBM Bluemix with curl! I tried the example from the documentation for a sessionless request with curl and it didn't work; I got an invalid userID/password message. Here is the error I got: "{ "code" : 401 , "error" : "Not Authorized" , "description" : "2016-10-08T15:22:37-04:00, Error ERCDPLTFRM-DNLKUPERR occurred when accessing https://158.85.132.94:443/speech-to-text/api/v1/recognize?timestamps=true&word_alternatives_threshold=0.9&continuous=true,

How to pipe multiple readable streams, from multiple api requests, to a single writeable stream?

此生再无相见时 提交于 2019-12-09 15:57:09
问题 - Desired Behaviour - Actual Behaviour - What I've Tried - Steps To Reproduce - Research Desired Behaviour Pipe multiple readable streams, received from multiple api requests, to a single writeable stream. The api responses are from ibm-watson's textToSpeech.synthesize() method. The reason multiple requests are required is because the service has a 5KB limit on text input. Therefore a string of 18KB , for example, requires four requests to complete. Actual Behaviour The writeable stream file

Can I use IBM Watson services without Bluemix?

拥有回忆 提交于 2019-12-08 19:26:58
问题 I've been using AWS for hosting my backend servers. What's the best way to sign up an account so I can call Watson services from my servers directly, without an account on Bluemix? If yes, how? I couldn't find that at Watson's website. Thanks. 回答1: You can absolutely use the Watson APIs from platforms and endpoints other than Bluemix. They are all REST APIs that do not restrict access by the source of the call. You do however have to use Bluemix to sign up, get credentials and for billing. I

Can a single image be a positive example for multiple classes?

可紊 提交于 2019-12-08 09:19:50
问题 Bouquets of flowers are a fairly accurate analogy for our problem domain, and we have another S.O. question out there asking about the feasibility of a different approach to our problem/goal. What if, rather than making classes by flower types, we made our classes according to the actions we need to take depending on the contents and complex combinations of the bouquet? Let's say that, if in the bouquet in our test image, there are: >9 roses, >14 pansies, <1 marigold, any qty of other flowers