Everything K-culture — comebacks to K-beauty, straight to your inboxGet it in your inbox

METAL MEDIA

Tangut Word Segmentation under Extreme Resource Scarcity: Integrating Traditional Lexicons and Unlabeled Text

arXiv:2608.184372026-08-20

Teaching AI to find word boundaries in Tangut, an extinct script with no spaces and no native speakers

Tangut script never marks where one word ends and the next begins, and since the language is extinct with no native speakers, figuring out word boundaries is unusually hard. Researchers combined 2,750 expert-segmented passages (31,893 tokens), a traditional dictionary, and unlabeled Tangut text to tackle this for the first time systematically. A CRF model using lexicon and statistical features reached about 0.91 F1, and their lightweight TangutEncoder model reached the best mean F1 of 0.911 while also being better at recognizing words never seen in training.

METAL MEDIA explanatory visual

Teaching AI to find word boundaries in Tangut, an extinct script with no spaces and no native speakers

  1. 01Tangut specialists at the Chinese Academy of Social Sciences manually segmented a Buddhist scripture (Mahāratnakūṭa-sūtra) and a secular encyclopedia (Leilin) into 2,750 annotated segments totaling 31,893 word tokens to serve as ground truth.
  2. 02Instead of picking just one dictionary match when candidates overlap, the team built a 'lexicon-lattice' representation that keeps all overlapping dictionary candidates and calibrates a reliability score for each based on how well it matches actual gold-standard boundaries.
  3. 03From about 318,000 characters of unlabeled Tangut text, they extracted statistics like bigram frequency, character association, and neighbor entropy, and also pretrained a compact character-level encoder called TangutEncoder (about 2.5 million parameters) using masked-language-model pretraining.
  4. 04Under five-fold cross-validation, the CRF with lexicon and statistical features reached roughly 0.91 F1, while the full TangutEncoder system achieved the highest mean F1 (0.911) and better recall on out-of-vocabulary (OOV) words not seen during training.
  5. 05The corpus is limited to just two works and skewed toward secular text, so while it generalizes well to held-out passages from the same sources, transfer to entirely new documents remains untested.
An explanatory diagram made by METAL MEDIA, not a figure supplied by the paper's authors.

What they did

  1. Tangut specialists at the Chinese Academy of Social Sciences manually segmented a Buddhist scripture (Mahāratnakūṭa-sūtra) and a secular encyclopedia (Leilin) into 2,750 annotated segments totaling 31,893 word tokens to serve as ground truth.
  2. Instead of picking just one dictionary match when candidates overlap, the team built a 'lexicon-lattice' representation that keeps all overlapping dictionary candidates and calibrates a reliability score for each based on how well it matches actual gold-standard boundaries.
  3. From about 318,000 characters of unlabeled Tangut text, they extracted statistics like bigram frequency, character association, and neighbor entropy, and also pretrained a compact character-level encoder called TangutEncoder (about 2.5 million parameters) using masked-language-model pretraining.
  4. Under five-fold cross-validation, the CRF with lexicon and statistical features reached roughly 0.91 F1, while the full TangutEncoder system achieved the highest mean F1 (0.911) and better recall on out-of-vocabulary (OOV) words not seen during training.
  5. The corpus is limited to just two works and skewed toward secular text, so while it generalizes well to held-out passages from the same sources, transfer to entirely new documents remains untested.
