Typo fix
Browse files
README.md
CHANGED
@@ -44,18 +44,17 @@ Comparison with `xlm-roberta-base`:
|
|
44 |
```python
|
45 |
from simpletransformers.classification import ClassificationModel
|
46 |
model_args = {
|
47 |
-
"num_train_epochs":
|
48 |
-
"learning_rate":
|
49 |
-
"train_batch_size":
|
50 |
-
}
|
51 |
|
52 |
model = ClassificationModel(
|
53 |
-
"
|
54 |
args=model_args
|
55 |
|
56 |
)
|
57 |
|
58 |
-
predictions, logit_output = model.predict(["Silva, ti si grda in neprijazna
|
59 |
predictions
|
60 |
### Output:
|
61 |
### array([1, 0])
|
|
|
44 |
```python
|
45 |
from simpletransformers.classification import ClassificationModel
|
46 |
model_args = {
|
47 |
+
"num_train_epochs": 6,
|
48 |
+
"learning_rate": 3e-6,
|
49 |
+
"train_batch_size": 69}
|
|
|
50 |
|
51 |
model = ClassificationModel(
|
52 |
+
"camembert", "5roop/sloberta-frenk-hate", use_cuda=True,
|
53 |
args=model_args
|
54 |
|
55 |
)
|
56 |
|
57 |
+
predictions, logit_output = model.predict(["Silva, ti si grda in neprijazna", "Naša hiša ima dimnik"])
|
58 |
predictions
|
59 |
### Output:
|
60 |
### array([1, 0])
|