A package that converts .csv file to rasa compatible file
Project description
Easy-Rasa
Why?
To make it easier to create rasanlu.md and domain.yml file.
What is it?
This package helps you convert a preformatted .csv file to Rasa acceptable file formats.
The standard format to be followed while creating a .csv is shown in nlu_sample_format_for_conversion.csv file. This CSV file is converted to rasa format nlu.md and domain.yml file.
Run command download_csv() to download sample file that you can fill.
from easy-rasa import download_csv
download_csv()
This will download a preloaded file called nlu_sample_format_for_conversion.csv. Search the directory where you ran the download_csv() command to find the file.
Fill the .csv file by follwing these instructions:
- First rows consist of intent names. Add any number of intents in the first row.
- The succeeding rows. i.e. after the intent names row, add all your training phrases/sentences.
- save the file
STEPS TO CREATE nlu.md & domain.yml file:
- Call the function/method
create_rasa_nlu(csv_path, create_files_path). Don't forget to specify path to the CSV file using the path parameter, and path where the output files need to be created via thecreate_files_pathparameter.
from easy-rasa import create_rasa_files
create_rasa_files(csv_path, create_files_path)
#csv_path and create_files_path can both be ./
Check the directory (create_files_path) to file respective nlu.md and domain.yml files.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file easy-rasa-1.0.tar.gz.
File metadata
- Download URL: easy-rasa-1.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a51a7b0bafcde84ede1ccd4608ed314d12a27d0050c200614ba9313cf2bb8f0
|
|
| MD5 |
bcffaf993837be25c600128c2a35dd3f
|
|
| BLAKE2b-256 |
f2349269b3c72a35b80481a1de0ba45be8f5d9d2d381746a730805ceb5931a1e
|
File details
Details for the file easy_rasa-1.0-py3-none-any.whl.
File metadata
- Download URL: easy_rasa-1.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b1223a0b1e07ec8665d970938df9aaca606a55c00f467b9634c1ed653a79608
|
|
| MD5 |
286d3fa8e16e3b870a75ec7dd811bf6e
|
|
| BLAKE2b-256 |
49d2875def54c859661b121ee3e086cb4a31763d5a3ea9402203eba2e337ef8c
|