Skip to main content

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

This package contains the functionality to transform structure data into natural language. Either by replying to questions or phrasing thoughts.

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

  1. 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

  1. To change your current directory to ./examples/

  2. Run some examples (e.g. python test_with_triples.py)

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Authors

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

cltl.reply_generation-0.0.dev9.tar.gz (28.3 kB view details)

Uploaded Source

File details

Details for the file cltl.reply_generation-0.0.dev9.tar.gz.

File metadata

  • Download URL: cltl.reply_generation-0.0.dev9.tar.gz
  • Upload date:
  • Size: 28.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.11

File hashes

Hashes for cltl.reply_generation-0.0.dev9.tar.gz
Algorithm Hash digest
SHA256 8f9e19a595713b21da40094f4551f46f650ece06f2a8f89d01f29439dc08aaec
MD5 665bc76b9ec1ecb442c00fa99f5f69b0
BLAKE2b-256 aff1f602945547677a0acbae5f590c1fea1fb7654a10625a3011a3e7dc0ef48e

See more details on using hashes here.

Supported by

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