
Product
Introducing Socket Fix for Safe, Automated Dependency Upgrades
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
df-graph-construction
Advanced tools
**Dialog Flow Graph Construction** is python module add-on for [Dialog Flow Framework](https://github.com/deepmipt/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 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.
python setup.py install
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 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.
Please refer to CONTRIBUTING.md.
FAQs
**Dialog Flow Graph Construction** is python module add-on for [Dialog Flow Framework](https://github.com/deepmipt/dialog_flow_framework), a free and open-source software stack for creating chatbots, released under the terms of Apache License 2.0.
We found that df-graph-construction demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
Product
We’re excited to announce a powerful new capability in Socket: historical data and enhanced analytics.