By japerk
Updated 5 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?
SilentFlame2 years 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:

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", "japerk-text-processing.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("text=California is nice")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication