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.17.0 to 4.19.0

4

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

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