Skip to main content

Rasa preprocessing package

Project description

zdiab-tools

zdiab-tools is a Python library for preprocessing and automating functions for Rasa NLU

Installation

Use the package manager pip to install zdiab-tools.

pip install zdiab-tools

Usage

from zdiab_tools import Automate

### returns 'slot'
Automate.add_slot(name_form, list_slots)

### returns 'conf_file'
Automate.conf_file(path, language='fr', policies=False):

### returns 'pickle file'
Automate.def pickle_action(path):

Function

#######################################
## Fonction pour ajouter avec rasa YAML 
#######################################

def add_rasa_file(yaml_string, path):
def add_intent(name, list_action):
def add_forms(name, list_slots):
def add_slot(name_form, list_slots):
def add_responses(list_name, list_action):
def add_file(path, str):

#####################
## Fonction ALTER !!!
#####################

def alter_intent(name, list_action):
def alter_slot(name_form, list_slots):
def alter_forms(name, list_slots):
def alter_responses(list_name, list_action):
def alter_file(path, li, required=False):

############################################
## Fonction pour AJOUTER NLU DATA ##########
############################################

def add_nluData(name_intent, list_exemple, head=False):

############################################
## Fonction pour Alter Config FILE #########
############################################

def conf_file(path, language='fr', policies=False):

############################################
## Fonction Create and Save Action FILE ####
############################################

def pickle_action(path):
def Action_file(path, filename="test.pkl"):

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

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

zdiab_tools-0.3.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

zdiab_tools-0.3-py3-none-any.whl (5.0 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