racai-andrei commited on
Commit
d4703bf
1 Parent(s): adae7ba

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +41 -0
README.md CHANGED
@@ -1,3 +1,44 @@
1
  ---
2
  license: mit
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: mit
3
  ---
4
+
5
+ # Romanian Covid Question Answering
6
+
7
+ This repository contains the a Romanian question answering for Covid-19 related queries. We used as the base model the [Romanian DistilBERT](https://huggingface.co/racai/distilbert-base-romanian-uncased).
8
+
9
+ The model was introduced in [this paper](https://arxiv.org/abs/2206.08046).
10
+
11
+ ## Usage
12
+
13
+ **Important Note:** Currently, the model is not available for usage through the HuggingFace library.
14
+
15
+ Please install the following package:
16
+
17
+ ```
18
+ pip install git+https://github.com/racai-ai/BERT-SQuAD
19
+ ```
20
+
21
+ Then you can use the model with the following code sample:
22
+
23
+ ```python
24
+ from bert import QA
25
+
26
+ model = QA("model")
27
+
28
+ context = "Reacțiile adverse frecvente la tratamentul cu paxlovid sunt diaree, vărsături, mioartralgii, astenie fizică, erupții, inclusiv sindrom Stevens-Johnson."
29
+ question = "La ce reacții adverse să mă aștept dacă iau paxlovid?"
30
+
31
+ out = model.predict(context, question)
32
+ print(out)
33
+ # {'answer': 'diaree, vărsături, mioartralgii, astenie fizică, erupții, inclusiv sindrom Stevens-Johnson.', 'start': 8, 'end': 16, 'confidence': 0.999903004533245, 'document': [...]}
34
+ ```
35
+
36
+ ### Citation
37
+ ```bibtex
38
+ @article{ion2022open,
39
+ title={An Open-Domain QA System for e-Governance},
40
+ author={Ion, Radu and Avram, Andrei-Marius and P{\u{a}}i{\c{s}}, Vasile and Mitrofan, Maria and Mititelu, Verginica Barbu and Irimia, Elena and Badea, Valentin},
41
+ journal={arXiv preprint arXiv:2206.08046},
42
+ year={2022}
43
+ }
44
+ ```