Chatette icon indicating copy to clipboard operation
Chatette copied to clipboard

Generate inline entity values for synonyms

Open GabrieleRomeo opened this issue 5 years ago • 2 comments
trafficstars

Hi all,

is there a way for generating inline entity values for synonyms within intents? like:

## intent:my_intent
- Can you give me the available for [DataManagement]{"entity": "code", "value": "LA014")

Thanks

GabrieleRomeo avatar Jun 10 '20 07:06 GabrieleRomeo

Hello,

Inline entity values in markdown are not currently supported, simply because they didn't used to be documented in Rasa's documentation when the markdown adapter was implemented. The same is true for roles and groups.

As adding support for those inline entity values shouldn't be too hard to implement, you can rest assured that this will be supported in the next update of Chatette.

That being said, entity values are supported if you use the JSON adapter (which will thus output JSON files that you can use with Rasa NLU).

To do that in the case of your example, you would use the following syntax in your template file:

@[code]
  DataManagement = LA014

which will create an entity with name code, value LA014 and text DataManagement.

To run Chatette using the JSON adapter, you'll need to use the command line argument -a or --adapter:

python3 -m chatette -a json <path/to/template-file>

Note that if you don't use this argument at all, Chatette will default to using the JSON adapter anyway.

I hope that clears it out.

Cheers :)

SimGus avatar Jun 10 '20 20:06 SimGus

Hi,

thanks for your clarification

you can rest assured that this will be supported in the next update of Chatette.

That's a good news 😃

GabrieleRomeo avatar Jun 11 '20 08:06 GabrieleRomeo