Merge branch 'main' of https://huggingface.co/5roop/sloberta-frenk-hate into main
Browse files
README.md
CHANGED
@@ -54,18 +54,17 @@ Comparison with `xlm-roberta-base`:
|
|
54 |
```python
|
55 |
from simpletransformers.classification import ClassificationModel
|
56 |
model_args = {
|
57 |
-
"num_train_epochs":
|
58 |
-
"learning_rate":
|
59 |
-
"train_batch_size":
|
60 |
-
}
|
61 |
|
62 |
model = ClassificationModel(
|
63 |
-
"
|
64 |
args=model_args
|
65 |
|
66 |
)
|
67 |
|
68 |
-
predictions, logit_output = model.predict(["Silva, ti si grda in neprijazna
|
69 |
predictions
|
70 |
### Output:
|
71 |
### array([1, 0])
|
|
|
54 |
```python
|
55 |
from simpletransformers.classification import ClassificationModel
|
56 |
model_args = {
|
57 |
+
"num_train_epochs": 6,
|
58 |
+
"learning_rate": 3e-6,
|
59 |
+
"train_batch_size": 69}
|
|
|
60 |
|
61 |
model = ClassificationModel(
|
62 |
+
"camembert", "5roop/sloberta-frenk-hate", use_cuda=True,
|
63 |
args=model_args
|
64 |
|
65 |
)
|
66 |
|
67 |
+
predictions, logit_output = model.predict(["Silva, ti si grda in neprijazna", "Naša hiša ima dimnik"])
|
68 |
predictions
|
69 |
### Output:
|
70 |
### array([1, 0])
|