Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate inline entity values for synonyms #46

Open
GabrieleRomeo opened this issue Jun 10, 2020 · 2 comments
Open

Generate inline entity values for synonyms #46

GabrieleRomeo opened this issue Jun 10, 2020 · 2 comments
Labels
feature New feature or request question Interrogation on the functioning of the program

Comments

@GabrieleRomeo
Copy link

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

@SimGus
Copy link
Owner

SimGus commented Jun 10, 2020

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 SimGus added feature New feature or request question Interrogation on the functioning of the program labels Jun 10, 2020
@GabrieleRomeo
Copy link
Author

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 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request question Interrogation on the functioning of the program
Projects
None yet
Development

No branches or pull requests

2 participants