RapidAPI logo

Sign Up

Log In


By japerk
Updated 2 months ago
Popularity Score
Success Rate
TonyQwikword5 years ago
SimilarityI need to know how to find the similarity of two words. Could you set up an endpoint to handle this please?
SilentFlamea year ago
can use the cosine similarity between the two words, which can be done with first assigning vectors of the words using googles' word2vec data, then calculating the cosine of the two vectors. It gives you the semantic measure of similarity between the two words.
japerk5 years ago
Do you mean something like WordNet based word similarity? Would a number between 0 & 1 be an appropriate response, where 1 is equal, 0 is no similarity?
TonyQwikword5 years ago
Semantic similarity that is (not some sort of distance).
Hi Developer, feel free to post your answer:
Log inSign up

Install SDK for NodeJS


To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

.header("X-RapidAPI-Host", "undefined")
.header("X-RapidAPI-Key", "undefined")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication