Instructions to use Twitter/twhin-bert-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Twitter/twhin-bert-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="Twitter/twhin-bert-base")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("Twitter/twhin-bert-base") model = AutoModelForMaskedLM.from_pretrained("Twitter/twhin-bert-base") - Inference
- Notebooks
- Google Colab
- Kaggle
Make mask token explicit (#1)
Browse files- Make mask token explicit (62e5dd22f8a626816fbadd518b67d467f55f4129)
Co-authored-by: Suzen Fylke <codesue@users.noreply.huggingface.co>
README.md
CHANGED
|
@@ -93,6 +93,7 @@ tags:
|
|
| 93 |
- Twitter
|
| 94 |
- Multilingual
|
| 95 |
license: "apache-2.0"
|
|
|
|
| 96 |
---
|
| 97 |
|
| 98 |
# TwHIN-BERT: A Socially-Enriched Pre-trained Language Model for Multilingual Tweet Representations
|
|
|
|
| 93 |
- Twitter
|
| 94 |
- Multilingual
|
| 95 |
license: "apache-2.0"
|
| 96 |
+
mask_token: "[MASK]"
|
| 97 |
---
|
| 98 |
|
| 99 |
# TwHIN-BERT: A Socially-Enriched Pre-trained Language Model for Multilingual Tweet Representations
|