Downloads · 30 days
0
HiTZ/PL-BERT-wp-eu
PL-BERT-wp-eu is a machine learning model from HiTZ. 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 apache-2.0.
<details <summaryClick to expand</summary
Downloads · 30 days
0
Access
Public
Updated Feb 20, 2026
Repo size
538 MB
Likes
2
Public
Click a slice to open those files.
.t7534 MB · 99%
From the Hugging Face model README
PL-BERT-eu is a phoneme-level masked language model trained on Basque Wikipedia text. It is based on PL-BERT architecture and learns phoneme representations via a masked language modeling objective.
This model supports phoneme-based text-to-speech (TTS) systems, such as StyleTTS2 using Basque-specific phoneme vocabulary and contextual embeddings.
Features of our PL-BERT:
token_maps_eu.pkl and adapted util.py.Here is an example of how to use this model within the StyleTTS2 framework:
Clone the StyleTTS2 repository: https://github.com/yl4579/StyleTTS2
Inside the Utils directory, create a new folder, for example: PLBERT_eu.
Copy the following files into that folder:
config.yml (training configuration)step_4000000.t7 (trained checkpoint)util.py (modified to fix position ID loading)In your StyleTTS2 configuration file, update the PLBERT_dir entry to:
PLBERT_dir: Utils/PLBERT_eu
Update the import statement in your code to:
from Utils.PLBERT_eu.util import load_plbert
We used code developed by Aholab to generate IPA phonemes for training the model. You can see a demo of the Basque phonemizer at arrandi/phonemizer-eus-esp. Likewise, the code used to generate IPA phonemes can be found in the phonemizer directory. We collapsed multi-character phonemes into single-character phonemes for better grapheme–phoneme alignment.
Note: If second-stage StyleTTS2 training produces a NaN loss when using a single GPU, see issue #254 in the original StyleTTS2 repository.
The model was trained on a Basque corpus phonemized using Modelo1y2. It uses a consistent phoneme token set with boundary markers and masking tokens.
Tokenizer: custom (splits on whitespace)
Phoneme masking strategy: phoneme-level masking and replacement
Training steps: 4,000,000
Precision: mixed-precision (fp16)
Model parameters:
Other parameters:
The model has been successfully integrated into StyleTTS2, where it enables the synthesis of Basque.
If this code contributes to your research, please cite the work:
@misc{aarriandiagaplberteu,
title={PL-BERT-eu},
author={Ander Arriandiaga and Ibon Saratxaga and Eva Navas and Inma Hernaez},
organization={Hitz (Aholab) - EHU},
url={https://huggingface.co/langtech-veu/PL-BERT-wp_es},
year={2026}
}
Author: Ander Arriandiaga — Aholab (Hitz), EHU
For further information, please send an email to inma.hernaez@ehu.eus.
Copyright(c) 2026 by Aholab, HiTZ.
This work is funded by the Ministerio para la Transformación Digital y de la Función Pública - Funded by EU – NextGenerationEU within the framework of the project Desarrollo de Modelos ALIA.