dardem commited on
Commit
3e8908b
1 Parent(s): ff94728

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +16 -1
README.md CHANGED
@@ -16,4 +16,19 @@ The evaluation metrics are:
16
  **Recall**: 0.9065
17
  **F1**: 0.9061
18
 
19
- The training and evaluation data will be clarified later.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  **Recall**: 0.9065
17
  **F1**: 0.9061
18
 
19
+ The training and evaluation data will be clarified later.
20
+
21
+ ## How to use
22
+ ```python
23
+ from transformers import AutoTokenizer, AutoModelForSequenceClassification
24
+
25
+ # load tokenizer and model weights
26
+ tokenizer = AutoTokenizer.from_pretrained('dardem/xlm-roberta-base-uk-toxicity')
27
+ model = AutoModelForSequenceClassification.from_pretrained('dardem/xlm-roberta-base-uk-toxicity')
28
+
29
+ # prepare the input
30
+ batch = tokenizer.encode('Ти неймовірна!', return_tensors='pt')
31
+
32
+ # inference
33
+ model(batch)
34
+ ```