CoolFace
Modelpublic

developer-lunark/kaidol-ner-multilingual

sourceHugging Facemitupdated 1y agoView on Hugging Face
1likes10downloads
Model Card

🌐 KAIdol NER Multilingual Model

This is a multilingual NER (Named Entity Recognition) model developed as part of the KAIdol Project. It is based on `Davlan/xlm-roberta-base-ner-hrl`, fine-tuned on the WikiAnn dataset for Korean (ko), English (en), Spanish (es), and Portuguese (pt).

🧠 Model Details

  • β€”Base model: Davlan/xlm-roberta-base-ner-hrl
  • β€”NER Tags:
  • β€”PER: Person
  • β€”ORG: Organization
  • β€”LOC: Location
  • β€”Tokenizer: AutoTokenizer from base model
  • β€”Max length: 128 tokens

πŸ“Š Training Configuration

ParameterValue
Epochs5
Batch Size16
OptimizerAdamW
Learning Rate5e-5
LossCrossEntropy with class weights
DatasetWikiAnn (en, ko, es, pt)

βœ… Performance Summary

LanguageF1-macroPER F1ORG F1LOC F1
English0.740.840.630.76
Korean0.430.460.300.52
SpanishTBDTBDTBDTBD
PortugueseTBDTBDTBDTBD
Performance on es and pt will be updated after evaluation. Korean performance is limited due to tokenization issues in WikiAnn.

πŸš€ Usage Example

python
from transformers import AutoTokenizer, AutoModelForTokenClassification

model = AutoModelForTokenClassification.from_pretrained("developer-lunark/kaidol-ner-multilingual")
tokenizer = AutoTokenizer.from_pretrained("developer-lunark/kaidol-ner-multilingual")

tokens = tokenizer("Barack Obama naciΓ³ en HawΓ‘i.", return_tensors="pt")
output = model(**tokens)

🧾 Label Mapping

python
{
  'O': 0,
  'B-PER': 1,
  'I-PER': 2,
  'B-ORG': 3,
  'I-ORG': 4,
  'B-LOC': 5,
  'I-LOC': 6
}

πŸ” License

MIT License

πŸ“¬ Contact

Developed by the [KAIdol ν”„λ‘œμ νŠΈ νŒ€].

For questions or collaborations, contact: developer-lunark