Template-based NLG framework for creating text narratives out of data
Project description
pynarrator
Template-based NLG framework for creating text narratives out of data
Installation
You can install the package from pip:
pip3 install pynarrator
import os
from pynarrator import narrate_descriptive, read_data
Basic Usage
pynarrator has a range of functions for creating template-based narratives and also embedded data set that you can use by calling read_data()
sales = read_data()
narrative = narrate_descriptive(sales, measure = 'Sales', dimensions = ['Region', 'Product'], coverage = 0.5)
Chat GPT
from pynarrator import gpt_get_completions, enhance_narrative, translate_narrative, summarize_narrative
enhance_narrative(narrative)
enhance_narrative(narrative, language = 'Spanish')
summarize_narrative(narrative)
Complete documentation is available at the narrator package website
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
pynarrator-0.0.1.8.tar.gz
(2.7 kB
view details)
Built Distribution
File details
Details for the file pynarrator-0.0.1.8.tar.gz
.
File metadata
- Download URL: pynarrator-0.0.1.8.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | baa57a91080230dc192879849504f5961fe4e887e95491a3a924389e20b2014b |
|
MD5 | 645ac95f8b2fcd4b60e23eed4dfd308e |
|
BLAKE2b-256 | c3c21dc39449dd8639f766e83588c3358735b6ce2a313b8d3530a3a1e7c7d6de |
File details
Details for the file pynarrator-0.0.1.8-py3-none-any.whl
.
File metadata
- Download URL: pynarrator-0.0.1.8-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76b3cbe73787a76d182582444012c82cd850df7a6ab55ec4090245c30bbf1f21 |
|
MD5 | b3d08e4d281eb34f90e4f48947e7eaf9 |
|
BLAKE2b-256 | fcb77cf01db990410fb66d15d094437a42aa08fea31c409d10e9ec10ce6c10d8 |