Chatette icon indicating copy to clipboard operation
Chatette copied to clipboard

Added Rasa Entities Role and Groups

Open tomgun132 opened this issue 3 years ago • 10 comments

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

  • Entities Roles and Groups with chatette annotation format. For example
I want to go from @[place]("role": "departure", "group": "airport") to @[place]("role": "arrival")
  • Added Rasa YAML adapter format which can be called with argument -a rasayml or -a rasayaml
  • added inline entity support for markdown and yaml adapter as requested here: https://github.com/SimGus/Chatette/issues/46

tomgun132 avatar Jun 27 '21 04:06 tomgun132

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

Bohemus307 avatar Jul 01 '21 12:07 Bohemus307

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 avatar Jul 01 '21 17:07 SimGus

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!

SimGus avatar Jul 01 '21 17:07 SimGus

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?

Bohemus307 avatar Jul 01 '21 17:07 Bohemus307

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

SimGus avatar Jul 01 '21 18:07 SimGus

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 avatar Jul 02 '21 01:07 tomgun132

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

tomgun132 avatar Nov 16 '21 03:11 tomgun132

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.

Atorpat avatar Aug 09 '22 15:08 Atorpat

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.

tomgun132 avatar Aug 10 '22 01:08 tomgun132

@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.

Atorpat avatar Aug 10 '22 08:08 Atorpat