Text Mining and NLP

FREEMIUM
By RxNLP
Updated 5 months ago
Data
7.9/10
Popularity Score
952ms
Latency
78%
Success Rate

Text Mining and NLP API Documentation

Generate word & n-gram counts, compute text similarity, extract topics (keywords) from text , cluster sentences, extract text from HTML pages, summarize opinions.

View API Details
Core
POST3. NGramCounter
POST2. TextSimilarity
POST1. HTML2Text
Advanced
POSTExtract Topics & Themes
POSTCluster - Chunk of Text
POSTCluster - PreSentenced
POSTOpinosis Summaries
POST3. NGramCounter

Generate counts words or n-grams in descending order. N represents the required n-gram size.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
n-gramNUMBER
REQUIREDThe size of the required n-grams. N can be any value from 1 to 10.
textSTRING
REQUIREDThe text for n-gram generation
Optional Parameters
case-sensitiveSTRING
OPTIONALShould the n-gram generation be case-sensitive? By default everything is converted to lowercase.
Code Snippet
unirest.post("https://rxnlp-core.p.rapidapi.com/generateNGramCounts")
.header("X-RapidAPI-Host", "rxnlp-core.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("n-gram=3")
.send("text=I love rainy days. How I wish it was raining ! How I wish it was snowing !")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://rxnlp-core.p.rapidapi.com/generateNGramCounts
Request Method: POST
Response Headers
Response Body

Install SDK for NodeJS

Installing

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

unirest.post("https://rxnlp-core.p.rapidapi.com/generateNGramCounts")
.header("X-RapidAPI-Host", "rxnlp-core.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("n-gram=3")
.send("text=I love rainy days. How I wish it was raining ! How I wish it was snowing !")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication