@nlpjs/nlu
Advanced tools
Comparing version 4.17.0 to 4.19.0
{ | ||
"name": "@nlpjs/nlu", | ||
"version": "4.17.0", | ||
"version": "4.19.0", | ||
"description": "Natural Language Understanding", | ||
@@ -33,3 +33,3 @@ "author": { | ||
}, | ||
"gitHead": "5a7730f9460a741b56386c8bd7d90ca25b53435f" | ||
"gitHead": "63a5930ca229d30990f752e16d12beefb99a14b2" | ||
} |
@@ -26,3 +26,2 @@ /* | ||
const { SpellCheck } = require('@nlpjs/similarity'); | ||
const useNoneFeature = require('./none-languages'); | ||
@@ -239,8 +238,3 @@ class Nlu extends Clonable { | ||
const { corpus } = input; | ||
const locale = input.locale || this.settings.locale; | ||
if ( | ||
(input.settings && input.settings.useNoneFeature) || | ||
((!input.settings || input.settings.useNoneFeature === undefined) && | ||
useNoneFeature[locale]) | ||
) { | ||
if (input.settings && input.settings.useNoneFeature) { | ||
corpus.push({ input: { nonefeature: 1 }, output: { None: 1 } }); | ||
@@ -358,3 +352,2 @@ } | ||
textToFeatures(srcInput) { | ||
const locale = srcInput.locale || this.settings.locale; | ||
const input = srcInput; | ||
@@ -384,9 +377,3 @@ const { tokens } = input; | ||
} | ||
if ( | ||
(input.settings || | ||
input.settings.useNoneFeature || | ||
((input.settings || input.settings.useNoneFeature === undefined) && | ||
useNoneFeature[locale])) && | ||
nonevalue | ||
) { | ||
if (input.settings && input.settings.useNoneFeature && nonevalue) { | ||
features.nonefeature = nonevalue; | ||
@@ -393,0 +380,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
62448
1355