Created
April 3, 2014 00:07
-
-
Save silentrob/9945896 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var StanfordSimpleNLP = require('stanford-simple-nlp').StanfordSimpleNLP; | |
var options = { | |
annotators: ['parse'] | |
}; | |
var stanfordSimpleNLP = new StanfordSimpleNLP(options, function(err) { | |
stanfordSimpleNLP.process('This is so good.', function(err, result) { | |
if (err) console.log(err); | |
console.log(result) | |
}); | |
}); | |
// Output | |
Mountain:stanfordnlp robellis$ node server.js | |
Adding annotator parse | |
Loading parser from serialized file edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz ... done [2.7 sec]. | |
/Users/robellis/projects/stanfordnlp/node_modules/stanford-simple-nlp/lib/StanfordSimpleNLP.coffee:2766: Uncaught TypeError: undefined is not a function | |
Mountain:stanfordnlp robellis$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment