Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -85,13 +85,8 @@ For **26 parent subjects**, F1-score improves to **0.934** with full metadata.
|
|
| 85 |
|
| 86 |
```python
|
| 87 |
from transformers import pipeline
|
| 88 |
-
from custom_pipeline import ASJCMultiLabelPipeline
|
| 89 |
|
| 90 |
-
pipe = pipeline(
|
| 91 |
-
task="text-classification",
|
| 92 |
-
model="asjc-classification/scibert_multilabel_asjc_classifier",
|
| 93 |
-
pipeline_class=ASJCMultiLabelPipeline
|
| 94 |
-
)
|
| 95 |
|
| 96 |
text = (
|
| 97 |
"title={Jodometrie}, "
|
|
@@ -101,6 +96,12 @@ text = (
|
|
| 101 |
|
| 102 |
result = pipe(text)
|
| 103 |
print(result)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
---
|
| 105 |
|
| 106 |
## 📖 Citation
|
|
|
|
| 85 |
|
| 86 |
```python
|
| 87 |
from transformers import pipeline
|
|
|
|
| 88 |
|
| 89 |
+
pipe = pipeline("text-classification", model="asjc-classification/scibert_multilabel_asjc_classifier")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
|
| 91 |
text = (
|
| 92 |
"title={Jodometrie}, "
|
|
|
|
| 96 |
|
| 97 |
result = pipe(text)
|
| 98 |
print(result)
|
| 99 |
+
|
| 100 |
+
# Actual labels:
|
| 101 |
+
# - Clinical Biochemistry
|
| 102 |
+
# - Analytical Chemistry
|
| 103 |
+
```
|
| 104 |
+
|
| 105 |
---
|
| 106 |
|
| 107 |
## 📖 Citation
|