I get an error with training as soon as I try to use a second slot in my sentences.ini.
Here my slots:
{
"activities": [
"netflix",
"amazon",
"fernsehen",
"youtube"
],
"color": [
"red",
"green",
"blue"
],
"rooms": [
"(küche):kitchen",
"(schlafzimmer):bedroom",
"(vorraum|flur):hall",
"(wohnzimmer|stube):living room",
"(bad):bathroom",
"(klo|wc|toilette):toilet",
"(garten|balkon|terrasse):garden",
"(keller):cellar"
],
"states": [
"(ein|an|auf|rauf|offen|hinauf):on",
"(aus|zu|runter|hinunter|herunter):off"
]
And my sentences.ini:
[ChangeLightState]
light_name = (wohnzimmerlampe | garagenlicht | licht) {name}
\[schalte|schalt|mach|mache] [(die | das)] <light_name> [(im|in der|auf dem)] [($rooms){room}] ($states){state}
[SetActivity]
\[schalte|schalt] [um] [auf] ($activities){activity}
When using only ChangeLightState everything works fine. But as soon, as i write a sentence with another slot (SetActivity in this case), I get the following error:
ERROR:main:Training failed: <Task: ini_graph>: TaskError
PythonAction Error
Traceback (most recent call last):
File “/usr/local/lib/python3.6/dist-packages/doit/action.py”, line 424, in execute
returned_value = self.py_callable(*self.args, **kwargs)
File “/usr/share/rhasspy/rhasspy/train/init.py”, line 206, in do_intents_to_graph
graph = intents_to_graph(intents, replacements)
File “/usr/local/lib/python3.6/dist-packages/rhasspynlu/jsgf_graph.py”, line 213, in intents_to_graph
num_sentences_lcm = lcm(*intent_counts.values())
File “/usr/local/lib/python3.6/dist-packages/rhasspynlu/jsgf_graph.py”, line 491, in lcm
nums_lcm = (nums_lcm * n) // math.gcd(nums_lcm, n)
ZeroDivisionError: integer division or modulo by zero
Any idea, what is wrong here?
Thx
Stefan