@nlpjs/nlu
Advanced tools
Comparing version 4.22.0 to 4.22.5
@@ -0,0 +0,0 @@ # MIT License |
{ | ||
"name": "@nlpjs/nlu", | ||
"version": "4.22.0", | ||
"version": "4.22.5", | ||
"description": "Natural Language Understanding", | ||
"author": { | ||
"email": "jesus.seijas@axa.com", | ||
"email": "opensource@axa.com", | ||
"name": "Jesus Seijas" | ||
@@ -18,3 +18,3 @@ }, | ||
{ | ||
"email": "jesus.seijas@axa.com", | ||
"email": "opensource@axa.com", | ||
"name": "Jesus Seijas" | ||
@@ -29,8 +29,8 @@ } | ||
"dependencies": { | ||
"@nlpjs/core": "^4.22.0", | ||
"@nlpjs/language-min": "^4.21.1", | ||
"@nlpjs/neural": "^4.21.1", | ||
"@nlpjs/similarity": "^4.21.1" | ||
"@nlpjs/core": "^4.22.5", | ||
"@nlpjs/language-min": "^4.22.2", | ||
"@nlpjs/neural": "^4.22.2", | ||
"@nlpjs/similarity": "^4.22.5" | ||
}, | ||
"gitHead": "725dcf52c1b521e4575edb51917690ce051b9434" | ||
"gitHead": "208e93aa485fef706a18eb66fe51f66a7a407779" | ||
} |
@@ -342,3 +342,3 @@ ![NLPjs logo](../../screenshots/nlplogo.gif) | ||
If you need to contact us, you can do it at the email jesus.seijas@axa.com | ||
If you need to contact us, you can do it at the email opensource@axa.com | ||
@@ -345,0 +345,0 @@ ## License |
@@ -150,6 +150,13 @@ /* | ||
} | ||
const item = settings.fieldNameSrc | ||
let item = settings.fieldNameSrc | ||
? text[settings.fieldNameSrc] | ||
: text.text || text.utterance || text.texts || text.utterances; | ||
if (item) { | ||
: text.texts || text.utterances; | ||
if (!item && typeof item !== 'string') { | ||
if (typeof text.text === 'string') { | ||
item = text.text; | ||
} else if (typeof text.utterance === 'string') { | ||
item = text.utterance; | ||
} | ||
} | ||
if (item || typeof item === 'string') { | ||
const result = await this.prepare(item, settings); | ||
@@ -156,0 +163,0 @@ const targetField = settings.fieldNameTgt || 'tokens'; |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
1370
62144
1
Updated@nlpjs/core@^4.22.5
Updated@nlpjs/language-min@^4.22.2
Updated@nlpjs/neural@^4.22.2
Updated@nlpjs/similarity@^4.22.5