Downloads · 30 days
0
paulbontempo/bert-tagalog-cl-stage2
bert-tagalog-cl-stage2 is a machine learning model from paulbontempo. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This model is a fine-tuned BERT model for Tagalog with contrastive learning on dependency parse triples.
Downloads · 30 days
0
Access
Public
Updated Dec 2, 2025
Repo size
717 MB
Likes
0
Public
Click a slice to open those files.
.pt717 MB · 100%
From the Hugging Face model README
This model is a fine-tuned BERT model for Tagalog with contrastive learning on dependency parse triples.
This is a custom ContrastiveDependencyModel that wraps the Stage 1 BERT model with:
final_model.pt: PyTorch checkpoint with full model staterelation_to_id.json: Mapping of dependency relation labels to IDsmodel_code.py: Model architecture definition and loading utilitiesimport torch
from model_code import ContrastiveDependencyModel, load_model
model, relation_to_id = load_model(
model_path="final_model.pt",
relation_json="relation_to_id.json",
bert_model="paulbontempo/bert-tagalog-mlm-stage1"
)
model.eval()
from huggingface_hub import hf_hub_download
from model_code import ContrastiveDependencyModel, load_model
model_path = hf_hub_download(
repo_id="paulbontempo/bert-tagalog-cl-stage2",
filename="final_model.pt"
)
relation_path = hf_hub_download(
repo_id="paulbontempo/bert-tagalog-cl-stage2",
filename="relation_to_id.json"
)
model, relation_to_id = load_model(
model_path=model_path,
relation_json=relation_path,
bert_model="paulbontempo/bert-tagalog-mlm-stage1"
)
If you use this model, please cite appropriately.