JAlexis commited on
Commit
2a512b5
1 Parent(s): 79d5278

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +55 -0
README.md ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: en
3
+ tags:
4
+ - pytorch
5
+ - question-answering
6
+ datasets:
7
+ - squad2
8
+ - cord19
9
+ metrics:
10
+ - f1
11
+
12
+ widget:
13
+ - text: "How can I protect myself against covid-19?"
14
+ context: "Preventative measures consist of recommendations to wear a mask in public, maintain social distancing of at least six feet, wash hands regularly, and use hand sanitizer. To facilitate this aim, we adapt the conceptual model and measures of Liao et al. [6] to the current context of the COVID-19 pandemic and the culture of the USA. Applying this model in a different time and context provides an opportunity to make comparisons of reactions to information sources across a decade of evolving attitudes toward media and government, between two cultures (Hong Kong vs. the USA), and between two considerably different global pandemics (H1N1 vs. COVID-19)."
15
+ - text: "How can I protect myself against covid-19?"
16
+ context: " "
17
+
18
+ ---
19
+
20
+ ## Model description
21
+ This model was obtained by fine-tuning deepset/bert-base-cased-squad2 on Cord19 Dataset.
22
+
23
+ ## How to use
24
+
25
+ ```python
26
+ from transformers.pipelines import pipeline
27
+ model_name = "JAlexis/PruebaBert"
28
+ nlp = pipeline('question-answering', model=model_name, tokenizer=model_name)
29
+ inputs = {
30
+ 'question': 'How can I protect myself against covid-19?',
31
+ 'context': 'Preventative measures consist of recommendations to wear a mask in public, maintain social distancing of at least six feet, wash hands regularly, and use hand sanitizer. To facilitate this aim, we adapt the conceptual model and measures of Liao et al. [6] to the current context of the COVID-19 pandemic and the culture of the USA. Applying this model in a different time and context provides an opportunity to make comparisons of reactions to information sources across a decade of evolving attitudes toward media and government, between two cultures (Hong Kong vs. the USA), and between two considerably different global pandemics (H1N1 vs. COVID-19). ',
32
+ 'question': 'How can I protect myself against covid-19?',
33
+ 'context': ' ',
34
+ }
35
+ nlp(inputs)
36
+ ```
37
+
38
+ ## Overview
39
+ ```
40
+ Language model: deepset/bert-base-cased-squad2
41
+ Language: English
42
+ Downstream-task: Q&A
43
+ Datasets: CORD-19 from 31rd January 2022
44
+ Code: Haystack and FARM
45
+ Infrastructure: Tesla T4
46
+ ```
47
+
48
+ ## Hyperparameters
49
+ ```
50
+ batch_size = 8
51
+ n_epochs = 7
52
+ max_seq_len = max_length
53
+ learning_rate = AdamW: 2e-5
54
+ ```
55
+