Skip to content
This repository has been archived by the owner on Feb 12, 2018. It is now read-only.
/ nodejs Public archive
forked from rosette-api/nodejs

Rosette API Client Library for nodejs

License

Notifications You must be signed in to change notification settings

katevoss/nodejs

 
 

Repository files navigation

Build Status

rosette-api

This is the Rosette API client binding for node.js.

Getting Started

Install the module with: npm install rosette-api

Example using the Rosette API language detection endpoint

var Api = require('rosette-api');

var api = new Api(API_KEY);
var endpoint = "language";
var content = "Por favor Señorita, says the man.";
api.parameters.content = content;

api.rosette(endpoint, function(err, res){
	if(err){
		console.log(err);
	} else {
		console.log(JSON.stringify(res, null, 2));
	}
});

API Parameters

Parameter Endpoint Required
content categories, entities, language, morphology, relationships, sentences, sentiment, tokens Either content or contentUri required
contentUri categories, entities, language, morphology, relationships, sentences, sentiment, tokens Either content or contentUri required
language categories, entities, language, morphology, relationships, sentences, sentiment, tokens, name similarity No
documentFile categories, entities, language, morphology, relationships, sentences, sentiment, tokens No
name1 name similarity Yes
name2 name similarity Yes
name name translation Yes
targetLanguage name translation Yes
entityType name translation No
sourceLanguageOfOrigin name translation No
sourceLanguageOfUse name translation No
sourceScript name translation No
targetScript name translation No
targetScheme name translation No
options relationships No
accuracyMode relationships Yes
linked (deprecated) entities No
linkEntities entities No
explain sentiment No
morphology morphology Yes

Additional Examples

See examples.

Additional Information

See Rosette API site

About

Rosette API Client Library for nodejs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 95.4%
  • Shell 4.6%