JAlexis commited on
Commit
71c0743
1 Parent(s): c21f75f

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +31 -0
README.md ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: en
3
+ #epoch 6
4
+ #batch size 16
5
+ #lr 5e-5
6
+
7
+
8
+
9
+ widget:
10
+ - text: "How can I protect myself against covid-19?"
11
+ 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. "
12
+ - text: "How can I protect myself against covid-19?"
13
+ context: " "
14
+
15
+ ---
16
+
17
+ ## Model description
18
+ This model was obtained by fine-tuning deepset/bert-base-cased-squad2 on Cord19 Dataset.
19
+
20
+ ## How to use
21
+
22
+ ```python
23
+ from transformers.pipelines import pipeline
24
+ model_name = "JAlexis/PruebaBert"
25
+ nlp = pipeline('question-answering', model=model_name, tokenizer=model_name)
26
+ inputs = {
27
+ 'question': 'How can I protect myself against covid-19?',
28
+ '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). ',
29
+ }
30
+ nlp(inputs)
31
+ ```