1.2.3 • Published 2 years ago

spacy-nlp-node v1.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Spacy for Node.js

This library exposes the parse method of SpaCy to Node.js.

With this library, you can easily parse text in Node.js with SpaCy's industry-leading accuracy.

Installation

To install this library, simply run:

npm install --save spacy-nlp-node

And if needed navigate to the library folder and install the requirements.txt by running:

Use pip, or pip3 which is available.

Note, This step will happen automatically When running your app, If didn't work, Do it manually, Note this might take more or less than 10 minutes to downlaod the models.

pip install -r requirements.txt

Usage

To use this library, simply require it and call the parse method:

javascript

import { parse, isReady } from "spacy-nlp-node";
var text = 'This is some text to parse.';

try {
const result = await parse({ text: text, TimeoutLimit: 1000 * 60 });
//Do something with the result
} catch (error) {
//Do something with the error, it could be {error: "No response received, Time out"}
}

The parse method returns a object from SpaCy. Example:

{
text: "",
ents: [{ start: 0, end: 0, label: "" }],
sents: [{ start: 0, end: 0 }],
tokens: [
{
id: 0,
start: 0,
end: 0,
tag: "",
pos: "",
morph: "",
lemma: "",
dep: "",
head: 0,
},
],
}

Models

The model used in this library "for now" is "en_core_web_trf", Will be adding more models to it soon if someone asked for it.

License

This library is released under the MIT license.

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago