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:
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
Trainer:
Keytotext now has a trainer class than be used to train and finetune any T5 based model on new data. Updated Trainer docs here: Docs
from keytotext import trainer
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://github.com/Shivanandroy/simpleT5 (Shivanand Roy)
- https://github.com/patil-suraj/question_generation (Suraj Patil)
- https://github.com/MathewAlexander/T5_nlg (Mathew Alexander)
Articles about keytotext:
- https://towardsdatascience.com/data-to-text-generation-with-t5-building-a-simple-yet-advanced-nlg-model-b5cce5a6df45 (Mathew Alexander)
- Amazing Video by 1LittleCoder here: https://www.youtube.com/watch?v=I0iBzP-SxFY about keytotext
- https://medium.com/mlearning-ai/generating-sentences-from-keywords-using-transformers-in-nlp-e89f4de5cf6b (Prakhar Mishra)
Release files for keytotext 2.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| keytotext-2.3.2.tar.gz | 738.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| keytotext-2.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 750.0 kB
Release files / keytotext-2.3.2.tar.gz
| Download URL | keytotext-2.3.2.tar.gz |
|---|---|
| Size | 738.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74657ed6bc2b6899a54040f55e63a095d541759a04a6d9faed9aa07d9c14169f
|
|
BLAKE2b-256 checksum How to use checksums |
613e9953ce241b8016150c3bd32ad9f037fcbbfb273f2b7fbd6d4461e7fb9024
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.27.1
|
Release files / keytotext-2.3.2-py3-none-any.whl
| Download URL | keytotext-2.3.2-py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9885a6429cd97a91711b02bf6fb232ef9bcbe8e696c5852c8e360d266f98aa46
|
|
BLAKE2b-256 checksum How to use checksums |
40782622adef16ff68fc1c9e955c9d77c6740796a6bbfa67e6485ae2f95385b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.27.1
|