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 details)

Uploaded Source

Built Distribution

zdiab_tools-0.3-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file zdiab_tools-0.3.tar.gz.

File metadata

  • Download URL: zdiab_tools-0.3.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for zdiab_tools-0.3.tar.gz
Algorithm Hash digest
SHA256 bb03e6e7e0caf1637b50a0ee2cc670c8afa4eb66bc28a219e985704b4b4240eb
MD5 c7231be553878247565aa5e4d2daca26
BLAKE2b-256 a24143d863a007ec1694fefbae57d184bc26e9f4aec5c4d207516f1c9f956532

See more details on using hashes here.

File details

Details for the file zdiab_tools-0.3-py3-none-any.whl.

File metadata

  • Download URL: zdiab_tools-0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for zdiab_tools-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2d889a18203519edf648a23c3202c21fff4aed342779bdd206066e44e6fff199
MD5 6e05da107f75e6ab4a0d9aeb7b313111
BLAKE2b-256 94402967a4318609c03cbeed98d68111582840fdc7f0dd8b478a5accf0f9124b

See more details on using hashes here.

Supported by

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