Keytotext experimental package
Project description
keytotext
Idea is to build a model which will take keywords as inputs and generate sentences as outputs.
Model:
Two Models have been built:
- Using T5-base size = 850 MB can be found here: https://huggingface.co/gagan3012/keytotext
- Using T5-small size = 230 MB can be found here: https://huggingface.co/gagan3012/keytotext-small
- Updated model: https://huggingface.co/gagan3012/k2t
Usage:
from transformers import AutoTokenizer, AutoModelWithLMHead
tokenizer = AutoTokenizer.from_pretrained("gagan3012/k2t")
model = AutoModelWithLMHead.from_pretrained("gagan3012/k2t")
This uses a custom streamlit component built by me: GitHub
pip install streamlit-tags
The installation can also be found on PyPi
Demo:
https://share.streamlit.io/gagan3012/keytotext/app.py
Example:
['India', 'Wedding'] -> We are celebrating today in New Delhi with three wedding anniversary parties.
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
keytotext-0.0.1.tar.gz
(8.4 MB
view details)
Built Distribution
File details
Details for the file keytotext-0.0.1.tar.gz
.
File metadata
- Download URL: keytotext-0.0.1.tar.gz
- Upload date:
- Size: 8.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 113551550d06ec49acdeb4182e2feec9ff262f78bb99fec6ac1bb910ee1c6b3d |
|
MD5 | 626761da59a9e69e0c0d7371e297fe27 |
|
BLAKE2b-256 | d2d3fbe42283c7820055119e4162ba3a50ea806dd554e1202d5f378bb54be066 |
File details
Details for the file keytotext-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: keytotext-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.25.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e44380de34311ad811db108ce42332586e15806c144c9ed9114a88c7bb11254c |
|
MD5 | 6323742d2a0051e82a601054d743bf5c |
|
BLAKE2b-256 | 0d86f3c89b48ebe1be8b755fe75fb32c4a8b5d8347c0ed7fd95aae620a562d2c |