synesthesiam / voice2json

Command-line tools for speech and intent recognition on Linux
MIT License
1.09k stars 63 forks source link

Parsing of name substitution and optional in slots file gives wrong result. #6

Closed johanneskropf closed 4 years ago

johanneskropf commented 4 years ago

When I use an optional and name replacement like this in a a slot file called items for example:

([das] schlafzimmerlicht){item:Schlafzimmerlicht}

and use it in a sentences.ini like this:

[Licht]
($items) (einschalten:ON | ausschalten:OFF){command}

recognize intent will give me for the text das schlafzimmerlicht ausschalten the result: : Schlafzimmerlicht OFF and in the slots:

item:" : Schlafzimmerlicht"
command:"OFF"

I dont think the : for the item slot should be there? Johannes

synesthesiam commented 4 years ago

I just tested this on version 2 of voice2json, and it works now :)