File size: 2,360 Bytes
d727d4f
 
 
 
 
 
 
 
 
f00fee7
6e44bcb
52e7f8d
1965e5e
fab78b9
 
 
6e44bcb
d727d4f
 
 
 
52e7f8d
 
 
 
 
 
 
 
 
fab78b9
 
 
52e7f8d
 
 
 
d727d4f
 
 
 
 
 
 
 
 
52e7f8d
b9f976b
 
 
 
fab78b9
b9f976b
 
fab78b9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
language: en
tags:
- pytorch
- question-answering
datasets:
- squad2
- cord19
metrics:
- EM (exact match)

widget:
- text: "How can I protect myself against covid-19?"
  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)."
- text: "How can I protect myself against covid-19?"
  context: " "
  
---

## Model description 
This model was obtained by fine-tuning deepset/bert-base-cased-squad2 on Cord19 Dataset.

## How to use

```python
from transformers.pipelines import pipeline
model_name = "JAlexis/PruebaBert"
nlp = pipeline('question-answering', model=model_name, tokenizer=model_name)
inputs = {
    'question': 'How can I protect myself against covid-19?',
    '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). ',
    'question': 'How can I protect myself against covid-19?',
    'context': ' ',
}
nlp(inputs)
```

## Overview
```
Language model: deepset/bert-base-cased-squad2
Language: English
Downstream-task: Q&A
Datasets: CORD-19 from 31rd January 2022
Code: Haystack and FARM
Infrastructure: Tesla T4
```

## Hyperparameters
```
batch_size = 8
n_epochs = 9
max_seq_len = max_length
learning_rate = AdamW: 1e-5
```