AlchemyLanguage can detect general concepts referenced in your content. The service returns Linked Data links for each concept and a URL to a relevant website when possible.
This example requires AlchemyLanguage service credentials and Node.js
$ npm install watson-developer-cloud
API_KEY
with your AlchemyAPI key.var AlchemyLanguageV1 = require('watson-developer-cloud/alchemy-language/v1');
var alchemy_language = new AlchemyLanguageV1({
api_key: 'API_KEY'
})
var parameters = {
url: 'http://www.cnn.com'
};
alchemy_language.concepts(parameters, function (err, response) {
if (err)
console.log('error:', err);
else
console.log(JSON.stringify(response, null, 2));
});
$ node app.js