print source lang-javascript"><code>var watson = require('watson-developer-cloud');

var concept_insights = watson.concept_insights({
  username: '&lt;username>',
  password: '&lt;password>',
  version: 'v2'
});

var params = {
  graph: '/graphs/wikipedia/en-20120601',
  text: 'IBM Watson won the Jeopardy television show hosted by Alex Trebek'
};

// Retrieve the concepts for input text
concept_insights.graphs.annotateText(params, function(err, res) {
  if (err)
    console.log(err);
  else {
    console.lo