Skip to main content

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:

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:

Streamlit App

https://share.streamlit.io/gagan3012/keytotext/app.py

image

Example:

['India', 'Wedding'] -> We are celebrating today in New Delhi with three wedding anniversary parties.

Project details


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.2.tar.gz (8.4 MB view details)

Uploaded Source

Built Distribution

keytotext-0.0.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file keytotext-0.0.2.tar.gz.

File metadata

  • Download URL: keytotext-0.0.2.tar.gz
  • Upload date:
  • Size: 8.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.25.1

File hashes

Hashes for keytotext-0.0.2.tar.gz
Algorithm Hash digest
SHA256 b0e5796ff7dffff6cd72bab37b7baf3132f3a668b81a87a9e11d5faac68769cb
MD5 aa0942661e63563a0f804c02ca15c395
BLAKE2b-256 1c35bfe15797f3f521e57368c21ffc0b8fb3a78e91989ee10a990b81073ee931

See more details on using hashes here.

File details

Details for the file keytotext-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: keytotext-0.0.2-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

Hashes for keytotext-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3eb591219119402f05f16d29d26d329a76b6d7ddf440a6d5c3d25de41e9d714e
MD5 97e1a8ff2a147d26d90da5877da6013a
BLAKE2b-256 9855a311c45497250adfd67960ca488be1eb811f31ff6a14fdd1ae98a9c0965a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page