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,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.
|
||||
|
||||
|
|
|
@ -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('/', ' ');
|
||||
|
|
Loading…
Add table
Reference in a new issue