Instructions to use SIRIS-Lab/citation-parser-SELECT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SIRIS-Lab/citation-parser-SELECT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="SIRIS-Lab/citation-parser-SELECT")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("SIRIS-Lab/citation-parser-SELECT") model = AutoModelForSequenceClassification.from_pretrained("SIRIS-Lab/citation-parser-SELECT") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +9 -1
config.json
CHANGED
|
@@ -22,5 +22,13 @@
|
|
| 22 |
"tie_weights_": true,
|
| 23 |
"torch_dtype": "float32",
|
| 24 |
"transformers_version": "4.46.2",
|
| 25 |
-
"vocab_size": 119547
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
}
|
|
|
|
| 22 |
"tie_weights_": true,
|
| 23 |
"torch_dtype": "float32",
|
| 24 |
"transformers_version": "4.46.2",
|
| 25 |
+
"vocab_size": 119547,
|
| 26 |
+
"id2label": {
|
| 27 |
+
"0": "False",
|
| 28 |
+
"1": "True"
|
| 29 |
+
},
|
| 30 |
+
"label2id": {
|
| 31 |
+
"False": 0,
|
| 32 |
+
"True": 1
|
| 33 |
+
},
|
| 34 |
}
|