calais-entity-extractor
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -79,4 +79,6 @@ var request = require('request'); | ||
entity.nationality = p.nationality; | ||
if (p.hasOwnProperty("commonname")) | ||
if (p.hasOwnProperty("commonname")) { | ||
entity.commonname = p.commonname; | ||
entity.name = p.commonname; | ||
} | ||
if (p.hasOwnProperty("firstname")) | ||
@@ -101,3 +103,3 @@ entity.firstname = p.firstname; | ||
if (resolution.hasOwnProperty("commonname")) | ||
entity.name = resolution.commonname; | ||
entity.commonname = resolution.commonname; | ||
} | ||
@@ -109,3 +111,3 @@ } else if (entity.type == "City") { | ||
if (resolution.hasOwnProperty("shortname")) | ||
entity.name = resolution.shortname; | ||
entity.commonname = resolution.shortname; | ||
if (resolution.hasOwnProperty("containedbycountry")) | ||
@@ -112,0 +114,0 @@ entity.country = resolution.containedbycountry; |
{ | ||
"name": "calais-entity-extractor", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"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
35350
519