Skip to content

Commit

Permalink
fix(basic.gblib): Spanish chars handling for NLP.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Feb 2, 2021
1 parent 41bffd0 commit 62ef28d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/basic.gblib/services/SystemKeywords.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
else {
folder = await client.api(
`${baseUrl}/drive/root:/${root}`)
.get();
await this.createFolder(pathOnly);
}

// Performs the conversion operation getting a reference
// to the source and calling /content on drive API.

Expand Down
1 change: 1 addition & 0 deletions packages/core.gbapp/services/GBConversationalService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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('/', ' ');
Expand Down

0 comments on commit 62ef28d

Please sign in to comment.