Token Classification
Transformers
PyTorch
Safetensors
English
bert
toponym detection
language model
geospatial understanding
geolm
Instructions to use knowledge-computing/geolm-base-toponym-recognition with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use knowledge-computing/geolm-base-toponym-recognition with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="knowledge-computing/geolm-base-toponym-recognition", device_map="auto")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("knowledge-computing/geolm-base-toponym-recognition") model = AutoModelForTokenClassification.from_pretrained("knowledge-computing/geolm-base-toponym-recognition", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload config.json
Browse files- config.json +2 -2
config.json
CHANGED
|
@@ -8,14 +8,14 @@
|
|
| 8 |
"hidden_dropout_prob": 0.1,
|
| 9 |
"hidden_size": 768,
|
| 10 |
"id2label": {
|
| 11 |
-
"0": "
|
| 12 |
"1": "B-Topo",
|
| 13 |
"2": "I-Topo"
|
| 14 |
},
|
| 15 |
"initializer_range": 0.02,
|
| 16 |
"intermediate_size": 3072,
|
| 17 |
"label2id": {
|
| 18 |
-
"
|
| 19 |
"B-Topo": 1,
|
| 20 |
"I-Topo": 2
|
| 21 |
},
|
|
|
|
| 8 |
"hidden_dropout_prob": 0.1,
|
| 9 |
"hidden_size": 768,
|
| 10 |
"id2label": {
|
| 11 |
+
"0": "O",
|
| 12 |
"1": "B-Topo",
|
| 13 |
"2": "I-Topo"
|
| 14 |
},
|
| 15 |
"initializer_range": 0.02,
|
| 16 |
"intermediate_size": 3072,
|
| 17 |
"label2id": {
|
| 18 |
+
"O": 0,
|
| 19 |
"B-Topo": 1,
|
| 20 |
"I-Topo": 2
|
| 21 |
},
|