Skip to main content

Happy Transformer is an API built on top of Hugging Face's Transformer library that makes it easy to utilize state-of-the-art NLP models.

Project description

License Downloads Website shields.io

Happy Transformer

Documentation and news: happytransformer.com

HappyTransformer

Happy Transformer is an package built on top of Hugging Face's transformer library that makes it easy to utilize state-of-the-art NLP models.

Features

Public Methods Basic Usage Training
Word Prediction
Text Generation
Text Classification
Question Answering
Next Sentence Prediction
Token Classification

Quick Start

pip install happytransformer
from happytransformer import HappyWordPrediction
#--------------------------------------#
    happy_wp = HappyWordPrediction()  # default uses distilbert-base-uncased
    result = happy_wp.predict_mask("I think therefore I [MASK]")
    print(result)  # [WordPredictionResult(token='am', score=0.10172799974679947)]
    print(result[0].token)  # am


## Maintainers
- [Eric Fillion](https://github.com/ericfillion)  Lead Maintainer
- [Ted Brownlow](https://github.com/ted537) Maintainer

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

happytransformer-2.2.1.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

happytransformer-2.2.1-py3-none-any.whl (39.3 kB view details)

Uploaded Python 3

File details

Details for the file happytransformer-2.2.1.tar.gz.

File metadata

  • Download URL: happytransformer-2.2.1.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.6

File hashes

Hashes for happytransformer-2.2.1.tar.gz
Algorithm Hash digest
SHA256 06620fe07341abbfa93ffbacb243921df235e23c2ba351043b87c1687a23ce08
MD5 34c3c7230a84d2ed15799bcfba223358
BLAKE2b-256 2520ad989774e8a9bff3ffe5d4e617b1b0da514fbd9d3783c507f98114767f2a

See more details on using hashes here.

File details

Details for the file happytransformer-2.2.1-py3-none-any.whl.

File metadata

  • Download URL: happytransformer-2.2.1-py3-none-any.whl
  • Upload date:
  • Size: 39.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.6

File hashes

Hashes for happytransformer-2.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c9d464db92162b98c34463be6551ac2c915812024fce980958632a97bd367398
MD5 062740f811f9d645d2238fdbdc92de42
BLAKE2b-256 6210f7059ea06bd29be52d702a2965cbabb171799c681e811d0c2507fb8601ff

See more details on using hashes here.

Supported by

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