CoolFace
Modelpublic

engineersakibcse47/NER_on_Bangla_Language

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes32downloads
Model Card

<h1>Named Entity Recognition on Bangla Language</h1> Fine Tuning BERT for NER on Bengali Language Tagging using HuggingFace

Correspondence Label ID and Label Name

Label IDLabel Name
0O
1B-PER
2I-PER
3B-ORG
4I-ORG
5B-LOC
6I-LOC

<h1>Evaluation and Validation</h1>

NamePrecisionRecallF1Accuracy
Train/Val set0.9638990.9647700.9643340.981252
Test set0.9528550.9651050.9589410.981349

Transformers AutoModelForTokenClassification

py
from transformers import AutoTokenizer, AutoModelForTokenClassification
from transformers import pipeline

tokenizer = AutoTokenizer.from_pretrained("engineersakibcse47/NER_on_Bangla_Language")
model_ner = AutoModelForTokenClassification.from_pretrained("engineersakibcse47/NER_on_Bangla_Language")

pipe = pipeline("ner", model=model_ner, tokenizer=tokenizer, aggregation_strategy="simple")

sample = "বসনিয়া ও হার্জেগোভিনা"

result = pipe(sample)
result