Instructions to use sgraham/ModernBERT_archae with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sgraham/ModernBERT_archae with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="sgraham/ModernBERT_archae")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("sgraham/ModernBERT_archae") model = AutoModelForTokenClassification.from_pretrained("sgraham/ModernBERT_archae") - Notebooks
- Google Colab
- Kaggle
Upload label_map.json with huggingface_hub
Browse files- label_map.json +13 -0
label_map.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"O": 0,
|
| 3 |
+
"B-ORG": 1,
|
| 4 |
+
"I-ORG": 2,
|
| 5 |
+
"B-LOC": 3,
|
| 6 |
+
"I-LOC": 4,
|
| 7 |
+
"B-PER": 5,
|
| 8 |
+
"I-PER": 6,
|
| 9 |
+
"B-SUBJ": 7,
|
| 10 |
+
"I-SUBJ": 8,
|
| 11 |
+
"B-ID": 9,
|
| 12 |
+
"I-ID": 10
|
| 13 |
+
}
|