calais-entity-extractor
Advanced tools
Comparing version 1.3.4 to 1.4.0
@@ -18,3 +18,4 @@ var request = require('request'); | ||
'language' : 'English', // alts: Spanish, French | ||
'minConfidence' : 0.75 | ||
'minConfidence' : 0.75, | ||
'parseData' : true | ||
}; | ||
@@ -371,3 +372,8 @@ | ||
var parsedResult = calais._parseCalaisData(result, calais.options.minConfidence); | ||
var parsedResult; | ||
if (calais.options.parseData) { | ||
parsedResult = calais._parseCalaisData(result, calais.options.minConfidence); | ||
} else { | ||
parsedResult = result; | ||
} | ||
@@ -448,3 +454,8 @@ return cb(parsedResult, calais.errors); | ||
var parsedResult = calais._parseCalaisData(result, calais.options.minConfidence); | ||
var parsedResult; | ||
if (calais.options.parseData) { | ||
parsedResult = calais._parseCalaisData(result, calais.options.minConfidence); | ||
} else { | ||
parsedResult = result; | ||
} | ||
@@ -451,0 +462,0 @@ return cb(parsedResult, calais.errors); |
{ | ||
"name": "calais-entity-extractor", | ||
"version": "1.3.4", | ||
"version": "1.4.0", | ||
"description": "Extract entities from text using Open Calais.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
36336
546