Instructions to use khailai/roberta-offensive-classifier-beta with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use khailai/roberta-offensive-classifier-beta with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="khailai/roberta-offensive-classifier-beta")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("khailai/roberta-offensive-classifier-beta") model = AutoModelForSequenceClassification.from_pretrained("khailai/roberta-offensive-classifier-beta") - Notebooks
- Google Colab
- Kaggle
Trained on new data DICA_Dec16 (lower-cased) for 5 epochs. 96% accuracy and 0.88 F1 score
Browse files- config.json +1 -1
- tf_model.h5 +1 -1
config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "
|
| 3 |
"architectures": [
|
| 4 |
"RobertaForSequenceClassification"
|
| 5 |
],
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "khailai/roberta-offensive-classifier-beta",
|
| 3 |
"architectures": [
|
| 4 |
"RobertaForSequenceClassification"
|
| 5 |
],
|
tf_model.h5
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 498896768
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f7da73787c31c74f0c7e7b6f6a35937bc97f77a9dad6978e177482eefa568428
|
| 3 |
size 498896768
|