Figure 1: Surviving fragment of Mahāratnakūṭa-sūtra, Scroll 68.
Figure 1: Surviving fragment of Mahāratnakūṭa-sūtra, Scroll 68.
Table 1: Statistics of the expert-annotated Tangut corpus.
CategorySegmentsTokensTypes
Buddhist scriptures2343,717769
Secular documents2,51628,1764,046
Total2,75031,8934,433
Figure 2: Annotation examples from the religious and secular portions of the corpus. Vertical bars indicate expert-annotated word boundaries.
Figure 2: Annotation examples from the religious and secular portions of the corpus. Vertical bars indicate expert-annotated word boundaries.
Table 2: Composition of the 20-dimensional lexicon representation.
SymbolFeature groupDim.
BIELexicon-lattice indicators11
RReliability of observed entries3
PPrior for unseen entries3
MLexicographic metadata3
DictallFull lexicon representation20
Table 3: Explicit distributional features extracted from unlabeled text.
SymbolFeature groupDim.
FreqBigram frequency2
CooCharacter association2
EntNeighbor entropy4
DistallFull distributional representation8
Table 4: Overall segmentation results under five-fold cross-validation.
ModelPRF1OOV-RIV-R
Supervised baselines (RQ1)
Dict-corpus0.845±0.0050.890±0.0030.867±0.0040.219±0.0140.954±0.002
CRF0.880±0.0040.888±0.0030.884±0.0030.415±0.0260.933±0.003
BiLSTM–CRF0.862±0.0080.873±0.0080.868±0.0080.472±0.0140.912±0.006
Transformer-Random0.848±0.0080.863±0.0100.855±0.0090.519±0.0200.896±0.010
Lexicon-lattice ablation (RQ2)
CRF+BIE0.898±0.0040.897±0.0020.897±0.0030.489±0.0150.936±0.002
+ BIE + R0.902±0.0050.898±0.0030.900±0.0040.473±0.0210.939±0.002
+ BIE + R + P0.900±0.0030.900±0.0050.900±0.0040.463±0.0200.941±0.003
+ Dictall0.903±0.0050.902±0.0030.902±0.0040.467±0.0210.944±0.002
Explicit distributional features (RQ3)
CRF+ Dictall + Freq0.905±0.0030.904±0.0030.904±0.0030.483±0.0110.944±0.002
+ Dictall + Freq + Coo0.906±0.0030.905±0.0030.905±0.0030.486±0.0090.945±0.001
+ Dictall + Distall0.907±0.0040.906±0.0040.907±0.0040.491±0.0160.947±0.002
Representation learning and fusion (RQ4–RQ5)
Transformer-Char2Vec0.844±0.0050.860±0.0120.852±0.0080.491±0.0100.895±0.012
TangutEncoder0.881±0.0040.885±0.0020.883±0.0030.570±0.0110.915±0.004
TangutEncoder + Dictall0.902±0.0030.913±0.0060.907±0.0040.606±0.0140.942±0.005
TangutEncoder + Dictall + Distall0.905±0.0030.916±0.0040.911±0.0030.608±0.0140.946±0.003
Table 5: Mean performance by document genre.
SecularReligious
ModelF1OOV-RIV-RF1OOV-RIV-R
Dict-corpus0.869±0.0040.229±0.0170.956±0.0030.855±0.0190.132±0.0280.936±0.010
CRF0.887±0.0100.430±0.0350.934±0.0070.839±0.0110.262±0.0670.909±0.009
BiLSTM–CRF0.875±0.0070.498±0.0160.917±0.0060.810±0.0210.244±0.0280.875±0.021
Transformer-Random0.868±0.0080.545±0.0180.906±0.0100.760±0.0140.280±0.0600.816±0.017
CRF+Dictall0.904±0.0050.481±0.0240.942±0.0040.872±0.0040.301±0.0580.938±0.008
CRF+Dictall + Distall0.910±0.0050.506±0.0220.947±0.0020.881±0.0050.355±0.0600.939±0.008
Transformer-Char2Vec0.866±0.0080.514±0.0110.908±0.0120.749±0.0160.284±0.0330.800±0.022
TEnc0.892±0.0020.587±0.0160.922±0.0040.817±0.0160.422±0.0390.863±0.015
TEnc + Dictall0.915±0.0040.633±0.0230.946±0.0060.849±0.0180.362±0.0650.908±0.007
TEnc + Dictall + Distall0.917±0.0030.634±0.0220.949±0.0040.863±0.0150.385±0.0580.920±0.010
Table 6: Normalized overlap between annotated and unlabeled text.
Audit unitAllReligiousSecular
Exact segment (≥3 chars)000
5-gram overlap (%)0.372.660.02
10-gram overlap (%)0.010.080.00
Table 7: Normalized linguistic-label inventory.
GroupLabels
Core lexical categoriesa, c, d, m, n, p, q, r, u, v
Fine-grained lexical labelsb, l, t, nb, nc, nh, nl, no, ns, mc, mo, rd, ri, rp
Morphosyntactic labelsDir1., Dir2., Erg., Obj., Quot., Nom., Pfv., Fut., Loc., 1sg., 2sg., pl.
Table 8: Hyperparameters of the linear CRF. All reported CRF results use a fixed budget of 200 L-BFGS iterations.
ParameterValue
L1 coefficient (c1)1.0
L2 coefficient (c2)10−3
Maximum L-BFGS iterations200
Validation-based stoppingNot used
All possible transitionsEnabled
Character context window±2 characters
Inner folds for OOF reliability5
Reliability smoothing (κ)5
Table 9: Preliminary hyperparameter search for the supervised BiLSTM–CRF. Emb. denotes the character-embedding dimension, and Hidden denotes the concatenated output dimension of the two directions. The best segmentation F1 is highlighted.
LayersEmb.HiddenBatchDropoutLRF1
21002565120.35×10−40.8636
21001285120.35×10−40.8595
2100645120.3𝟓×𝟏𝟎−𝟒0.8905
2100325120.35×10−40.8873
2100165120.35×10−40.8423
1100645120.35×10−40.8638
11001285120.35×10−40.8569
3100645120.35×10−40.8659
21006410240.35×10−40.8829
2100642560.35×10−40.8822
2100641280.35×10−40.8861
210064640.35×10−40.8870
210064320.35×10−40.8900
210064160.35×10−40.8854
210064320.31×10−40.8847
232645120.35×10−40.8382
264645120.35×10−40.8496
2128645120.35×10−40.8814
2256645120.35×10−40.8755
2100645120.15×10−40.8824
2100645120.55×10−40.8870
Table 10: Selected architectural and training parameters of the BiLSTM–CRF. The maximum number of epochs is only an upper bound; the checkpoint with the lowest development loss is restored after early stopping.
ParameterSelected value
Character embedding size100
BiLSTM layers2
Hidden size32 per direction
BiLSTM output size64
Emission size4
Model dropout0.3
Dictionary dropout0.2
Parameter initializationXavier uniform
OptimizerAdam
Learning rate5×10−4
Batch size512 sentences
Maximum epochs10,000
Early-stopping patience3 epochs
Selection criterionDevelopment NLL
Gradient clipping5.0
Table 11: Shared architecture of the Transformer–CRF variants. The two external-feature projections are included only in the corresponding fusion models.
ParameterValue
Character embedding size192
Maximum sequence length128
Transformer layers3
Attention heads4
Dimension per head48
Feed-forward size768
ActivationGELU
NormalizationPre-LN
Encoder dropout0.15
Task-head dropout0.20
Position embeddingsLearned
Dictionary projection20→32
Distributional projection8→16
Output layerLinear + CRF
Table 12: Training parameters of the static Char2Vec initialization.
Char2Vec parameterValue
Training objectiveSkip-gram
Vector size192
Context window5
Negative samples10
Minimum frequency1
Training epochs30
Workers1
Random seed42
Minimum sequence length2 characters
Table 13: Masked-language-model pretraining parameters of TangutEncoder. Pretraining completed the full 5,000 steps, and the checkpoint with the lowest validation loss was retained.
MLM parameterValue
Masking ratio0.15
Span-masking probability0.50
Span length2–4 characters
Replacement strategy80/10/10
OptimizerAdamW
Learning rate3×10−4
Weight decay0.01
Batch size32 sequences
Maximum steps5,000
Warm-up steps500
Learning-rate scheduleWarm-up then constant
Evaluation interval200 steps
Early-stopping patience5 evaluations
Gradient clipping1.0
Validation split5 held-out UUIDs
Table 14: Downstream training parameters shared by Transformer–Random, Transformer–Char2Vec and TangutEncoder.
Fine-tuning parameterValue
Frozen-encoder epochs3
OptimizerAdamW
Encoder learning rate5×10−5
Task-head learning rate5×10−4
Weight decay0.01
Batch size32 sentences
Maximum fine-tuning epochs10,000
LR-reduction patience5 epochs
LR-reduction factor0.3
Early-stopping patience10 epochs
Selection criterionDevelopment NLL
Gradient clipping1.0
Table 15: Comparison of association measures under five-fold cross-validation.
Association featuresPRF1OOV-RIV-R
Freq + dPMI0.906±0.0030.905±0.0030.905±0.0030.486±0.0090.945±0.001
Freq + dPMI + Ent0.907±0.0040.906±0.0040.907±0.0040.491±0.0160.947±0.002
Freq + Dice0.905±0.0030.905±0.0040.905±0.0030.485±0.0100.945±0.002
Freq + Dice + Ent0.907±0.0040.906±0.0040.906±0.0040.489±0.0160.946±0.002
Freq + t-score0.905±0.0040.904±0.0040.904±0.0040.483±0.0140.944±0.003
Freq + t-score + Ent0.907±0.0030.906±0.0040.907±0.0040.490±0.0130.946±0.002
Table 16: Bidirectional maximum matching with different dictionary sources. Values are five-fold means.
ModelPRF1OOV-RIV-R
Dict-corpus.845.890.867.219.954
Dict-dictionary.787.728.756.666.733
Dict-all.821.740.779.665.748
Table 17: BiLSTM–CRF variants with progressively richer external features.
ModelExternal featuresPRF1OOV-RIV-R
BiLSTM00.862±0.0080.873±0.0080.868±0.0080.472±0.0140.912±0.006
BiLSTM+BIE110.885±0.0050.894±0.0040.889±0.0040.546±0.0110.927±0.004
BiLSTM+BIE+R140.891±0.0030.898±0.0040.894±0.0040.546±0.0090.931±0.003
BiLSTM+Dictall170.893±0.0030.900±0.0030.897±0.0030.551±0.0110.933±0.003
+ Dictall + IL280.896±0.0030.900±0.0020.898±0.0020.557±0.0090.933±0.002
+ Dictall + IL + DD300.897±0.0040.904±0.0030.900±0.0030.554±0.0060.938±0.002
+ Dictall + IL + DD + Freq30+20.902±0.0040.909±0.0050.906±0.0040.560±0.0080.943±0.005
+ Dictall + IL + DD + Freq + Coo30+40.902±0.0040.909±0.0040.905±0.0030.563±0.0160.941±0.004
+ Dictall + IL + DD + Distall30+80.902±0.0030.909±0.0040.905±0.0030.562±0.0140.942±0.004
Table 18: Genre-level results for the BiLSTM–CRF feature variants.
SecularReligious
ModelF1OOV-RF1OOV-R
BiLSTM0.875±0.0070.498±0.0160.810±0.0210.244±0.028
BiLSTM+BIE0.897±0.0050.573±0.0150.830±0.0180.305±0.043
BiLSTM+BIE+R0.903±0.0040.574±0.0140.829±0.0130.286±0.053
BiLSTM+Dictall0.905±0.0030.579±0.0140.835±0.0160.298±0.037
+ Dictall + IL0.905±0.0020.586±0.0110.842±0.0180.300±0.043
+ Dictall + IL + DD0.907±0.0010.586±0.0080.850±0.0210.270±0.041
+ Dictall + IL + DD + Freq0.911±0.0030.588±0.0120.862±0.0190.316±0.056
+ Dictall + IL + DD + Freq + Coo0.911±0.0020.591±0.0230.859±0.0260.322±0.076
+ Dictall + IL + DD + Distall0.911±0.0010.589±0.0200.860±0.0210.326±0.051
Table 19: Downstream results of lexicon-aware continued pretraining. Both encoders are evaluated with the same dictionary and distributional features.
PretrainingF1OOV-RIV-R
MLM0.911±0.0030.608±0.0140.946±0.003
MLM + WordRank0.912±0.0030.617±0.0120.946±0.003

