From befa4787ca9186cde7f1fda0456e89b7460c3de3 Mon Sep 17 00:00:00 2001 From: seth-basistech Date: Tue, 22 Jan 2019 11:44:14 -0600 Subject: [PATCH] RD-2427: Example data replacement vars. (#72) --- examples/semantic_vectors.js | 4 ++-- examples/similar_terms.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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){