Socket
Book a DemoInstallSign in
Socket

corenlp-request-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

corenlp-request-wrapper

Make simple requests to Stanford CoreNLP with javascript.

1.0.3
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

corenlp-request-wrapper

Make simple requests to Stanford CoreNLP with javascript.

Stanford CoreNLP

Download and extract Stanford CoreNLP from http://stanfordnlp.github.io/CoreNLP/#download

Run java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer in the extracted folder to start the CoreNLP server at http://localhost:9000/.

corenlp-request-wrapper

npm install corenlp-request-wrapper or yarn add corenlp-request-wrapper

This wrapper provides a single method parse which interacts with Stanford CoreNLP server.

Test & Example

To test run npm test or yarn run test

const corenlp = require("corenlp-request-wrapper");

// CoreNLP Server was lunched here with the french props file on port 9000
corenlp.parse(
  "Bonjour le monde." /*stringToProcess*/,
  9000 /*portNumber*/,
  "pos,lemma" /*annotators*/,
  "json" /*outputFormat*/,
  (err, parsedText) => { /*Callback function*/
    console.log(JSON.stringify(JSON.parse(parsedText), null, 2));
  }
);

Read More

For full Stanford CoreNLP usage information see http://stanfordnlp.github.io/CoreNLP/index.html

Keywords

CoreNLP

FAQs

Package last updated on 04 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.