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.4.tar.gz
(8.4 MB
view details)
Built Distribution
File details
Details for the file keytotext-0.0.4.tar.gz
.
File metadata
- Download URL: keytotext-0.0.4.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 | 108e7b3cd2618e29c17fa99b9e4c6ff8407235806b32ee7fc19952d595d76b04 |
|
MD5 | 8feb9d1aef3786ad8582f6060ce8227d |
|
BLAKE2b-256 | 233c11f9545bacff646c2fa95d2f296b2239be2fa120b1848ff7f1fb8cfc89ad |
File details
Details for the file keytotext-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: keytotext-0.0.4-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 | e7a57d0eafad39c6b23d574ab7a3d1054b66d03003644d4091c12171654c8612 |
|
MD5 | 0534d0bfe21662615ae6b29979184b01 |
|
BLAKE2b-256 | 8a52c7311e3a9e3a44015d3146f838b63bb510c8347aaa7dd031ac5dccdb2de5 |