Giter Site home page Giter Site logo

node v4.0 about node-opennlp HOT 8 CLOSED

mbejda avatar mbejda commented on June 6, 2024
node v4.0

from node-opennlp.

Comments (8)

jloveric avatar jloveric commented on June 6, 2024

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.

mbejda avatar mbejda commented on June 6, 2024

Awesome :) Happy it worked for you. I'll try to submit a fix later this week.

from node-opennlp.

thuykaka avatar thuykaka commented on June 6, 2024

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.

mbejda avatar mbejda commented on June 6, 2024

@thuykaka Have you tried results.toString()

from node-opennlp.

thuykaka avatar thuykaka commented on June 6, 2024

It's return [0..1) person.Can you help me?

from node-opennlp.

mbejda avatar mbejda commented on June 6, 2024

@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.

thuykaka avatar thuykaka commented on June 6, 2024

@mbejda tks

from node-opennlp.

mbejda avatar mbejda commented on June 6, 2024

updated all the package dependencies in sha f409cdc. All tests are passing. Closing issue.

from node-opennlp.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.