File size: 1,021 Bytes
11f924c
50dc97e
ec45239
086691f
 
ec45239
086691f
 
ec45239
50dc97e
 
 
 
 
 
7e1bb5f
ec45239
086691f
 
 
 
 
 
 
50dc97e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ad61c6f
086691f
50dc97e
 
 
086691f
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
---
language: en
tags:
- MPNet

license: apache-2.0

dataset:
- covid-19
---

# CoQUAD_MPNet : MPNet model for COVID-19
## Introduction
It is a state-of-the-art language model for MPNet for Covid-19 dataset with focus on post-covid.
## How to use for Deepset Haystack

```python
# Load data

from datasets import load_dataset

dataset = load_dataset("shaina/covid19")

# Haystack pipeline
!sudo apt-get install git-lfs
!git lfs install
!git clone https://huggingface.co/shaina/CoQUAD_MPNet
GIT_LFS_SKIP_SMUDGE=1

from haystack.nodes import ElasticsearchRetriever
retriever = ElasticsearchRetriever(document_store=document_store)
reader = FARMReader(model_name_or_path="/content/drive/MyDrive/CoQUAD_MPNet", use_gpu=True)

from haystack.pipelines import ExtractiveQAPipeline
pipe = ExtractiveQAPipeline(reader, retriever)
prediction = pipe.run(
    query="What is post-COVID?", params={"Retriever": {"top_k": 10}, "Reader": {"top_k": 5}}
)
from pprint import pprint
pprint(prediction)
```
---
## Authors 
Shaina Raza

 ---