K-文化的一切——从回归到 K-美妆,发送到您的邮箱订阅邮件

METAL MEDIA

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

arXiv:2608.184372026-08-20

没有空格、也没有母语者的西夏文,AI来找断词边界

西夏文书写时词与词之间不留任何标记,而这门语言又早已灭绝、没有母语者,判断词语从哪里断开异常困难。研究团队首次系统性地结合2,750段专家标注文本(31,893个词元)、传统辞书和未标注文本来解决这个问题。结果显示,融合辞书特征和统计特征的CRF模型F1约达0.91,团队自建的轻量字符编码器TangutEncoder平均F1最高达0.911,对训练中未见过的词也识别得更好。

METAL MEDIA 解读图

没有空格、也没有母语者的西夏文,AI来找断词边界

  1. 01来自中国社会科学院的西夏文专家,对佛经《宝积经》和世俗类书《类林》进行人工断词,形成2,750段、共31,893个词元的标注语料作为标准答案。
  2. 02针对辞书中多个候选词在同一位置重叠的情况,团队没有像传统最大匹配法那样只保留一个,而是构建了保留所有重叠候选的'辞典格子(lexicon-lattice)'表示,并根据候选词与真实断词边界的吻合程度计算可靠性分数。
  3. 03从约31.8万字的未标注西夏文文本中提取双字频率、字符关联强度、邻接熵等统计特征,并用掩码语言模型方法预训练了一个约250万参数的轻量字符编码器TangutEncoder。
  4. 04在五折交叉验证下,融合辞典与统计特征的CRF模型F1约为0.91,而完整的TangutEncoder系统平均F1最高(0.911),对训练词表之外的生词(OOV)召回率也更高。
  5. 05语料仅来自两部作品且偏向世俗文本,虽然在同一来源内的不同段落上泛化良好,但尚未验证对全新文献的迁移效果。
这是 METAL MEDIA 制作的解读图,并非论文作者提供的原图。

他们做了什么

  1. 来自中国社会科学院的西夏文专家,对佛经《宝积经》和世俗类书《类林》进行人工断词,形成2,750段、共31,893个词元的标注语料作为标准答案。
  2. 针对辞书中多个候选词在同一位置重叠的情况,团队没有像传统最大匹配法那样只保留一个,而是构建了保留所有重叠候选的'辞典格子(lexicon-lattice)'表示,并根据候选词与真实断词边界的吻合程度计算可靠性分数。
  3. 从约31.8万字的未标注西夏文文本中提取双字频率、字符关联强度、邻接熵等统计特征,并用掩码语言模型方法预训练了一个约250万参数的轻量字符编码器TangutEncoder。
  4. 在五折交叉验证下,融合辞典与统计特征的CRF模型F1约为0.91,而完整的TangutEncoder系统平均F1最高(0.911),对训练词表之外的生词(OOV)召回率也更高。
  5. 语料仅来自两部作品且偏向世俗文本,虽然在同一来源内的不同段落上泛化良好,但尚未验证对全新文献的迁移效果。
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

为什么重要

西夏文没有母语者、数字化资源也极度匮乏,这项研究展示了一条在如此稀缺条件下,结合传统辞书、未标注文本和少量专家标注来实现断词的可行路径。断词是西夏文检索、词性标注、文本对齐、机器翻译等后续数字人文研究的基础一步,这套方法也为其他资源极度匮乏的古文字或濒危语言研究提供了可借鉴的框架。

本文术语

  • BIES标注 · 给每个字标记它是词的开头(B)、中间(I)、结尾(E),还是单字词(S),用来标出词语边界
  • CRF(条件随机场) · 一种统计模型,综合考虑前后字符关系,找出最可能的标签序列
  • 辞典格子(lexicon-lattice) · 在同一位置保留辞典中所有重叠候选词,而不是只挑一个的表示方法
  • 掩码语言模型(MLM)预训练 · 遮住部分字符让模型去猜,从而学会理解上下文含义的训练方法
  • 未登录词(OOV) · 训练数据中从未出现过的词,模型只能依靠上下文或外部知识去判断

论文原文摘要(英文)

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.

作者 · Lifan Deng, Yongwei Zhang, Sen Sun, Bojun Sun, Jingsong Yu

在 arXiv 阅读

最新论文

全部论文 →

METAL MEDIA 最新报道

图片来源: Lifan Deng et al., arXiv:2608.18437, CC BY 4.0