JAlexis commited on
Commit
52e7f8d
·
1 Parent(s): e3537b8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +21 -9
README.md CHANGED
@@ -1,11 +1,7 @@
1
- ---
2
- license: cc-by-4.0
3
- ---
4
- ---
5
  **This model was obtained by fine-tuning deepset/bert-base-cased-squad2 on Cord19 Dataset.**
6
- ---
7
 
8
- ##Overview
9
  ```
10
  Language model: deepset/bert-base-cased-squad2
11
  Language: English
@@ -15,6 +11,24 @@ Code: Haystack and FARM
15
  Infrastructure: Tesla T4
16
  ```
17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  ## Hyperparameters
19
  ```
20
  batch_size = 8
@@ -23,6 +37,4 @@ max_seq_len = max_length
23
  learning_rate = AdamW: 1e-5
24
  ```
25
 
26
- widget:
27
- - text: "How can I protect myself against covid-19?"
28
- example_title: "Covid protection"
 
1
+
 
 
 
2
  **This model was obtained by fine-tuning deepset/bert-base-cased-squad2 on Cord19 Dataset.**
 
3
 
4
+ ## Overview
5
  ```
6
  Language model: deepset/bert-base-cased-squad2
7
  Language: English
 
11
  Infrastructure: Tesla T4
12
  ```
13
 
14
+
15
+ widget:
16
+ - text: "How can I protect myself against covid-19?"
17
+
18
+ ## How to use
19
+
20
+ ```python
21
+ from transformers.pipelines import pipeline
22
+ model_name = "JAlexis/PruebaBert"
23
+ nlp = pipeline('question-answering', model=model_name, tokenizer=model_name)
24
+ inputs = {
25
+ 'question': 'How can I protect myself against covid-19?',
26
+ 'context': 'This paper explores how trust in formal information sources (government and media) and informal information sources (interpersonal) about COVID-19 influences compliance with preventive measures. This cross-sectional study uses convenience sampling of 478 adult participants. Data analyses using structural equation modeling with multigroup comparisons examine hypothesized relationships between trust in information sources and preventative behaviors and social distancing. Results suggest that understanding of COVID-19 causes is related to trust in formal information sources, but not to trust in informal information. Self-efficacy for prevention is related to trust in informal information sources, but not to trust in formal information sources. Worry about contracting COVID-19 is related to trust in formal information sources, but not to informal ones. Engaging in preventive measures is linked to both self-efficacy for prevention and worry, while social distancing was related only to worry. These findings have important implications for public health policy guidelines centered on clear and truthful media messages. The findings also facilitate comparative analyses 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 different global pandemics. '
27
+ }
28
+ nlp(inputs)
29
+ ```
30
+
31
+
32
  ## Hyperparameters
33
  ```
34
  batch_size = 8
 
37
  learning_rate = AdamW: 1e-5
38
  ```
39
 
40
+