@nlpjs/nlu
Advanced tools
Comparing version 4.9.0 to 4.9.1
{ | ||
"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 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43302
1277
Updated@nlpjs/neural@^4.9.1
Updated@nlpjs/similarity@^4.9.1