Downloads · 30 days
0
NIRVLab/xnli-morphel-tr-32k
xnli-morphel-tr-32k is a machine learning model from NIRVLab. 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.
MorpheL: MI-Guided Stochastic Segmentation tokenizer for morphologically rich low-resource languages (Proposal: MorpheL: Morphology-Aware Tokenizer Adaptation for Pretrained Models in Low-Resource Languages).
Downloads · 30 days
0
Access
Public
Updated Jul 1, 2026
Repo size
20.5 MB
Likes
0
Public
Click a slice to open those files.
.pkl8.8 MB · 86%
From the Hugging Face model README
MorpheL: MI-Guided Stochastic Segmentation tokenizer for morphologically rich low-resource languages (Proposal: MorpheL: Morphology-Aware Tokenizer Adaptation for Pretrained Models in Low-Resource Languages).
Trained on the Turkish (tr) subset of
facebook/xnli — all splits.
MorpheL scores candidate intra-word boundaries via pointwise mutual information (MI) between prefix and suffix substrings, then stochastically selects the number of cuts via Gumbel perturbation (Eq. 6–8). Key distinctions from BPE-Dropout:
| Parameter | Value |
|---|---|
| Algorithm | MorpheL (MI + Gumbel) |
| Vocabulary size | 32,071 |
| top_k | 4 |
| temperature (T) | 1.0 (vocab induction: T=0) |
| mi_threshold | 0.0 (keep MI > 0) |
| min_frequency | 2 |
| Special tokens | <s>, <pad>, </s>, <unk>, <mask> |
| Corpus | facebook/xnli/tr — all splits (800,404 sentences) |
| Vowel set | Turkish (ı İ ö ü â î û + ASCII) |
| Metric | BPE | WordPiece | Unigram | MorpheL |
|---|---|---|---|---|
| Fertility ↓ | — | — | — | 1.4363 |
| Tokens/char ↓ | — | — | — | 0.1918 |
| Avg seq len ↓ | — | — | — | 16.97 |
| Vocab coverage ↑ | — | — | — | 1.0000 |
| OOV rate ↓ | — | — | — | 0.0000 |
Fill baseline columns after running baseline notebooks.
from transformers import AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("NIRVLab/xnli-morphel-tr-32k")
Note: MorpheL segments words before passing to the tokenizer. At downstream training time, use
temperature=1.0for stochastic segmentation. For inference, usetemperature=0(deterministic).