Updating the model card
Browse files
@julianrisch
do these updates look ok to you?
README.md
CHANGED
@@ -1,4 +1,7 @@
|
|
1 |
---
|
|
|
|
|
|
|
2 |
license: cc-by-4.0
|
3 |
---
|
4 |
|
@@ -44,6 +47,14 @@ This model is the model obtained from the **third** fold of the cross-validation
|
|
44 |
|
45 |
## Usage
|
46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
### In Transformers
|
48 |
```python
|
49 |
from transformers import AutoModelForQuestionAnswering, AutoTokenizer, pipeline
|
@@ -64,52 +75,37 @@ model = AutoModelForQuestionAnswering.from_pretrained(model_name)
|
|
64 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
65 |
```
|
66 |
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
model_name = "deepset/roberta-base-squad2-covid"
|
74 |
-
|
75 |
-
# a) Get predictions
|
76 |
-
nlp = Inferencer.load(model_name, task_type="question_answering")
|
77 |
-
QA_input = [{"questions": ["Why is model conversion important?"],
|
78 |
-
"text": "The option to convert models between FARM and transformers gives freedom to the user and let people easily switch between frameworks."}]
|
79 |
-
res = nlp.inference_from_dicts(dicts=QA_input, rest_api_schema=True)
|
80 |
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
|
|
|
|
|
|
|
|
|
|
85 |
|
86 |
-
|
87 |
-
For doing QA at scale (i.e. many docs instead of single paragraph), you can load the model also in [haystack](https://github.com/deepset-ai/haystack/):
|
88 |
-
```python
|
89 |
-
reader = FARMReader(model_name_or_path="deepset/roberta-base-squad2-covid")
|
90 |
-
# or
|
91 |
-
reader = TransformersReader(model="deepset/roberta-base-squad2",tokenizer="deepset/roberta-base-squad2-covid")
|
92 |
-
```
|
93 |
|
94 |
-
## Authors
|
95 |
-
Branden Chan: `branden.chan [at] deepset.ai`
|
96 |
-
Timo M枚ller: `timo.moeller [at] deepset.ai`
|
97 |
-
Malte Pietsch: `malte.pietsch [at] deepset.ai`
|
98 |
-
Tanay Soni: `tanay.soni [at] deepset.ai`
|
99 |
-
Bogdan Kosti膰: `bogdan.kostic [at] deepset.ai`
|
100 |
|
101 |
-
|
102 |
-
|
103 |
-
We bring NLP to the industry via open source!
|
104 |
-
Our focus: Industry specific language models & large scale QA systems.
|
105 |
-
|
106 |
-
Some of our work:
|
107 |
- [German BERT (aka "bert-base-german-cased")](https://deepset.ai/german-bert)
|
108 |
- [GermanQuAD and GermanDPR datasets and models (aka "gelectra-base-germanquad", "gbert-base-germandpr")](https://deepset.ai/germanquad)
|
109 |
-
- [FARM](https://github.com/deepset-ai/FARM)
|
110 |
-
- [Haystack](https://github.com/deepset-ai/haystack/)
|
111 |
|
112 |
-
Get in touch
|
|
|
|
|
|
|
|
|
|
|
113 |
[Twitter](https://twitter.com/deepset_ai) | [LinkedIn](https://www.linkedin.com/company/deepset-ai/) | [Slack](https://haystack.deepset.ai/community/join) | [GitHub Discussions](https://github.com/deepset-ai/haystack/discussions) | [Website](https://deepset.ai)
|
114 |
|
115 |
By the way: [we're hiring!](http://www.deepset.ai/jobs)
|
|
|
1 |
---
|
2 |
+
language: en
|
3 |
+
datasets:
|
4 |
+
- squad_v2
|
5 |
license: cc-by-4.0
|
6 |
---
|
7 |
|
|
|
47 |
|
48 |
## Usage
|
49 |
|
50 |
+
### In Haystack
|
51 |
+
For doing QA at scale (i.e. many docs instead of single paragraph), you can load the model also in [haystack](https://github.com/deepset-ai/haystack/):
|
52 |
+
```python
|
53 |
+
reader = FARMReader(model_name_or_path="deepset/roberta-base-squad2-covid")
|
54 |
+
# or
|
55 |
+
reader = TransformersReader(model="deepset/roberta-base-squad2",tokenizer="deepset/roberta-base-squad2-covid")
|
56 |
+
```
|
57 |
+
|
58 |
### In Transformers
|
59 |
```python
|
60 |
from transformers import AutoModelForQuestionAnswering, AutoTokenizer, pipeline
|
|
|
75 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
76 |
```
|
77 |
|
78 |
+
## Authors
|
79 |
+
**Branden Chan:** [email protected]
|
80 |
+
**Timo M枚ller:** timo.moeller@deepset.ai
|
81 |
+
**Malte Pietsch:** malte.pietsch@deepset.ai
|
82 |
+
**Tanay Soni:** tanay.[email protected]
|
83 |
+
**Bogdan Kosti膰:** [email protected]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
|
85 |
+
## About us
|
86 |
+
<div class="grid lg:grid-cols-2 gap-x-4 gap-y-3">
|
87 |
+
<div class="w-full h-40 object-cover mb-2 rounded-lg flex items-center justify-center">
|
88 |
+
<img alt="" src="https://huggingface.co/spaces/deepset/README/resolve/main/haystack-logo-colored.svg" class="w-40"/>
|
89 |
+
</div>
|
90 |
+
<div class="w-full h-40 object-cover mb-2 rounded-lg flex items-center justify-center">
|
91 |
+
<img alt="" src="https://huggingface.co/spaces/deepset/README/resolve/main/deepset-logo-colored.svg" class="w-40"/>
|
92 |
+
</div>
|
93 |
+
</div>
|
94 |
|
95 |
+
[deepset](http://deepset.ai/) is the company behind the open-source NLP framework [Haystack](https://haystack.deepset.ai/) which is designed to help you build production ready NLP systems that use: Question answering, summarization, ranking etc.
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
|
98 |
+
Some of our other work:
|
99 |
+
- [Distilled roberta-base-squad2 (aka "tinyroberta-squad2")]([https://huggingface.co/deepset/tinyroberta-squad2)
|
|
|
|
|
|
|
|
|
100 |
- [German BERT (aka "bert-base-german-cased")](https://deepset.ai/german-bert)
|
101 |
- [GermanQuAD and GermanDPR datasets and models (aka "gelectra-base-germanquad", "gbert-base-germandpr")](https://deepset.ai/germanquad)
|
|
|
|
|
102 |
|
103 |
+
## Get in touch and join the Haystack community
|
104 |
+
|
105 |
+
<p>For more info on Haystack, visit our <strong><a href="https://github.com/deepset-ai/haystack">GitHub</a></strong> repo and <strong><a href="https://haystack.deepset.ai">Documentation</a></strong>.
|
106 |
+
|
107 |
+
We also have a <strong><a class="h-7" href="https://haystack.deepset.ai/community/join"><img alt="slack" class="h-7 inline-block m-0" style="margin: 0" src="https://huggingface.co/spaces/deepset/README/resolve/main/Slack_RGB.png"/>community open to everyone!</a></strong></p>
|
108 |
+
|
109 |
[Twitter](https://twitter.com/deepset_ai) | [LinkedIn](https://www.linkedin.com/company/deepset-ai/) | [Slack](https://haystack.deepset.ai/community/join) | [GitHub Discussions](https://github.com/deepset-ai/haystack/discussions) | [Website](https://deepset.ai)
|
110 |
|
111 |
By the way: [we're hiring!](http://www.deepset.ai/jobs)
|