Update README.md
Browse files
README.md
CHANGED
@@ -33,6 +33,19 @@ DOI = {10.3390/jpm14050545}
|
|
33 |
```
|
34 |
Note that the in the article the larger roberta-base model is fine-tuned instead. This is a smaller model. This model is shared for demonstration and validation purposes. Hyper-parameters were not tuned.
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
## Dataset
|
37 |
|
38 |
The dataset used to train this model is available on [zenodo](https://zenodo.org/records/13882003).
|
|
|
33 |
```
|
34 |
Note that the in the article the larger roberta-base model is fine-tuned instead. This is a smaller model. This model is shared for demonstration and validation purposes. Hyper-parameters were not tuned.
|
35 |
|
36 |
+
## Using this model
|
37 |
+
Simplest way to use this model is via a huggingface transformers' pipeline.
|
38 |
+
|
39 |
+
```python
|
40 |
+
# Use a pipeline as a high-level helper
|
41 |
+
from transformers import pipeline
|
42 |
+
|
43 |
+
pipe = pipeline("text-classification", model="lrei/rad-small")
|
44 |
+
|
45 |
+
# Simple high-level usage
|
46 |
+
pipe(["The patient suffer from a complex genetic disorder.", "The patient suffers from a common genetic disorder."])
|
47 |
+
```
|
48 |
+
|
49 |
## Dataset
|
50 |
|
51 |
The dataset used to train this model is available on [zenodo](https://zenodo.org/records/13882003).
|