rodrigopivi / Chatito

🎯🗯 Dataset generation for AI chatbots, NLP tasks, named entity recognition or text classification models using a simple DSL!
https://rodrigopivi.github.io/Chatito/
MIT License
875 stars 157 forks source link

how to use regex_features? #85

Open cold-eye opened 4 years ago

cold-eye commented 4 years ago

i cant find an example to generate regex_features, can you give some examples?

rodrigopivi commented 4 years ago

Hi @qinyukun-seu ,

The generated Rasa NLU json compatible dataset that this tool generates will include the "regex_features" field but it will be empty by default.

If you want to declare custom regex features for your dataset, you can edit that generated json file for the rasa adapter, or you can use the CLI and pass the formatOptions argument pointing to a template json file containing those regex_features field defined, and that file will be used as a template for the dataset. Let me know if that works for you.