Text Generation Using Keywords
Project description
keytotext
Idea is to build a model which will take keywords as inputs and generate sentences as outputs.
Potential use case can include:
- Marketing
- Search Engine Optimization
- Topic generation etc.
- Fine tuning of topic modeling models
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}
}
References:
- https://towardsdatascience.com/data-to-text-generation-with-t5-building-a-simple-yet-advanced-nlg-model-b5cce5a6df45 (Mathew Alexander)
- https://github.com/patil-suraj/question_generation (Suraj Patil)
- Amazing Video by 1LittleCoder here: https://www.youtube.com/watch?v=I0iBzP-SxFY about keytotext
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
File details
Details for the file keytotext-0.2.9.1.tar.gz
.
File metadata
- Download URL: keytotext-0.2.9.1.tar.gz
- Upload date:
- Size: 994.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3744d731276f88d519482e9cf7b3936cf59e49705931419f481bc3202f47dfef |
|
MD5 | bb5c3d3d22c664eb196faac2d8d5782b |
|
BLAKE2b-256 | cff4abf485943669cc5e4e3abdefe2070539b0e1fedad41c475870cb32abe2a5 |
File details
Details for the file keytotext-0.2.9.1-py3-none-any.whl
.
File metadata
- Download URL: keytotext-0.2.9.1-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51580294cef28b43ad22dc4e28bfbd4502871a849ebd7b6e40a3007faacc2f91 |
|
MD5 | 9832e6cb8ea33f17ff8fa37ef6ca206b |
|
BLAKE2b-256 | 319b1d98616c22053b90fc1b5c863964b308ac9e291cf72223b3f596d10993de |