1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-11-27 08:06:03 +03:00

refactor(server): auto capitalize first letter of spaCy entities

This commit is contained in:
louistiti 2022-07-21 23:03:48 +08:00
parent cb18ed6397
commit 58ab0acdd8
No known key found for this signature in database
GPG Key ID: 7ECA3DD523793FE6
2 changed files with 2 additions and 4 deletions

View File

@ -225,7 +225,7 @@ class Nlu {
const spacyEntity = {
[entity]: {
options: {
[resolution.value]: [resolution.value]
[resolution.value]: [string.ucfirst(resolution.value)]
}
}
}
@ -396,7 +396,6 @@ class Nlu {
opts = opts || {
mute: false // Close Leon mouth e.g. over HTTP
}
utterance = string.ucfirst(utterance)
if (!this.hasNlpModels()) {
if (!opts.mute) {

View File

@ -8,8 +8,7 @@
"Can you create a reminder list for me?",
"Make a food list",
"I want a shopping list",
"Help me to get material list",
"Can you add a reminder list?"
"Help me to get material list"
],
"entities": [
{