Text Classification
Transformers
Safetensors
Korean
electra
hate-speech
binary-classification
korean
Eval Results (legacy)
Instructions to use Now100/kmhas_electra_binary with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Now100/kmhas_electra_binary with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Now100/kmhas_electra_binary")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Now100/kmhas_electra_binary") model = AutoModelForSequenceClassification.from_pretrained("Now100/kmhas_electra_binary") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -78,7 +78,7 @@ from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
|
| 78 |
model = AutoModelForSequenceClassification.from_pretrained("jeanlee/kmhas_electra_binary")
|
| 79 |
tokenizer = AutoTokenizer.from_pretrained("jeanlee/kmhas_electra_binary")
|
| 80 |
|
| 81 |
-
text = "
|
| 82 |
inputs = tokenizer(text, return_tensors="pt")
|
| 83 |
outputs = model(**inputs)
|
| 84 |
|
|
|
|
| 78 |
model = AutoModelForSequenceClassification.from_pretrained("jeanlee/kmhas_electra_binary")
|
| 79 |
tokenizer = AutoTokenizer.from_pretrained("jeanlee/kmhas_electra_binary")
|
| 80 |
|
| 81 |
+
text = "개새끼들이 나라를 망치고 있다."
|
| 82 |
inputs = tokenizer(text, return_tensors="pt")
|
| 83 |
outputs = model(**inputs)
|
| 84 |
|