Commit ·
b7bbc93
1
Parent(s): 312e598
Update README.md
Browse files
README.md
CHANGED
|
@@ -6,27 +6,40 @@ developers: Matt Stammers
|
|
| 6 |
model_type: BERT
|
| 7 |
model_summary: This model looks to compare texts for relevance to Covid-19
|
| 8 |
shared_by: Matt Stammers
|
| 9 |
-
finetuned_from:
|
| 10 |
-
repo:
|
|
|
|
| 11 |
paper: N/A
|
| 12 |
-
demo:
|
| 13 |
direct_use: Test it out here
|
| 14 |
downstream_use: This is a standalone app
|
| 15 |
-
out_of_scope_use:
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
bias_recommendations: Do not be surprised if unusual results are obtained
|
| 18 |
-
get_started_code:
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
preprocessing: Sentence Pairs to analyse similarity
|
| 27 |
training_regime: User Defined
|
| 28 |
speeds_sizes_times: Not Relevant
|
| 29 |
metrics: Not Given
|
|
|
|
| 30 |
---
|
| 31 |
This is a basic inference BERT model which has been fine-tuned to discriminate between covid19 and non-covid-19 relevant texts.
|
| 32 |
|
|
|
|
| 6 |
model_type: BERT
|
| 7 |
model_summary: This model looks to compare texts for relevance to Covid-19
|
| 8 |
shared_by: Matt Stammers
|
| 9 |
+
finetuned_from: https://thigm85.github.io/data/cord19/cord19-query-title-label.csv
|
| 10 |
+
repo: >-
|
| 11 |
+
https://huggingface.co/MattStammers/Covid19_Text_Model?text=Comprehensive+overview+of+COVID-19.+Comprehensive+overview+of+Flu
|
| 12 |
paper: N/A
|
| 13 |
+
demo: https://huggingface.co/MattStammers/Covid19_Text_Model?text=Comprehensive+overview+of+COVID-19.+Comprehensive+overview+of+Flu
|
| 14 |
direct_use: Test it out here
|
| 15 |
downstream_use: This is a standalone app
|
| 16 |
+
out_of_scope_use: >-
|
| 17 |
+
The model will not work with any very complex sentences or to compare more
|
| 18 |
+
than 3 statements
|
| 19 |
+
bias_risks_limitations: >-
|
| 20 |
+
Biases inherent in the google BERT base also apply here. Should not be used
|
| 21 |
+
for clinical tasks. This is a toy demonstration app only.
|
| 22 |
bias_recommendations: Do not be surprised if unusual results are obtained
|
| 23 |
+
get_started_code: |2-
|
| 24 |
+
|
| 25 |
+
``` python
|
| 26 |
+
# Use a pipeline as a high-level helper
|
| 27 |
+
from transformers import pipeline
|
| 28 |
+
|
| 29 |
+
pipe = pipeline("text-classification", model="MattStammers/Covid19_Text_Model")
|
| 30 |
+
# Load model directly
|
| 31 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 32 |
+
|
| 33 |
+
tokenizer = AutoTokenizer.from_pretrained("MattStammers/MattStammers/Covid19_Text_Model")
|
| 34 |
+
model = AutoModelForSequenceClassification.from_pretrained("MattStammers/Covid19_Text_Model")
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
training_data: https://thigm85.github.io/data/cord19/cord19-query-title-label.csv
|
| 38 |
preprocessing: Sentence Pairs to analyse similarity
|
| 39 |
training_regime: User Defined
|
| 40 |
speeds_sizes_times: Not Relevant
|
| 41 |
metrics: Not Given
|
| 42 |
+
pipeline_tag: text-generation
|
| 43 |
---
|
| 44 |
This is a basic inference BERT model which has been fine-tuned to discriminate between covid19 and non-covid-19 relevant texts.
|
| 45 |
|