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 Code style: black

keytotext

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

Potential use case can include:

  • Marketing
  • Search Engine Optimization
  • Topic generation etc.
  • Fine tuning of topic modeling models

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: To add your own model to keytotext Please read Models Documentation

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}
}

References:

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

Uploaded Source

Built Distribution

keytotext-0.3.1-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for keytotext-0.3.1.tar.gz
Algorithm Hash digest
SHA256 b21f53e8b9fa78260c77721e76ccfab45abc0e8c98e5122652f7d7b7433720ca
MD5 11f67aa42359a3068c6645d8e5d5c41d
BLAKE2b-256 e5f18a3567e714840646bd22cbb2b733090315bad4aaec1a9b32a5bc3aae389d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for keytotext-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d49fcdc6f1f14f8faf778283e228565e14d531023ba6be8249dc2358b9c480d3
MD5 432833174660942a54e500c9ef002218
BLAKE2b-256 d419cc24552020cc5d0e5535f2d105f221b8d197949e74fa7b611ee90fe66ce4

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