@telefonica/language-model-converter
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -11,3 +11,3 @@ "use strict"; | ||
console.log(` Examples: | ||
Convert all files in 'models' and its subfolders, starting with 'en', | ||
@@ -22,2 +22,6 @@ setting the locale to en-us | ||
.reduce((a, b) => a.concat(b), []); | ||
if (cli.files.length === 0) { | ||
console.error(`No files found`); | ||
process.exit(1); | ||
} | ||
let parser = new parser_1.LanguageModelParser(); | ||
@@ -24,0 +28,0 @@ let luisModel = parser.parse(cli.files, cli.culture); |
@@ -117,3 +117,3 @@ "use strict"; | ||
buildUtterance(sentence, intent, entities) { | ||
let normalizedSentence = sentence.replace(/[\W|_|\.]/g, capture => ' ' + capture + ' '); | ||
let normalizedSentence = sentence.replace(/[^\w\u00C0-\u017F|_|\.]/g, capture => ' ' + capture + ' '); | ||
normalizedSentence = normalizedSentence.replace(' º ', 'º'); | ||
@@ -120,0 +120,0 @@ normalizedSentence = normalizedSentence.replace(' ª ', 'ª'); |
{ | ||
"name": "@telefonica/language-model-converter", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Language model converter for yot-bot", | ||
@@ -30,3 +30,2 @@ "license": "UNLICENSED", | ||
"dependencies": { | ||
"@types/node": "^6.0.40", | ||
"commander": "^2.9.0", | ||
@@ -41,2 +40,3 @@ "glob": "^7.1.0", | ||
"@types/js-yaml": "^3.5.28", | ||
"@types/node": "^6.0.40", | ||
"@types/mocha": "^2.2.32", | ||
@@ -53,3 +53,3 @@ "@types/sinon": "^1.16.30", | ||
"sinon-chai": "^2.8.0", | ||
"tslint": "^3.14.0", | ||
"tslint": "^3.15.1", | ||
"typescript": "^2.0.0" | ||
@@ -56,0 +56,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
27756
3
354
0
18
- Removed@types/node@^6.0.40
- Removed@types/node@6.14.13(transitive)