Genja (Galician Enjambment Analyzer): enjambment classification for Galician verse

BERT-GL (marcosgg/bert-base-gl-cased) fine-tuned as a sequence-pair classifier in two stages: first on Spanish, then on Galician adjacent verse lines. Input: two consecutive verse lines (EOT as second line after a poem's last line). Output: a label from Wesling's hierarchy of grammatical boundaries, following Haider et al. (2026): 2 the line break interrupts a phrase, 3 matches a phrase boundary, 4 matches a clause boundary, 5 matches a sentence boundary (no enjambment).

This configuration (BERT-GL initialized from a Spanish-trained model) is the best on average in the Genja experiments: mean test macro-F1 0.796 ± 0.018 over 25 runs (five Spanish source splits × five Galician splits; range 0.762-0.833). This checkpoint is the best run of that configuration (Spanish split 2, then Galician split 4): test macro-F1 0.833 and accuracy 0.830 on the Galician split-4 test set. As the highest of 25 runs, 0.833 is an optimistic figure; expect performance closer to the configuration mean on new poems. See the experiments in https://github.com/compellit/genja.

License

AGPL-3.0, the license of the base model BERT-GL (marcosgg/bert-base-gl-cased).

References

Alonso Pérez, A., Ruiz Fabo, P., Haider, T., Pablo Rodríguez Fernández, & Gamallo, P. (2026). O GalAPAgoS (Galician Automatic Poetry Analysis System) comeza a camiñar]. Zenodo. III Xeira CLARIAH-GAL, Santiago de Compostela. https://doi.org/10.5281/zenodo.21814614

Thomas Haider, Pablo Ruiz Fabo, Timo Baumann and Clara Isabel Martínez Cantón (2026). Enjambement as syntactic disruption in historical and contemporary German and Spanish poetry. Computational Humanities Research. https://doi.org/10.1017/chr.2026.10050

Downloads last month
38
Safetensors
Model size
0.2B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for compellit/genja-bert-gl

Finetuned
(2)
this model

Collections including compellit/genja-bert-gl