Skip to content

Commit

Permalink
RD-2427: Example data replacement vars. (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
seth-mg authored Jan 22, 2019
1 parent cdff079 commit befa478
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/semantic_vectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions examples/similar_terms.js
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit befa478

Please sign in to comment.