Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ner-node

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ner-node - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

2

package.json
{
"name": "ner-node",
"version": "0.0.5",
"version": "0.0.6",
"description": "Node library for spawning NER server and pinging it to get entities out of raw text.",

@@ -5,0 +5,0 @@ "main": "SocketNER.js",

<h1>NER-Node</h2>
<h5>Library to connect to Stanford NER local Server, send in the Raw Text and get back Entity JSON</h5>
<h4><i>4X performance boost with same syntax in versions 0.0.5 and further. Please do upgrade.</i></h4>
<h4><i>4X performance boost with same syntax in versions 0.0.6 and further. Please do upgrade.</i></h4>

@@ -33,3 +33,3 @@ <h4>Installation</h4>

<h4>Updates</h4>
<p>Its 20-Feb-2016. I have pushed an update to make the library run 4x faster than previous versions. so please <strong>use version 0.0.5</strong> or lastest for production purposes. There has been no change in the Syntax.</p>
<p>Its 20-Feb-2016. I have pushed an update to make the library run 4x faster than previous versions. so please <strong>use version 0.0.6</strong> or lastest for production purposes. There has been no change in the Syntax.</p>

@@ -36,0 +36,0 @@ <h4>Issues & Suggestions</h4>

@@ -42,4 +42,9 @@ var spawn = require("child_process").spawn

client.stdout.once("data", function (data) {
if (data.toString().search("Input some text") > -1) {
// This "data" listener would be removed soon.
client.stdout.on("data", reader)
function reader(data) {
if (data.toString().trim() === "") {
// Keeping the "data" listener untill the client is started.
client.stdout.removeListener("data", reader)
// Running Callback in fiber to make it sync aware

@@ -50,3 +55,3 @@ sync.fiber(function () {

}
})
}
}

@@ -57,7 +62,6 @@

client.stdout.once("data", function (data) {
taggedText = data.toString()
// Trim() is necessary to avoid leading and follwing line breaks.
var taggedText = data.toString().trim()
// Synchronize module follows (err, data) format for cb.
// Trim() is necessary to avoid leading and follwing
// line breaks.
cb(null, socketNER.parser(taggedText.trim(), reqEntity))
cb(null, socketNER.parser(taggedText, reqEntity))
})

@@ -64,0 +68,0 @@ }

// Terminal command to run the test file :- node test.js
var rawText =
[
var rawText = [
'Steven Paul Jobs (/\ˈdʒɒbz/; February 24, 1955 – October 5,',

@@ -5,0 +4,0 @@ '2011) was an American technology entrepreneur, visionary and ',

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc