Text Classification
Transformers
Safetensors
Māori
distilbert
te-reo
maori
content-moderation
text-embeddings-inference
Instructions to use launchaddict/te-reo-moderator with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use launchaddict/te-reo-moderator with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="launchaddict/te-reo-moderator")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("launchaddict/te-reo-moderator") model = AutoModelForSequenceClassification.from_pretrained("launchaddict/te-reo-moderator", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download label_mapping.json from launchaddict/te-reo-moderator: direct link, hf CLI and curl.
- Browser
- Download file 146 Bytes
-
https://huggingface.co/launchaddict/te-reo-moderator/resolve/main/label_mapping.json
- Command line
-
hf download hf://launchaddict/te-reo-moderator/label_mapping.json
-
curl -L -o label_mapping.json https://huggingface.co/launchaddict/te-reo-moderator/resolve/main/label_mapping.json
146 Bytes
| { | |
| "label2id": { | |
| "allow": 0, | |
| "review": 1, | |
| "block": 2 | |
| }, | |
| "id2label": { | |
| "0": "allow", | |
| "1": "review", | |
| "2": "block" | |
| } | |
| } |