The Leolani Language module for reply generation
Project description
cltl-languagegeneration
The natural language generation service (aka Leolani Reply generator) This service expects structured data and outputs natural language.
Description
Getting started
Prerequisites
This repository uses Python >= 3.7
Be sure to run in a virtual python environment (e.g. conda, venv, mkvirtualenv, etc.)
Installation
-
In the root directory of this repo run
pip install -e . python -c "import nltk; nltk.download('wordnet')"
Usage
For using this repository as a package different project and on a different virtual environment, you may
-
install a published version from PyPI:
pip install cltl.reply_generation
-
or, for the latest snapshot, run:
pip install git+git://github.com/leolani/cltl-languagegeneration.git@main
Then you can import it in a python script as:
import cltl.reply_generation
Examples
Please take a look at the example scripts provided to get an idea on how to run and use this package. Each example has a comment at the top of the script describing the behaviour of the script.
For these example scripts, you need
-
To change your current directory to ./examples/
-
Run some examples (e.g. python test_with_triples.py)
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
Hashes for cltl.reply_generation-0.0.dev8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b2206fd89d40ce22fb3a764e40dea8d2fd381e3d09313b6d1022c569eafe694 |
|
MD5 | 333380d051f065eef04c1912b412c4d1 |
|
BLAKE2b-256 | d54397b64604e051f2e7eaf36f84673af9b05dd4bf179c7fb16eb41233eabf07 |