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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file pynarrator-0.0.1.10-py3-none-any.whl
.
File metadata
- Download URL: pynarrator-0.0.1.10-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 | d3dbf34bd18dee7fa69507510392b6bafafec816520d44ddaed532450761b146 |
|
MD5 | 59d083f010bfa7e9711c184257ed1f40 |
|
BLAKE2b-256 | d5197d12f0e7db7a2cdb1ad8cd3aa0a96b9269d33f041d406ba23b2ec1979a13 |