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
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
zdiab_tools-0.3.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for zdiab_tools-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d889a18203519edf648a23c3202c21fff4aed342779bdd206066e44e6fff199 |
|
MD5 | 6e05da107f75e6ab4a0d9aeb7b313111 |
|
BLAKE2b-256 | 94402967a4318609c03cbeed98d68111582840fdc7f0dd8b478a5accf0f9124b |