aleksahet commited on
Commit
0d02ac5
·
1 Parent(s): 1656e3e

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +32 -0
README.md ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - sr
4
+ metrics:
5
+ - f1
6
+ - exact_match
7
+ library_name: transformers
8
+ pipeline_tag: question-answering
9
+ ---
10
+ # BERTić-SQuAD-sr-lat
11
+ BERTić-SQuAD-sr-lat is a Question Answering neural network for Serbian. It is obtained by fine-tuning [BERTić](https://huggingface.co/classla/bcms-bertic) on a synthetically generated Serbian QA [dataset](https://www.kaggle.com/datasets/aleksacvetanovic/squad-sr) based on SQuAD v1.1.
12
+
13
+ # Usage
14
+ ```python
15
+ from transformers import pipeline
16
+
17
+ model_name = 'aleksahet/BERTic-squad-sr-lat'
18
+
19
+ pipe = pipeline('question-answering', model=model_name, tokenizer=model_name)
20
+
21
+ sample = {
22
+ 'question': 'Kojim sportom se bavi Novak Đoković?',
23
+ 'context': 'Novak Đoković (Beograd, 22. maj 1987) srpski je teniser. Mnogi teniski kritičari, bivši igrači i saigrači smatraju Đokovića jednim od najboljih tenisera u istoriji.'
24
+ }
25
+
26
+ res = pipe(sample)
27
+ ```
28
+ # Performance
29
+ The model vas evaluated on XQuAD samples translated to Serbian. We report the following results:
30
+
31
+ - Exact Match: ```73.91%```
32
+ - F1: ```82.97%```