Downloads · 30 days
6
40% of all-time downloads
Shah1st/mountain-ner-model
mountain-ner-model is a token classification model from Shah1st. Use it when you need labels on individual words, such as names. It is set up for transformers.
This project involves fine-tuning a BERT-based model (dslim/bert-large-NER) to perform Named Entity Recognition (NER) on mountain names in text.
Downloads · 30 days
6
40% of all-time downloads
All-time downloads
15
Public
Parameters
333M
1.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.3 GB · 100%
From the Hugging Face model README
This project involves fine-tuning a BERT-based model (dslim/bert-large-NER) to perform Named Entity Recognition (NER) on mountain names in text.
The model has been trained to identify mentions of mountain names and differentiate them from other geographic entities or non-entities.
Features:
Fine-tuned on a custom dataset that includes sentences both with and without mountain names.
Uses focal loss to handle class imbalance, which ensures the model focuses on correctly classifying rare mountain names.
Token-level classification for identifying the B-MOUNTAIN, I-MOUNTAIN, and O (non-entity) labels.
Balances training between sentences with mountains (80%) and without mountains (20%).
This is the model card of a 🤗 transformers model that has been pushed on the Hub.
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained('./saved_model')
model = AutoModelForTokenClassification.from_pretrained('./saved_model')
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
Use the github below to get started with the model.
https://github.com/Shah1st/mountain-ner
"DFKI-SLT/few-nerd", "supervised"
Filter for sentences with 'fine_ner_tags' == 24 (mountains)
'eval_loss': 0.009154710918664932, 'eval_macro_f1': 0.8952192988290304, 'eval_accuracy': 0.9746226793108054
macro F1: 0.895 Accuracy: 0.974
This project involves fine-tuning a BERT-based model (dslim/bert-large-NER) to perform Named Entity Recognition (NER) on mountain names in text. The model has been trained to identify mentions of mountain names and differentiate them from other geographic entities or non-entities.