Instructions to use TehranNLP-org/electra-base-hateXplain with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TehranNLP-org/electra-base-hateXplain with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="TehranNLP-org/electra-base-hateXplain")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("TehranNLP-org/electra-base-hateXplain") model = AutoModelForSequenceClassification.from_pretrained("TehranNLP-org/electra-base-hateXplain") - Notebooks
- Google Colab
- Kaggle
| { | |
| "HateXplain-dev_accuracy": 0.4162330905306972, | |
| "HateXplain-dev_accuracy_0": 0.8145025295109612, | |
| "HateXplain-dev_accuracy_1": 0.18950064020486557, | |
| "HateXplain-dev_accuracy_2": 0.3083941605839416, | |
| "HateXplain-dev_loss": 0.766707181930542, | |
| "HateXplain-dev_runtime": 2.1526, | |
| "HateXplain-dev_samples": 1922, | |
| "HateXplain-dev_samples_per_second": 892.867, | |
| "HateXplain-dev_steps_per_second": 28.338, | |
| "epoch": 3.0 | |
| } |