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.7.tar.gz
(8.4 MB
view details)
Built Distribution
File details
Details for the file keytotext-0.0.7.tar.gz
.
File metadata
- Download URL: keytotext-0.0.7.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 | de15039eeafda96f1bb7d5159ea76299b1cfa7cee0410d7a61bb7763a9dd1a89 |
|
MD5 | cf850393b90c048972c216e05c50e3ad |
|
BLAKE2b-256 | dabb8e3a47070cca5058e578a762dc5f5adbead5b4f5b47e79e9a183182e7887 |
File details
Details for the file keytotext-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: keytotext-0.0.7-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 | 304fd219c2595c255527227e6b3a68e06d4cd1dc33870ebd7db7e9e40e23ca74 |
|
MD5 | 3188568b5bfc2dcf0cf18c49c1acd050 |
|
BLAKE2b-256 | cfae748a868e229c5ad01000a84086391c127b631edffeb2993c5b0816e7cdd3 |