add formatting to code blocks
Browse files
README.md
CHANGED
@@ -34,11 +34,15 @@ widget:
|
|
34 |
|
35 |
## usage in python
|
36 |
|
37 |
-
install transformers as needed:
|
38 |
-
|
39 |
-
run the following, changing the example text to your use case:
|
40 |
|
|
|
|
|
41 |
```
|
|
|
|
|
|
|
|
|
42 |
from transformers import pipeline
|
43 |
|
44 |
model_tag = "ml4pubmed/BiomedNLP-PubMedBERT-base-uncased-abstract-fulltext_pub_section"
|
|
|
34 |
|
35 |
## usage in python
|
36 |
|
37 |
+
install transformers as needed:
|
|
|
|
|
38 |
|
39 |
+
```bash
|
40 |
+
pip install -U transformers`
|
41 |
```
|
42 |
+
|
43 |
+
Run the following, changing the example text to your use case:
|
44 |
+
|
45 |
+
```python
|
46 |
from transformers import pipeline
|
47 |
|
48 |
model_tag = "ml4pubmed/BiomedNLP-PubMedBERT-base-uncased-abstract-fulltext_pub_section"
|