Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@telefonica/language-model-converter

Package Overview
Dependencies
Maintainers
8
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@telefonica/language-model-converter - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

6

lib/index.js

@@ -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);

2

lib/parser.js

@@ -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

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