SimGus / Chatette

A powerful dataset generator for Rasa NLU, inspired by Chatito
MIT License
318 stars 56 forks source link

Added Rasa Entities Role and Groups #52

Open tomgun132 opened 3 years ago

tomgun132 commented 3 years ago

As discussed in https://github.com/SimGus/Chatette/issues/48 List of added functionalities:

Bohemus307 commented 3 years ago

Any chance for a Yml adapter soon? It would be a great feature!!

SimGus commented 3 years ago

Hello @tomgun132, thanks a lot for your changes! I'll review them as soon as I can and let you know if any changes are required

SimGus commented 3 years ago

Hi @Bohemus307!

Since yaml is a superset of json, the json adapter can actually be considered a yaml adapter (which is the reason I never made a "proper" one). However, if you think it would make sense to create a proper one and want to discuss it further, you can open an issue about this :)

Cheers!

Bohemus307 commented 3 years ago

I wasnt aware of that thank you SimGus. I haven't tried to use the JSON in rasa yet do I just add it to the nlu directory or do I need to add it to the config as a custom directory?

SimGus commented 3 years ago

It's been a while I haven't used Rasa, but unless they changed something you should be able to simply add the generated file to the nlu directory

tomgun132 commented 3 years ago

Hi @Bohemus307 @SimGus
Yaml adapter is already included in this PR and should've been implemented if this PR is approved. Meanwhile, you can try it from my forked repository first and if you find some bugs or suggestion, please report it here :)

And also, yeah, you can put JSON file inside the NLU folder in your rasa training data directory and when you train, Rasa can detect whether the JSON format is the correct training data format or not. Though, it's easier to for human to read a yaml file than a json file.

tomgun132 commented 2 years ago

hi @SimGus, do you have any update on this? Sorry to interrupt if you're currently busy with your main work.

Atorpat commented 2 years ago

Hey @tomgun132,

Any update on this branch? I really would like to use roles and groups with chatette, but it seems the option is not available yet.

tomgun132 commented 2 years ago

Hi @Atorpat Roles and groups can already be used from my forked master branch with:

I want to go from @[place]("role": "departure", "group": "airport") to @[place]("role": "arrival")

It will generate something like:

- I want to go from [Berlin]{"entity": "place", "role": "departure", "group": "airport"} to [San Francisco]{"entity": "place", "role": "arrival"}.

I haven't used Rasa in a while since my project has changed but I think the format hasn't changed that much so you can still use it as it is.

Atorpat commented 2 years ago

@tomgun132

Thanks a lot, Tom. yes, the format is still the same. I will try the branch. It's a shame we don't have it on the main project.