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 README.md
Browse files
README.md
CHANGED
|
@@ -92,7 +92,9 @@ To use this model, please refer to the code below.
|
|
| 92 |
|
| 93 |
* **Option 1:** Load weights to a BERT model (Same procedure as the demo on the right side panel)
|
| 94 |
|
| 95 |
-
```
|
|
|
|
|
|
|
| 96 |
from transformers import AutoModelForTokenClassification, AutoTokenizer
|
| 97 |
|
| 98 |
|
|
|
|
| 92 |
|
| 93 |
* **Option 1:** Load weights to a BERT model (Same procedure as the demo on the right side panel)
|
| 94 |
|
| 95 |
+
```python
|
| 96 |
+
|
| 97 |
+
import torch
|
| 98 |
from transformers import AutoModelForTokenClassification, AutoTokenizer
|
| 99 |
|
| 100 |
|