Why it matters

Because Tangut has no native speakers and only scarce digitized resources, this work shows a practical way to build word segmentation by combining traditional dictionaries, unlabeled text, and a small amount of expert annotation. Word segmentation is a prerequisite for nearly everything else in Tangut digital research—search, part-of-speech tagging, alignment, translation—so this approach offers a template that could also help other severely under-resourced historical languages.

Terms in this paper

  • BIES tagging · Labeling each character as the Beginning, Inside, or End of a multi-character word, or a Single-character word, to mark boundaries
  • CRF (Conditional Random Field) · A statistical model that picks the most likely sequence of labels by considering neighboring characters
  • lexicon-lattice · A representation that keeps all overlapping dictionary word-candidates at a position instead of forcing a single choice
  • MLM (masked language model) pretraining · Training a model to predict hidden characters from context, which teaches it contextual understanding of text
  • OOV (out-of-vocabulary) · A word that never appeared in the training data, so the model has to guess it purely from context or outside knowledge

Original abstract (English)

Tangut is an extinct language whose script does not explicitly mark word boundaries. We present the first systematic study of Tangut word segmentation using 2,750 expert-annotated segments(31,893 tokens), traditional lexicons, and unlabeled text. Our framework combines a reliability-calibrated lexicon-lattice representation, explicit distributional statistics, and a lightweight character encoder pretrained with MLM. Segment-level five-fold cross-validation shows that lexical and statistical features raise CRF F1 to approximately 0.91. The full TangutEncoder reaches the highest mean F1 (0.911) and improves recall beyond the labeled training vocabulary. These results demonstrate generalization beyond the limited supervised vocabulary across thematically diverse held-out passages, while document-level transfer remains to be evaluated.

Authors · Lifan Deng, Yongwei Zhang, Sen Sun, Bojun Sun, Jingsong Yu

Read on arXiv

Latest papers

All papers →

Latest from METAL MEDIA

Figures: Lifan Deng et al., arXiv:2608.18437, CC BY 4.0