stanford-corenlp
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -37,2 +37,4 @@ var java = require('java'); | ||
} | ||
else | ||
this.loadPipelineSync(options); | ||
}; | ||
@@ -69,3 +71,3 @@ | ||
var properties; | ||
if (options == null) { | ||
if (options == null || options.annotators == null) { | ||
options = this.defaultOptions; | ||
@@ -75,2 +77,3 @@ } | ||
properties.setPropertySync('annotators', options.annotators.join(', ')); | ||
return this.pipeline = java.newInstanceSync('edu.stanford.nlp.pipeline.StanfordCoreNLP', properties); | ||
@@ -77,0 +80,0 @@ }; |
{ | ||
"name": "stanford-corenlp", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"author": "Hitesh Joshi <me@hiteshjoshi.com>", | ||
"main": "index", | ||
"dependencies": { | ||
"java": "~0.2.4", | ||
"java": "~0.4.4", | ||
"xml2js": "~0.2.8" | ||
@@ -13,3 +13,3 @@ }, | ||
"type": "git", | ||
"url": "https://github.com:hiteshjoshi/node-stanford-corenlp" | ||
"url": "git+https://github.com/%3Ahiteshjoshi/node-stanford-corenlp.git" | ||
}, | ||
@@ -24,2 +24,3 @@ "bugs": { | ||
"directories": { | ||
"example": "examples", | ||
"test": "test" | ||
@@ -37,2 +38,2 @@ }, | ||
"license": "ISC" | ||
} | ||
} |
@@ -21,2 +21,3 @@ # node-stanford-corenlp | ||
PS : (Use Java 1.8 for corenlp 3.5.0+ ) | ||
@@ -56,3 +57,10 @@ ## Configuration | ||
#### Errors | ||
If you are getting error | ||
Error: Could not create class edu.stanford.nlp.pipeline.StanfordCoreNLP | ||
java.lang.UnsupportedClassVersionError: edu/stanford/nlp/pipeline/StanfordCoreNLP : Unsupported major.minor version 52.0 | ||
That's possibly the class was compiled with a version different than what node-java is using. When you compiled node-java was your java home the same? | ||
## License | ||
@@ -59,0 +67,0 @@ This program is free software: you can redistribute it and/or modify |
Sorry, the diff of this file is not supported yet
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
Network access
Supply chain riskThis module accesses the network.
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
15817
11
259
81
1
+ Addedfind-java-home@0.1.2(transitive)
+ Addedglob@3.2.11(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedjava@0.4.7(transitive)
+ Addedlru-cache@2.7.3(transitive)
+ Addedminimatch@0.3.0(transitive)
+ Addednan@1.4.1(transitive)
+ Addedsigmund@1.0.1(transitive)
+ Addedwhich@1.0.9(transitive)
- Removedjava@0.2.9(transitive)
Updatedjava@~0.4.4