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

@nlpjs/utils

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nlpjs/utils - npm Package Compare versions

Comparing version 4.8.2 to 4.8.3

src/markov.js

4

package.json
{
"name": "@nlpjs/utils",
"version": "4.8.2",
"version": "4.8.3",
"description": "NLP utils",

@@ -30,3 +30,3 @@ "author": {

},
"gitHead": "999815e4fe26238edf0de7ebc63bfed7aca6d574"
"gitHead": "bdb43424794d81aaf87b26a0a2491b286c2ea67a"
}

@@ -47,5 +47,17 @@ /*

function wordPunctTokenize(text) {
return text
.split(/([A-zÀ-ÿ-]+|[0-9._]+|.|!|\?|'|"|:|;|,|-)/i)
.filter((x) => x.trim());
}
function lowerNormalize(text) {
return text.toLowerCase();
}
module.exports = {
tokenize,
normalize,
wordPunctTokenize,
lowerNormalize,
};

@@ -26,2 +26,3 @@ /*

const TfIdf = require('./tfidf');
const MarkovChain = require('./markov');

@@ -31,2 +32,3 @@ module.exports = {

TfIdf,
MarkovChain,
};
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