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

@nlpjs/nlu

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nlpjs/nlu - npm Package Compare versions

Comparing version 4.9.0 to 4.9.1

8

package.json
{
"name": "@nlpjs/nlu",
"version": "4.9.0",
"version": "4.9.1",
"description": "Natural Language Understanding",

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

"@nlpjs/language-min": "^4.6.0",
"@nlpjs/neural": "^4.9.0",
"@nlpjs/similarity": "^4.0.0-rc.4"
"@nlpjs/neural": "^4.9.1",
"@nlpjs/similarity": "^4.9.1"
},
"gitHead": "4d1bbc367e7488a4bf34973f2b4444978857493e"
"gitHead": "8133ce0c2da2d1c0c11ca787db27a4116215b875"
}

@@ -0,0 +0,0 @@ /*

@@ -269,12 +269,11 @@ /*

filterNonActivated(srcInput) {
if (!this.intentFeatures || !srcInput.classifications) {
return srcInput;
}
const allowList = this.getAllowList(srcInput.tokens);
allowList.None = 1;
const { classifications } = srcInput;
for (let i = 0; i < classifications.length; i += 1) {
const classification = classifications[i];
if (!allowList[classification.intent]) {
classification.score = 0;
if (this.intentFeatures && srcInput.classifications) {
const allowList = this.getAllowList(srcInput.tokens);
allowList.None = 1;
const { classifications } = srcInput;
for (let i = 0; i < classifications.length; i += 1) {
const classification = classifications[i];
if (!allowList[classification.intent]) {
classification.score = 0;
}
}

@@ -281,0 +280,0 @@ }

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