Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aylien_textapi

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aylien_textapi - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

10

package.json
{
"name": "aylien_textapi",
"description": "AYLIEN Text API Client Library for Node.js",
"version": "0.6.0",
"version": "0.7.0",
"author": "AYLIEN Inc.",
"contributors": [
{
"name": "Amir Mohammad Saeid",
"email": "amir@aylien.com"
}
{
"name": "AYLIEN Inc.",
"email": "support@aylien.com"
}
],

@@ -12,0 +12,0 @@ "engines": {

@@ -76,2 +76,21 @@ /**

/**
* textapi.entityLevelSentiment
*
* @desc Returns the sentiment towards entities on given text.
*
* @memberof! aylien_textapi(v1)
* @instance
*
* @param {object} params - Parameters for request
* @param {string} params.text - Text to analyze
* @param {string} params.url - URL to analyze
* @param {callback} callback - The callback that handles the response
*/
this.entityLevelSentiment = function(params, callback) {
params = util.extend({endpointPath: 'elsa'}, this.normalizeParams(params));
createAPIRequest(params, [['text', 'url']], callback);
};
/**
* textapi.aspectBasedSentiment

@@ -191,24 +210,2 @@ *

/**
* textapi.unsupervisedClassify
*
* @desc Picks the most semantically relevant class label or tag for a
* piece of text.
*
* @memberof! aylien_textapi(v1)
* @instance
*
* @param {object} params - Parameters for request
* @param {string} params.text - Text
* @param {string} params.url - URL
* @param {array} params.class - List of classes to classify into
* @param {integer=} [params.number_of_concepts=250] - Number of
* concepts to use to measure the semantic similarity of two words.
* @param {callback} callback - The callback that handles the response
*/
this.unsupervisedClassify = function(params, callback) {
params = util.extend({endpointPath: 'classify/unsupervised'}, this.normalizeParams(params));
createAPIRequest(params, [['text', 'url'], 'class'], callback);
};
/**
* textapi.combined

@@ -321,39 +318,3 @@ *

/**
* textapi.related
*
* @desc Returns phrases related to the provided unigram or bigram
*
* @memberof! aylien_textapi(v1)
* @instance
*
* @param {object} params - Parameters for request
* @param {string} params.phrase - Phrase
* @param {integer=} [params.count=20] - Number of entries in response. Max 100
* @param {callback} callback - The callback that handles the response
*/
this.related = function(params, callback) {
params = util.extend({endpointPath: 'related'}, this.normalizeParams(params));
if (params.text && !params.phrase) { params.phrase = params.text; delete(params.text); }
createAPIRequest(params, 'phrase', callback);
};
/**
* textapi.microformats
*
* @desc Extracts microformats from a URL
*
* @memberof! aylien_textapi(v1)
* @instance
*
* @param {object} params - Parameters for request
* @param {string} params.url - URL to extract microformats from
* @param {callback} callback - The callback that handles the response
*/
this.microformats = function(params, callback) {
params = util.extend({endpointPath: 'microformats'}, this.normalizeParams(params));
createAPIRequest(params, 'url', callback);
};
/**
/**
* textapi.imageTags

@@ -360,0 +321,0 @@ *

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc