mirror of
https://github.com/leon-ai/leon.git
synced 2024-12-26 02:04:08 +03:00
refactor(server): stop removing accent for NLU
This commit is contained in:
parent
fa6a5a43a6
commit
7654407fba
@ -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": {
|
||||||
|
@ -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')}!`)
|
||||||
|
Loading…
Reference in New Issue
Block a user