Text Generation Using Keywords
Project description
keytotext
Idea is to build a model which will take keywords as inputs and generate sentences as outputs.
Model:
Keytotext is based on the Amazing T5 Model:
k2t
: Modelk2t-tiny
: Modelk2t-base
: Modelmrm8488/t5-base-finetuned-common_gen
(by Manuel Romero): Model
Training Notebooks can be found in the Training Notebooks
Folder
Note: To add your own model to keytotext Please read Models Documentation
Usage:
Example Notebooks can be found in the Notebooks
Folder
pip install keytotext
UI:
pip install streamlit-tags
This uses a custom streamlit component built by me: GitHub
API:
The API is hosted in the Docker container and it can be run quickly. Follow instructions below to get started
docker pull gagan30/keytotext
docker run -dp 8000:8000 gagan30/keytotext
This will start the api at port 8000 visit the url below to get the results as below:
http://localhost:8000/api?data=["India","Capital","New Delhi"]
Note: The Hosted API is only available on demand
BibTex:
To quote keytotext please use this citation
@misc{bhatia,
title={keytotext},
url={https://github.com/gagan3012/keytotext},
journal={GitHub},
author={Bhatia, Gagan}
}
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
Built Distribution
Hashes for keytotext-0.2.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8acd3fe7b0c9ec13f0874db094ee7f01d414d249e07402685bd7dc62b7f82708 |
|
MD5 | 1df72f24a9071598bd07f50eb9c1f5c5 |
|
BLAKE2b-256 | 37b386e424fd5c3f780154ab3dcce3614d940b453b38f7620b3d2ab5d0f6f450 |