Hello,
Here’s part of the code for nlu.yml
code
- regex: ent_img
examples: |
- ["[a-zA-Z]"]
- intent: int_add_img
examples: |
- Show image [A]{"entity": "ent_img"}
- Show image [B]{"entity": "ent_img"}
- Show image [C]{"entity": "ent_img"}
- Show image [D]{"entity": "ent_img"}
- Show image [E]{"entity": "ent_img"}
- Show image [F]{"entity": "ent_img"}
- Show image [G]{"entity": "ent_img"}
- Show image [H]{"entity": "ent_img"}
- Show image [I]{"entity": "ent_img"}
- Show image [J]{"entity": "ent_img"}
From my understanding, after providing the model with many examples and training it, it should understand that typing “Show image Z” should display the image with the name Z.
However, it works only on the examples defined in the nlu, so I have to add every single case.
Please suggest a solution and let me know if more info is needed.
Thank you.