Instructions to use josephimperial/hiligayner-mbert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use josephimperial/hiligayner-mbert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="josephimperial/hiligayner-mbert")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("josephimperial/hiligayner-mbert") model = AutoModelForTokenClassification.from_pretrained("josephimperial/hiligayner-mbert", device_map="auto") - Notebooks
- Google Colab
- Kaggle
HILIGAYNER mBERT
This model identifies persons (PER), locations (LOC), and organizations (ORG) in Hiligaynon text. It was fine-tuned on the released HILIGAYNER corpus described by Teves et al. (2025).
Use with Transformers
from transformers import pipeline
ner = pipeline("token-classification", model='josephimperial/hiligayner-mbert', aggregation_strategy="simple")
print(ner('Nagkadto si Maria Santos sa Iloilo City kahapon.'))
Use sentence-length inputs for conditions similar to training. The corpus draws on news, social media, and religious text. Performance may vary on other text, spelling conventions, and domains.
Training and evaluation
The split contains 8,004 train, 889 validation, and 2,227 test sentences after removing repeated text. The model used AdamW for 3 epochs, a learning rate of 5e-05, and a maximum sequence length of 128 tokens including special tokens. The best validation checkpoint by strict BIO span F1 was evaluated on the test set. The package includes the run settings and alignment counts in metrics.json.
Test macro F1 over the six BIO tags was 0.8585. Strict BIO span F1 was 0.8476. These are scores from this release run.
| BIO tag | Precision | Recall | F1 | Support |
|---|---|---|---|---|
| B-PER | 0.9534 | 0.9614 | 0.9574 | 1788 |
| I-PER | 0.9406 | 0.9299 | 0.9352 | 2127 |
| B-LOC | 0.8026 | 0.8493 | 0.8253 | 584 |
| I-LOC | 0.8183 | 0.8243 | 0.8213 | 1224 |
| B-ORG | 0.7789 | 0.8609 | 0.8179 | 532 |
| I-ORG | 0.7840 | 0.8037 | 0.7937 | 912 |
Citation
Teves, J. A., Cal, R. D., Villaluz, J. M., Malolos, J., Magtira, M., Rodriguez, R., Imperial, J. M., and Abisado, M. (2025). HILIGAYNER: A Baseline Named Entity Recognition Model for Hiligaynon. PACLIC 39.
- Downloads last month
- 33
Model tree for josephimperial/hiligayner-mbert
Base model
google-bert/bert-base-multilingual-cased