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

nlptoolkit-annotatedsentence

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nlptoolkit-annotatedsentence - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

dist/AnnotatedSentence.d.ts

@@ -17,3 +17,3 @@ import { Sentence } from "nlptoolkit-corpus/dist/Sentence";

*/
constructor(fileName: string);
constructor(fileName?: string);
/**

@@ -20,0 +20,0 @@ * Returns file name of the sentence

@@ -25,7 +25,9 @@ (function (factory) {

super();
this.file = fileName;
let data = fs.readFileSync(fileName, 'utf8');
let wordList = data.split("\n")[0].split(" ");
for (let word of wordList) {
this.words.push(new AnnotatedWord_1.AnnotatedWord(word));
if (fileName != undefined) {
this.file = fileName;
let data = fs.readFileSync(fileName, 'utf8');
let wordList = data.split("\n")[0].split(" ");
for (let word of wordList) {
this.words.push(new AnnotatedWord_1.AnnotatedWord(word));
}
}

@@ -32,0 +34,0 @@ }

{
"name": "nlptoolkit-annotatedsentence",
"version": "1.0.1",
"version": "1.0.2",
"description": "",

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

Sorry, the diff of this file is not supported yet

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