aylien_textapi
Advanced tools
Comparing version 0.6.0 to 0.7.0
{ | ||
"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 @@ * |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18798
8
467