watson-developer-cloud
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -55,3 +55,3 @@ /** | ||
json: true, | ||
body: pick(params, ['input', 'context', 'alternate_intents']), | ||
body: pick(params, ['input', 'context', 'alternate_intents', 'output', 'entities', 'intents']), | ||
path: pick(params, ['workspace_id']) | ||
@@ -58,0 +58,0 @@ }, |
@@ -28,4 +28,2 @@ /** | ||
exports.ConceptInsightsV2 = require('./concept-insights/v2'); | ||
exports.ConversationV1 = require('./conversation/v1'); | ||
@@ -44,4 +42,2 @@ exports.ConversationV1Experimental = require('./conversation/v1-experimental'); | ||
exports.RelationshipExtractionV1Beta = require('./relationship-extraction/v1-beta'); | ||
exports.RetrieveAndRankV1 = require('./retrieve-and-rank/v1'); | ||
@@ -101,3 +97,4 @@ | ||
// if old code happens to try using one | ||
['message_resonance', 'question_and_answer', 'visual_insights', 'concept_expansion'].forEach(function(serviceName) { | ||
['concept_insights', 'relationship_extraction', 'message_resonance', 'question_and_answer', | ||
'visual_insights', 'concept_expansion'].forEach(function(serviceName) { | ||
Object.defineProperty(exports, serviceName, { | ||
@@ -104,0 +101,0 @@ enumerable: false, |
{ | ||
"name": "watson-developer-cloud", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Client library to use the IBM Watson Services and AlchemyAPI", | ||
@@ -83,3 +83,3 @@ "main": "./lib/index", | ||
"dependencies": { | ||
"cookie": "~0.2.3", | ||
"cookie": "~0.3.1", | ||
"csv-stringify": "~1.0.2", | ||
@@ -91,6 +91,6 @@ "extend": "~3.0.0", | ||
"object.pick": "~1.1.1", | ||
"request": "~2.72.0", | ||
"request": "~2.74.0", | ||
"solr-client": "~0.6.0", | ||
"string": "3.3.1", | ||
"vcap_services": "~0.1.7", | ||
"vcap_services": "~0.2.0", | ||
"websocket": "~1.0.22" | ||
@@ -97,0 +97,0 @@ }, |
@@ -53,5 +53,5 @@ Watson Developer Cloud Node.js SDK | ||
1) User-supplied credentials passed to the service constructor | ||
2) `SERVICE_NAME_USERNAME` and `SERVICE_NAME_PASSWORD` environment properties (or `SERVICE_NAME_API_KEY` when appropriate) | ||
3) Bluemix-supplied credentials (via the `VCAP_SERVICES` JSON-encoded environment property) | ||
@@ -245,4 +245,6 @@ | ||
### Concept Insights | ||
Concept Insights is deprecated as of July 12, 2016. The service will be removed on August 19th, 2016. | ||
The [Concept Insights][concept_insights] has been deprecated, AlchemyLanguage's concept function can be used as a replacement for most Concept Insights use cases; therefore, we encourage existing Concept Insights service users to migrate to AlchemyLanguage. | ||
### Conversation | ||
@@ -423,26 +425,5 @@ | ||
### Relationship Extraction | ||
Analyze an English news article and get the relationships between sentence | ||
components (nouns, verbs, subjects, objects, etc.) by using the | ||
[Relationship Extraction][relationship_extraction] service. | ||
Relationship Extraction has been deprecated. If you want to continue using Relationship Extraction models, you can now access them with AlchemyLanguage. See the [migration guide][re_migration] for details. | ||
```javascript | ||
var watson = require('watson-developer-cloud'); | ||
var relationship_extraction = watson.relationship_extraction({ | ||
username: '<username>', | ||
password: '<password>', | ||
version: 'v1-beta' | ||
}); | ||
relationship_extraction.extract({ | ||
text: 'IBM Watson developer cloud', | ||
dataset: 'ie-en-news' }, | ||
function (err, response) { | ||
if (err) | ||
console.log('error:', err); | ||
else | ||
console.log(JSON.stringify(response, null, 2)); | ||
}); | ||
``` | ||
### Retrieve and Rank | ||
@@ -689,2 +670,3 @@ Use the [Retrieve and Rank][retrieve_and_rank] service to enhance search results with machine learning. | ||
[language_translator]: http://www.ibm.com/watson/developercloud/doc/language-translation/ | ||
[re_migration]: http://www.ibm.com/watson/developercloud/doc/alchemylanguage/migration.shtml | ||
@@ -691,0 +673,0 @@ [alchemy_language]: http://www.alchemyapi.com/products/alchemylanguage |
@@ -102,3 +102,3 @@ /** | ||
VisualRecognitionV3.prototype.version = 'v3'; | ||
VisualRecognitionV3.URL = 'http://gateway-a.watsonplatform.net/visual-recognition/api'; | ||
VisualRecognitionV3.URL = 'https://gateway-a.watsonplatform.net/visual-recognition/api'; | ||
VisualRecognitionV3.prototype.serviceDefaults = { | ||
@@ -105,0 +105,0 @@ alchemy: true |
228343
38
4772
681
+ Addedcookie@0.3.1(transitive)
+ Addedpunycode@1.4.1(transitive)
+ Addedqs@6.2.4(transitive)
+ Addedrequest@2.74.0(transitive)
+ Addedtough-cookie@2.3.4(transitive)
+ Addedvcap_services@0.2.0(transitive)
- Removedcookie@0.2.4(transitive)
- Removedqs@6.1.2(transitive)
- Removedrequest@2.72.0(transitive)
- Removedtough-cookie@2.2.2(transitive)
- Removedvcap_services@0.1.7(transitive)
Updatedcookie@~0.3.1
Updatedrequest@~2.74.0
Updatedvcap_services@~0.2.0