JAlexis commited on
Commit
fab78b9
·
1 Parent(s): b6da658

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -4
README.md CHANGED
@@ -12,8 +12,10 @@ metrics:
12
 
13
  widget:
14
  - text: "How can I protect myself against covid-19?"
 
 
 
15
 
16
-
17
  ---
18
 
19
  ## Model description
@@ -27,6 +29,9 @@ model_name = "JAlexis/PruebaBert"
27
  nlp = pipeline('question-answering', model=model_name, tokenizer=model_name)
28
  inputs = {
29
  'question': 'How can I protect myself against covid-19?',
 
 
 
30
  }
31
  nlp(inputs)
32
  ```
@@ -45,8 +50,7 @@ Infrastructure: Tesla T4
45
  ```
46
  batch_size = 8
47
  n_epochs = 9
48
- max_query_length=512
49
  learning_rate = AdamW: 1e-5
50
  ```
51
-
52
-
 
12
 
13
  widget:
14
  - text: "How can I protect myself against covid-19?"
15
+ 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)."
16
+ - text: "How can I protect myself against covid-19?"
17
+ context: " "
18
 
 
19
  ---
20
 
21
  ## Model description
 
29
  nlp = pipeline('question-answering', model=model_name, tokenizer=model_name)
30
  inputs = {
31
  'question': 'How can I protect myself against covid-19?',
32
+ '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). ',
33
+ 'question': 'How can I protect myself against covid-19?',
34
+ 'context': ' ',
35
  }
36
  nlp(inputs)
37
  ```
 
50
  ```
51
  batch_size = 8
52
  n_epochs = 9
53
+ max_seq_len = max_length
54
  learning_rate = AdamW: 1e-5
55
  ```
56
+