Comments (8)
Ok, answering my own question, changing the dependencies in package.json so that we have "java": "https://github.com/joeferner/node-java.git#upgrade-nan-to-2" allowed the module to be built.
from node-opennlp.
Awesome :) Happy it worked for you. I'll try to submit a fix later this week.
from node-opennlp.
dear mbejda.
i have a problem with name finder person.
My code:
var openNLP = require("opennlp");
var sentence = 'John is good';
var nameFinder = new openNLP().nameFinder;
nameFinder.find(sentence, function(err, results) {
console.log(results)
});
It return [{}].why?i think it is [{John}]
from node-opennlp.
@thuykaka Have you tried results.toString()
from node-opennlp.
It's return [0..1) person.Can you help me?
from node-opennlp.
@thuykaka that is correct response from OpenNLP itself. It returns you the location of where the person(s) is located in the sentence. For example :
var openNLP = require("opennlp");
var sentence = 'John and Tom is awesome.';
var nameFinder = new openNLP().nameFinder;
nameFinder.find(sentence, function(err, results) {
console.log(results.toString())
});
will yield :
[0..1) person,[2..3) person
How you decide to parse the response is upto you.
from node-opennlp.
@mbejda tks
from node-opennlp.
updated all the package dependencies in sha f409cdc. All tests are passing. Closing issue.
from node-opennlp.
Related Issues (11)
- Run in Sails HOT 3
- Error: Could not create class opennlp.tools.tokenize.TokenizerModel
- how to install opennlp in ubuntu using node js
- Please update "java" dependencies to 0.11.0
- Error installing on Ubuntu 20.04.
- nameFinder returns empty array HOT 6
- Name finder person
- getTokenProbabilities HOT 1
- Name Finder Can't Find Barack Obama HOT 4
- Error while installing it HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-opennlp.