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
Happy Transformer
Documentation and news: happytransformer.com
Join our brand new Discord server:
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
Release history Release notifications | RSS feed
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.2.tar.gz
(21.8 kB
view hashes)
Built Distribution
Close
Hashes for happytransformer-2.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09accde72826e23967d1df59271931c3048e1c104f51a25f843e1967abceff60 |
|
MD5 | 8f9dab19117c8794e8150eb9e9a57a95 |
|
BLAKE2b-256 | 23f94acd066452e5b543d8362b5e9a18a8e298989f18b24bfcc114a66fc40792 |