Dialog Flow Graph Construction
Dialog Flow Graph Construction is python module add-on for Dialog Flow Framework, a free and open-source software stack for creating chatbots, released under the terms of Apache License 2.0.
Dialog Flow Graph Construction allows you to automatically generate dff scripts from example dialogues.
Quick Start
Installation
python setup.py install
Usage
df_gc --help
usage: df_gc [-h] (--pretrained-model PATH_TO_MODEL | --dataset-from-huggingface DATASET_NAME | --dataset-from-file DATASET_FILE) [--save-pretrained FILE_TO_SAVE_TO]
EXAMPLE_DIRECTORY OUTPUT_FILE
Use example dialogues to construct a dialog flow graph saved in output_file.
positional arguments:
EXAMPLE_DIRECTORY directory containing example dialogues
OUTPUT_FILE file with the resulting structure
optional arguments:
-h, --help show this help message and exit
--pretrained-model PATH_TO_MODEL
file previously generated by --save_pretrained
--dataset-from-huggingface DATASET_NAME
train graph model on a dataset from huggingface
--dataset-from-file DATASET_FILE
train graph model on a dataset stored locally
--save-pretrained FILE_TO_SAVE_TO
file to save trained model to
df_gc --dataset-from-file examples/example_dataset.dialogues examples/example_dialogues examples/output.json
Dialogue formats
Dialogue files in the EXAMPLE_DIRECTORY folder should have the following structure:
{
"dialogue_id": "unique identifier",
"turns": {
"speaker": "array of 0 and 1 where 0 corresponds to a user utterance and 1 corresponds to a system utterance",
"utterance": "array of strings"
}
}
Dialogue dataset is a list of such dictionaries.
To get more advanced examples, take a look at examples on GitHub.
Contributing to the Dialog Flow Graph Construction
Please refer to CONTRIBUTING.md.
Metadata
Release files for df-graph-construction 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| df_graph_construction-0.1.0.tar.gz | 24.3 kB | Without provenance | Details for df_graph_construction-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| df_graph_construction-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for df_graph_construction-0.1.0-py3-none-any.whl |
Total release size: 56.6 kB
Release files / df_graph_construction-0.1.0.tar.gz
| Download URL | df_graph_construction-0.1.0.tar.gz |
|---|---|
| Size | 24.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8493d5e89c3464c7d552dba1a17886b2fe6bc733ca776ad750e3ba5dc126324d
|
|
BLAKE2b-256 checksum How to use checksums |
f87c537d8c26a3660cb5c770997ffda13898983389b3d76b8fa3bab91260d838
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Release files / df_graph_construction-0.1.0-py3-none-any.whl
| Download URL | df_graph_construction-0.1.0-py3-none-any.whl |
|---|---|
| Size | 32.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e2b0fd617132df220a490c00564016e083bc2465422ec650c28f77e9a93f9b85
|
|
BLAKE2b-256 checksum How to use checksums |
1bdbf5e69fbcff771d55b45382f637b1c1ea7728beec8bf8006f040a9292644f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Security for df-graph-construction 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.