fix(basic.gblib): Spanish chars handling for NLP.

This commit is contained in:
Rodrigo Rodriguez 2021-02-02 15:37:35 -03:00
parent 41bffd0717
commit 62ef28d8ff
2 changed files with 3 additions and 8 deletions

View file

@ -527,17 +527,11 @@ export class SystemKeywords {
// Checks if the destination contains subfolders that
// need to be created.
let folder;
if (dest.indexOf('/') !== -1) {
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
// to the source and calling /content on drive API.

View file

@ -592,6 +592,7 @@ export class GBConversationalService {
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('/', ' ');