diff --git a/examples/semantic_vectors.js b/examples/semantic_vectors.js index c042a5f..be66c41 100644 --- a/examples/semantic_vectors.js +++ b/examples/semantic_vectors.js @@ -13,9 +13,9 @@ var args = parser.parseArgs(); var api = new Api(args.key, args.url); var endpoint = "textEmbedding"; -var embeddings_data = "Cambridge, Massachusetts" +var semantic_vectors_data = "Cambridge, Massachusetts" -api.parameters.content = embeddings_data; +api.parameters.content = semantic_vectors_data; api.rosette(endpoint, function(err, res){ if(err){ console.log(err); diff --git a/examples/similar_terms.js b/examples/similar_terms.js index 53f6f83..199934f 100644 --- a/examples/similar_terms.js +++ b/examples/similar_terms.js @@ -13,10 +13,10 @@ var api = new Api(args.key, args.url); var endpoint = "similarTerms"; - var data = "spy" + var similar_terms_data = "spy" var options = {"resultLanguages": ["spa", "deu", "jpn"]} - api.parameters.content = data; + api.parameters.content = similar_terms_data; api.parameters.options = options; api.rosette(endpoint, function(err, res){ if(err){