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
|
@@ -75,8 +75,8 @@ model-index:
|
|
| 75 |
```python
|
| 76 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 77 |
|
| 78 |
-
model = AutoModelForSequenceClassification.from_pretrained("
|
| 79 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
| 80 |
|
| 81 |
text = "개새끼들이 나라를 망치고 있다."
|
| 82 |
inputs = tokenizer(text, return_tensors="pt")
|
|
|
|
| 75 |
```python
|
| 76 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 77 |
|
| 78 |
+
model = AutoModelForSequenceClassification.from_pretrained("now100/kmhas_electra_binary")
|
| 79 |
+
tokenizer = AutoTokenizer.from_pretrained("now100/kmhas_electra_binary")
|
| 80 |
|
| 81 |
text = "개새끼들이 나라를 망치고 있다."
|
| 82 |
inputs = tokenizer(text, return_tensors="pt")
|