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

Training Notebooks can be found in the Training Notebooks Folder

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

Uploaded Source

Built Distribution

keytotext-0.2.2-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for keytotext-0.2.2.tar.gz
Algorithm Hash digest
SHA256 06a798ca2c5b0e82b5d686cdfe9ba29ab4bb321c7146924704dd27843b4014b6
MD5 1f7bf8d6985f01ca40ceb021cbd1a778
BLAKE2b-256 1b3f5eb676def8ecf0519bde0c7da17b349462fac4810de147ba0150cb671e07

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for keytotext-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f2d609d3d24467ccb1d9c830a424cdfc1ed8abde1dcffdebadec97fc762af830
MD5 10f607533d5f0a7d7112efa1e51766e3
BLAKE2b-256 ce8e6eb59ff71566adbdae7c63d34f3906f831e214780aa0caaa35ae5babbf0d

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