Downloads · 30 days
9
3% of all-time downloads
huggingsaurusRex/bert-base-uncased-for-mountain-ner
bert-base-uncased-for-mountain-ner is a token classification model from huggingsaurusRex. Use it when you need labels on individual words, such as names. It is set up for transformers.
Detect mountain names in text using token classification.
Downloads · 30 days
9
3% of all-time downloads
All-time downloads
339
Public
Parameters
108M
431 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors431 MB · 100%
From the Hugging Face model README
Detect mountain names in text using token classification.
from transformers import AutoModelForTokenClassification, AutoTokenizer, pipeline
# Load model and tokenizer
model = AutoModelForTokenClassification.from_pretrained('huggingsaurusRex/bert-base-uncased-for-mountain-ner')
tokenizer = AutoTokenizer.from_pretrained('huggingsaurusRex/bert-base-uncased-for-mountain-ner')
# Create NER pipeline
ner = pipeline('ner', model=model, tokenizer=tokenizer)
# Perform inference
res = ner("I spent days climbing the Mount Everest.")
print(res)
The model is a BERT-based token classification model fine-tuned on the Few-NERD dataset.