Skip to main content

Text Generation Using Keywords

Project description

keytotext

pypi Version Downloads Open In Colab Streamlit App API Call Docker Call HuggingFace Documentation Status

keytotext (1)

Idea is to build a model which will take keywords as inputs and generate sentences as outputs.

Model:

Keytotext is based on the Amazing T5 Model: HuggingFace

  • k2t: Model
  • k2t-tiny: Model
  • k2t-base: Model
  • mrm8488/t5-base-finetuned-common_gen (by Manuel Romero): Model

Training Notebooks can be found in the Training Notebooks Folder

Note: Please raise an issue if you would like to add new model to keytotext

Usage:

Example usage: Open In Colab

Example Notebooks can be found in the Notebooks Folder

pip install keytotext

carbon (3)

UI:

UI: Streamlit App

pip install streamlit-tags

This uses a custom streamlit component built by me: GitHub

image

API:

API: API Call Docker Call

The API is hosted in the Docker container and it can be run quickly. Follow instructions below to get started

docker pull gagan30/keytotext

docker run -dp 8000:8000 gagan30/keytotext

This will start the api at port 8000 visit the url below to get the results as below:

http://localhost:8000/api?data=["India","Capital","New Delhi"]

k2t_json

Note: The Hosted API is only available on demand

BibTex:

To quote keytotext please use this citation

@misc{bhatia, 
      title={keytotext},
      url={https://github.com/gagan3012/keytotext}, 
      journal={GitHub}, 
      author={Bhatia, Gagan}
}

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.2.4.tar.gz (460.4 kB view details)

Uploaded Source

Built Distribution

keytotext-0.2.4-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: keytotext-0.2.4.tar.gz
  • Upload date:
  • Size: 460.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.20.0

File hashes

Hashes for keytotext-0.2.4.tar.gz
Algorithm Hash digest
SHA256 b56611132909d5a385d452dfa9c599dd77bee5a71c45efa1b8482c8458a3ea92
MD5 ac6fb2a25a7c4008f9f65ddd17a04d3d
BLAKE2b-256 b26ffbce59f387d308fa8a3f6c057593c137a773d079dce31a74ae1df8c9749f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: keytotext-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.20.0

File hashes

Hashes for keytotext-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 cb2f8b9f894f7d22f844041894ba356b2c6089dbbc8f7a007145e8d7e93f0df6
MD5 39d19ca5b2e2760f160ee84d5c8b502d
BLAKE2b-256 0a92ab38eded57bdd0ff256434e98a2a556d427a58ed461f00bdf72d1176a77f

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