update readme usage section
Browse files
README.md
CHANGED
|
@@ -43,7 +43,12 @@ covering edge cases and category variations to improve generalization across rea
|
|
| 43 |
```python
|
| 44 |
from transformers import pipeline
|
| 45 |
|
| 46 |
-
classifier = pipeline(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
result = classifier("诇讗讞专 讘讚讬拽转 讚诐 砖讙专转讬转, 谞诪爪讗讜 注专讻讬诐 转拽讬谞讬诐")
|
| 48 |
print(result)
|
| 49 |
```
|
|
|
|
| 43 |
```python
|
| 44 |
from transformers import pipeline
|
| 45 |
|
| 46 |
+
classifier = pipeline(
|
| 47 |
+
"text-classification",
|
| 48 |
+
model="annaadar/MedTextBERT",
|
| 49 |
+
tokenizer="annaadar/MedTextBERT"
|
| 50 |
+
)
|
| 51 |
+
|
| 52 |
result = classifier("诇讗讞专 讘讚讬拽转 讚诐 砖讙专转讬转, 谞诪爪讗讜 注专讻讬诐 转拽讬谞讬诐")
|
| 53 |
print(result)
|
| 54 |
```
|