Socket
Socket
Sign inDemoInstall

stanford-corenlp

Package Overview
Dependencies
11
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.0 to 0.3.1

examples/sentiments.js

5

lib/StanfordNLP.js

@@ -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 @@ };

9

package.json
{
"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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc