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.6.tar.gz
(8.4 MB
view details)
Built Distribution
File details
Details for the file keytotext-0.0.6.tar.gz
.
File metadata
- Download URL: keytotext-0.0.6.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 | ecb1eec50792b3088a64ee93ed6c32a7e94832b11154785cf9f86657eb363ac4 |
|
MD5 | 03d90e1e3654db7bc1894f39a86e545c |
|
BLAKE2b-256 | 0f71b4b35eb2a78caafa3b478d5028b198c6553e8479ae82abf9d5dba6709d40 |
File details
Details for the file keytotext-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: keytotext-0.0.6-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 | cec0ab9e786a6266246a3a12a3dc8b4d4b6857a8f675dd174919206c046173ca |
|
MD5 | bb95cc796699652c0b001f1067d0f65d |
|
BLAKE2b-256 | b011bda3a5e69b2bb70da6a63c41ee324e833d4bc2f1c20ce7b3c2d6316986a7 |