fix(basic.gblib): Spanish chars handling for NLP.
This commit is contained in:
parent
41bffd0717
commit
62ef28d8ff
2 changed files with 3 additions and 8 deletions
|
@ -527,15 +527,9 @@ export class SystemKeywords {
|
||||||
// Checks if the destination contains subfolders that
|
// Checks if the destination contains subfolders that
|
||||||
// need to be created.
|
// need to be created.
|
||||||
|
|
||||||
let folder;
|
|
||||||
if (dest.indexOf('/') !== -1) {
|
if (dest.indexOf('/') !== -1) {
|
||||||
const pathOnly = path.dirname(dest);
|
const pathOnly = path.dirname(dest);
|
||||||
folder = await this.createFolder(pathOnly);
|
await this.createFolder(pathOnly);
|
||||||
}
|
|
||||||
else {
|
|
||||||
folder = await client.api(
|
|
||||||
`${baseUrl}/drive/root:/${root}`)
|
|
||||||
.get();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Performs the conversion operation getting a reference
|
// Performs the conversion operation getting a reference
|
||||||
|
|
|
@ -592,6 +592,7 @@ export class GBConversationalService {
|
||||||
text = text.replace('what´s', 'what is');
|
text = text.replace('what´s', 'what is');
|
||||||
text = text.replace('what\'s', 'what is');
|
text = text.replace('what\'s', 'what is');
|
||||||
text = text.replace('?', ' ');
|
text = text.replace('?', ' ');
|
||||||
|
text = text.replace('¿', ' ');
|
||||||
text = text.replace('!', ' ');
|
text = text.replace('!', ' ');
|
||||||
text = text.replace('.', ' ');
|
text = text.replace('.', ' ');
|
||||||
text = text.replace('/', ' ');
|
text = text.replace('/', ' ');
|
||||||
|
|
Loading…
Add table
Reference in a new issue