@nlpjs/nlu
Advanced tools
Comparing version 4.2.0 to 4.3.0
{ | ||
"name": "@nlpjs/nlu", | ||
"version": "4.2.0", | ||
"version": "4.3.0", | ||
"description": "Natural Language Understanding", | ||
@@ -28,8 +28,8 @@ "author": { | ||
"dependencies": { | ||
"@nlpjs/core": "^4.1.4", | ||
"@nlpjs/language-min": "^4.1.2", | ||
"@nlpjs/neural": "^4.1.4", | ||
"@nlpjs/core": "^4.3.0", | ||
"@nlpjs/language-min": "^4.3.0", | ||
"@nlpjs/neural": "^4.3.0", | ||
"@nlpjs/similarity": "^4.0.0-rc.4" | ||
}, | ||
"gitHead": "11c90c75ffee31b778a1568600bb56cc808956e6" | ||
"gitHead": "68b063504d4cc94d11de373516114befc7c4e648" | ||
} |
@@ -131,6 +131,3 @@ /* | ||
} | ||
return tokens | ||
.slice() | ||
.sort() | ||
.join(); | ||
return tokens.slice().sort().join(); | ||
} | ||
@@ -312,6 +309,12 @@ | ||
} | ||
const finalDomain = | ||
domainName === defaultDomainName | ||
? this.intentDict[classifications[0].intent] | ||
: domainName; | ||
let finalDomain; | ||
if (domainName === defaultDomainName) { | ||
if (classifications && classifications.length) { | ||
finalDomain = this.intentDict[classifications[0].intent]; | ||
} else { | ||
finalDomain = defaultDomainName; | ||
} | ||
} else { | ||
finalDomain = domainName; | ||
} | ||
input.classification = { | ||
@@ -318,0 +321,0 @@ domain: finalDomain, |
@@ -0,0 +0,0 @@ /* |
@@ -223,4 +223,4 @@ /* | ||
const promises = locales | ||
.filter(locale => this.domainManagers[locale]) | ||
.map(locale => this.domainManagers[locale].train(settings.settings)); | ||
.filter((locale) => this.domainManagers[locale]) | ||
.map((locale) => this.domainManagers[locale].train(settings.settings)); | ||
return Promise.all(promises); | ||
@@ -227,0 +227,0 @@ } |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,0 @@ /* |
@@ -0,0 +0,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
1233
41933
Updated@nlpjs/core@^4.3.0
Updated@nlpjs/language-min@^4.3.0
Updated@nlpjs/neural@^4.3.0