Hi everyone,
I’m trying to use Number Ranges for the first time, and I’m running into some problems.
Number ranges are defined in the documentation like this: https://rhasspy.readthedocs.io/en/latest/training/#number-ranges
So I made a sentence with a Number Range
[SetTimer]
Set a timer for (0..60){Amount!int} (seconds | minutes){TimeUnit} [from now]
Then I use the web interface to input the sentence & Get the Intent with:
set a timer for 20 seconds from now
However, when it’s evaluated, I get the following output:
{"text": "Set a timer for 0..60 seconds from now", "intent": {"name": "SetTimer", "confidence": 0.88}, "entities": [{"entity": "Amount!int", "value": "0..60", "raw_value": "0..60", "start": 16, "raw_start": 16, "end": 21, "raw_end": 21}, {"entity": "TimeUnit", "value": "seconds", "raw_value": "seconds", "start": 22, "raw_start": 22, "end": 29, "raw_end": 29}], "raw_text": "Set a timer for 0..60 seconds from now", "tokens": ["Set", "a", "timer", "for", "0..60", "seconds", "from", "now"], "raw_tokens": ["Set", "a", "timer", "for", "0..60", "seconds", "from", "now"], "speech_confidence": 1, "slots": {"Amount!int": "0..60", "TimeUnit": "seconds"}
So the 20 is not recognized as a number and instead, the slot value is “0…60”
Another issue I have with this case is that the Slot name in the json is called “Amount!int”. I would have thought that the “!int” part would be stripped.
Any ideas on either of these things? Am I doing somethings wrong here?