Skip to main content

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 the create_files_path parameter.
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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

easy-rasa-1.0.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

easy_rasa-1.0-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page