1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-12-25 09:44:22 +03:00

refactor(server): stop removing accent for NLU

This commit is contained in:
Louistiti 2019-05-18 21:23:06 +08:00
parent fa6a5a43a6
commit 7654407fba
2 changed files with 3 additions and 3 deletions

View File

@ -2,8 +2,8 @@
"todolist": { "todolist": {
"create_list": { "create_list": {
"expressions": [ "expressions": [
"Créé la liste", "Crée la liste",
"Créé une liste" "Crée une liste"
] ]
}, },
"rename_list": { "rename_list": {

View File

@ -61,7 +61,7 @@ class Nlu {
log.title('NLU') log.title('NLU')
log.info('Processing...') log.info('Processing...')
query = string.removeAccents(string.ucfirst(query)) query = string.ucfirst(query)
if (Object.keys(this.classifier).length === 0) { if (Object.keys(this.classifier).length === 0) {
this.brain.talk(`${this.brain.wernicke('random_errors')}!`) this.brain.talk(`${this.brain.wernicke('random_errors')}!`)