Germandrummer92 / TalkingRobot

PSE
0 stars 0 forks source link

RL : switching to next component #13

Closed narigaoka closed 10 years ago

narigaoka commented 10 years ago

I tried to teach the system a new recipe and was able to get past the recipe name, country of origin and the ingredients. but when I enter "that is all" or something similar to the question "And what is the next ingredient" it answers with "This is a delicious recipe" although it should actually continue with the tools

rosine commented 10 years ago

even if you write something like "the last ingredient is" you will still be asked for the next iingredient. is there any way to get the robot ask for the other components?

narigaoka commented 10 years ago

for the error with "that is all"

in RecipeLearningDialog from line 152 to 157: RL_ASK_FIRST_TOOL , RL_ASK_FIRST_STEP and RL_EXIT all will equal "dm.RecipeLearning" and thus, the last one will get chosen in the loop (in our kw-Datas it is always RL_EXIT)

i hadn't been able to fix it at once ... but maybe someone else know how to solve this in a clever way faster than me. i tried to fix it by checking if the previous chosen state already was equal to "dm.RecipeLearning" but then it /always/ chooses RL_ASK_FIRST_TOOL. And when I tried to compare it with the current DialogState of the current dialog I got problems with learning the country ...

alexaand commented 10 years ago

I will have a look at it now edit: it should work now