@nlpjs/nlu
Advanced tools
Comparing version 4.0.0-rc.2 to 4.0.0-rc.4
{ | ||
"name": "@nlpjs/nlu", | ||
"version": "4.0.0-rc.2", | ||
"version": "4.0.0-rc.4", | ||
"description": "Natural Language Understanding", | ||
@@ -28,8 +28,8 @@ "author": { | ||
"dependencies": { | ||
"@nlpjs/core": "^4.0.0-rc.2", | ||
"@nlpjs/language": "^4.0.0-rc.2", | ||
"@nlpjs/neural": "^4.0.0-rc.2", | ||
"@nlpjs/similarity": "^4.0.0-rc.2" | ||
"@nlpjs/core": "^4.0.0-rc.4", | ||
"@nlpjs/language": "^4.0.0-rc.4", | ||
"@nlpjs/neural": "^4.0.0-rc.4", | ||
"@nlpjs/similarity": "^4.0.0-rc.4" | ||
}, | ||
"gitHead": "eadc0529f22f2e5545013f1a05d0468fc784486f" | ||
"gitHead": "390f1aec656eb1aef3334a35835e53b0f56f2bbb" | ||
} |
@@ -0,0 +0,0 @@ # `neural` |
@@ -281,3 +281,4 @@ /* | ||
const input = srcInput; | ||
if (input.settings.useStemDict) { | ||
const settings = this.applySettings({ ...input.settings }, this.settings); | ||
if (settings.useStemDict) { | ||
const result = await this.classifyByStemDict(input.utterance, domainName); | ||
@@ -298,3 +299,6 @@ if (result) { | ||
} | ||
const nluAnswer = await nlu.process(input.utterance, input.settings); | ||
const nluAnswer = await nlu.process( | ||
input.utterance, | ||
input.settings || this.settings | ||
); | ||
let classifications; | ||
@@ -318,3 +322,7 @@ if (Array.isArray(nluAnswer)) { | ||
let domain = defaultDomainName; | ||
if (input.settings.trainByDomain) { | ||
if ( | ||
(input.settings.trainByDomain === undefined && | ||
this.settings.trainByDomain) || | ||
input.settings.trainByDomain | ||
) { | ||
const nlu = this.domains[defaultDomainName]; | ||
@@ -321,0 +329,0 @@ let classifications = await nlu.process(input.utterance); |
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
41403
1195
Updated@nlpjs/core@^4.0.0-rc.4
Updated@nlpjs/language@^4.0.0-rc.4
Updated@nlpjs/neural@^4.0.0-rc.4