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:
parent
cb18ed6397
commit
58ab0acdd8
@ -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) {
|
||||
|
@ -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": [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user