Text Clustering

FREEMIUM
By MeaningCloud
Updated 3 months ago
2.1/10
Popularity Score
785ms
Latency
100%
Success Rate

Text Clustering API Overview

Text Clustering is MeaningCloud's solution for automatic document clustering, i.e., the task of grouping a set of texts in such a way that texts in the same group (called a cluster) are more similar to each other than to those in other clusters.

Contact API Provider
star-blueRate

MeaningCloud's Text Clustering API

Text Clustering is MeaningCloud's solution for automatic document clustering, i.e., the task of grouping a set of texts in such a way that texts in the same group (called a cluster) are more similar to each other than to those in other clusters.

The algorithm receives a set of texts and returns the list of detected clusters. Each cluster is assigned a descriptive name, a relevance value (indicating the relative importance of the cluster with respect to all clusters), its size, and the list of elements that are included in the cluster. Each document may be assigned to one or several clusters.

Text clustering may be used for different tasks, such as grouping similar documents (news, tweets, etc.) and the analysis of customer/employee feedback, discovering meaningful implicit subjects across all documents.

The current supported languages are Spanish, English, French, Italian and Portuguese. The API is configured for a general purpose clustering task and includes software developed by the Carrot2 Project.

Differentiators:

  • Unsupervised approach, no need for labeled documents.
  • Up to 20,000 requests per month.

Related APIs:

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://meaningcloud-text-clustering-v1.p.rapidapi.com/clustering-1.1")
.header("X-RapidAPI-Host", "meaningcloud-text-clustering-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Accept", "application/json")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("id=text01%0Atext02%0Atext03%0Atext04%0Atext05")
.send("lang=en")
.send("txt=He earns $200,000/yr and still has a mortgage on his house :(%0AZara clothes will be the death of my credit card%0AMy bank insisted I destroyed my credit card before I could get a mortgage%0AI'm not paying the mortgage or credit card bills%0ATell them you've never had a loan, you have no mortgage")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication