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.2.0 to 4.3.0

10

package.json
{
"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 @@ /*

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