# 分词

分词是将连续文本切分为词的任务，对于书写系统不以空格标记词边界的语言来说，这是必要的处理步骤。该问题研究最多的是中文，中文文本呈现为一串连续字符，除标点外没有分隔符，但分词同样适用于日文、泰文以及其他书写时不加词间空格的文字。

| 关键事实 | 详情 |
|---|---|
| 为何需要 | 中文文本是一串表意字符，除标点外没有明显的词边界，因此在文本处理之前必须识别边界。<sup>[1](https://www.sciencedirect.com/science/article/abs/pii/S0306457302000791)</sup> |
| 标准依赖性 | 不存在通用的、与应用无关的分词标准；不同的自然语言处理应用需要不同的词的粒度。<sup>[2](https://www.microsoft.com/en-us/research/publication/chinese-word-segmentation-named-entity-recognition-pragmatic-approach/)</sup> |
| 深度学习的发现 | 在四项基准任务（语言建模、机器翻译、句子匹配、文本分类）中，基于字符的神经网络模型始终优于依赖分词的基于词的模型。<sup>[3](https://aclanthology.org/P19-1314/)</sup> |
| 主要难点 | 平衡词表内词与未登录词（OOV）的识别是一项关键挑战；未登录词对神经网络模型而言仍然困难。<sup>[4](https://arxiv.org/abs/1901.06079)</sup><sup> • </sup><sup>[5](https://research.google/pubs/state-of-the-art-chinese-word-segmentation-with-bi-lstms/)</sup> |
| 基准水平 | 在PKU测试基准上，报告的最佳F1值为97.16，由ChineseBERT取得。<sup>[6](https://www.sota2.com/research/sota/chinese-word-segmentation-on-pku-test)</sup> |
| 评测活动 | 第二届国际中文分词评测（Bakeoff）提供了来自四家机构的训练与测试数据：中央研究院、香港城市大学、北京大学和微软研究院。<sup>[7](https://thumt.thunlp.org/)</sup> |
| 人类分歧 | 中文读者对同一文本的词边界常常意见不一，CCLWSSIP等国家标准的部分撰写目的正是减少这种歧义。<sup>[8](https://pmc.ncbi.nlm.nih.gov/articles/PMC3568123/)</sup> |

## 问题

在拼音文字中，空格分隔词语，因此分词主要只是按空白和标点切分的问题。中文、日文和泰文则不然。中文文本写成一连串连续的字符，而字符不等于词：大多数词是一个、两个或更多字符，同一字符序列可以有不止一种解析方式。在进行任何词级处理（如词性标注、句法分析、[信息检索](https://www.edgepedia.org/zh/information-retrieval)或机器翻译）之前，系统必须判定一个词在哪里结束、下一个词在哪里开始。<sup>[1](https://www.sciencedirect.com/science/article/abs/pii/S0306457302000791)</sup>

这项任务的复杂之处在于，即便人类也无法完全达成一致。心理语言学研究发现，中文读者对同一文本的词边界经常意见不一，而现有的中文阅读计算模型很少考虑句子阅读过程中的歧义切分。国家信息处理规范（CCLWSSIP）制定了语言标准，旨在避免自动分词的词边界歧义。<sup>[8](https://pmc.ncbi.nlm.nih.gov/articles/PMC3568123/)</sup>

## 依赖于应用的标准

并不存在唯一正确的分词。[微软研究院](https://www.edgepedia.org/zh/microsoft-research)的研究人员高剑峰、李沐、吴安迪和黄昌宁在《计算语言学》（2005）上主张，中文词应当实用地定义为切分单元，其定义取决于它们在真实应用中的使用方式；他们构建了自适应分词器MSRSeg，配有面向不同应用特定标准的输出适配器；在五个不同标准的测试集上取得了当时的最佳性能。<sup>[2](https://www.microsoft.com/en-us/research/publication/chinese-word-segmentation-named-entity-recognition-pragmatic-approach/)</sup>

偏好的方向取决于应用。信息检索受益于将复合词切分为更短单元的分词方式，这与德语检索中复合词拆分带来的收益类似。自动语音识别偏好词表中的较长词。对于基于短语的机器翻译，斯坦福大学的研究人员发现，略短于中文树库（CTB）标准的词效果最好，而且即便分词器的总体准确率很高，不一致的上下文相关切分决策也可能损害机器翻译性能。<sup>[9](https://nlp.stanford.edu/~manning/papers/acl08-cws-final.pdf)</sup>

## 方法

方法大致分为基于词典、基于统计和基于神经网络三类。经典词典方法扫描文本并与词表匹配，采用正向、逆向或双向匹配；一份对比实现报告称，这些方法在极高速度下F1约为0.87（例如正向匹配每秒366K字符），而一个LSTM模型在每秒56K字符的速度下达到0.9278 F1。<sup>[10](https://github.com/SamithVa/word_segmentation)</sup>

统计与机器学习方法将分词视为字符上的序列标注问题。斯坦福中文分词器使用线性链条件随机场（CRF）模型，将分词视为二元决策任务，结合字符本身的n元组特征、形态与重叠特征，以及词典和专名特征，以提高分词一致性。<sup>[11](https://nlp.stanford.edu/projects/chinese-nlp.shtml)</sup> 到2010年代中期，特征工程极少的神经网络模型已能达到与传统方法相竞争的性能。<sup>[12](https://arxiv.org/abs/1704.07047)</sup>

赵海及其同事对2007至2017年这十年的综述得出结论：与传统监督学习相比，神经网络方法在该任务上并未表现出更优性能，关键挑战仍然是词表内词与未登录词识别之间的平衡。<sup>[4](https://arxiv.org/abs/1901.06079)</sup> 谷歌后来的一项研究发现，双向LSTM结合标准深度学习实践，可以在许多流行数据集上击败更复杂的架构，其误差分析表明未登录词仍是主要错误来源，仅靠架构改动不太可能解决。<sup>[5](https://research.google/pubs/state-of-the-art-chinese-word-segmentation-with-bi-lstms/)</sup>

## 评测与当前性能

社区评测围绕共享基准组织。第二届国际中文分词评测提供了来自四家机构、采用不同分词标准的训练集、测试集和黄金标准答案，以及自动评分脚本。<sup>[7](https://thumt.thunlp.org/)</sup> 广泛使用的评测数据集包括宾州中文树库和SIGHAN Bakeoff 2005数据集。<sup>[13](https://www.jstage.jst.go.jp/article/jnlp/23/3/23_235/_pdf)</sup>

在标准基准上性能很高。在PKU测试集上，预训练语言模型占据排行榜前列：ChineseBERT（Large）报告F1为97.16、准确率为98.01，RoBERTa和BERT各变体的F1在96.3至96.95之间。<sup>[6](https://www.sota2.com/research/sota/chinese-word-segmentation-on-pku-test)</sup> 2020年的一项研究RethinkCWS发现，随着大型预训练模型的成功，性能已进入平台期，并提出在八个模型和七个数据集上进行细粒度评测，以诊断模型优势和量化分词标准之间的差异。<sup>[14](https://aclanthology.org/2020.emnlp-main.457/)</sup>

## 分词与深度学习

由于深度学习模型可以直接从字符学习表示，显式分词的作用受到了质疑。李晓雅、孟宇贤及其同事在2019年ACL论文中，在四项端到端任务上对依赖分词的基于词的神经网络模型和不依赖分词的基于字符的神经网络模型进行了基准比较：语言建模、机器翻译、句子匹配与复述，以及文本分类。基于字符的模型始终优于基于词的模型。作者将差距归因于基于词的模型更容易受数据稀疏和未登录词影响，从而更易过拟合。<sup>[3](https://aclanthology.org/P19-1314/)</sup>

这并不意味着分词无用。分词仍用于检索、文本分析和语言学工具包中，而将分词与下游任务联合执行的联合模型——例如使用BiLSTM或BERT编码器和双仿射评分器将分词与依存句法分析结合的图模型——已在两项任务上均取得最佳结果。<sup>[15](https://direct.mit.edu/tacl/article/doi/10.1162/tacl_a_00301/43541/A-Graph-based-Model-for-Joint-Chinese-Word)</sup>

## 工具

若干开源分词器被广泛使用。结巴（Jieba）被描述为基于词典的分词工具中事实上的标准；pkuseg和THULAC是广泛使用的统计系统，其中pkuseg附带面向新闻、网络等文本的领域特定模型；HanLP是流行的研究级工具套件，配有基于Transformer的模型。<sup>[16](https://pindulabs.com/research/02-chinese-word-segmentation)</sup> 在一项跨两个黄金语料库的评测中，HanLP是最准确的引擎，而结巴因其速度快得多、更轻量而仍有吸引力。<sup>[16](https://pindulabs.com/research/02-chinese-word-segmentation)</sup> ROCLING 2022的一项研究在繁体中文上比较了结巴、CKIP和MONPA，发现MONPA配合GPU批量分词大大缩短了大型数据集的处理时间。<sup>[17](https://aclanthology.org/2022.rocling-1.24/)</sup> 大语言模型也被测试用作分词器；在Pindu评测中，一个简单的基于大语言模型的引擎落后于传统引擎，部分原因是大语言模型可能改动输入文本，破坏边界比较。<sup>[16](https://pindulabs.com/research/02-chinese-word-segmentation)</sup>

## References

1. [Chinese word segmentation and its effect on information retrieval, Information Processing & Management (ScienceDirect)](https://www.sciencedirect.com/science/article/abs/pii/S0306457302000791)
2. [Gao, Li, Wu, Huang (2005). Chinese Word Segmentation and Named Entity Recognition: A Pragmatic Approach. Computational Linguistics.](https://www.microsoft.com/en-us/research/publication/chinese-word-segmentation-named-entity-recognition-pragmatic-approach/)
3. [Li, Meng, Sun, Han, Yuan, Li (2019). Is Word Segmentation Necessary for Deep Learning of Chinese Representations? ACL 2019.](https://aclanthology.org/P19-1314/)
4. [Zhao, Cai, Huang, Kit (2019). Chinese Word Segmentation: Another Decade Review (2007-2017). arXiv.](https://arxiv.org/abs/1901.06079)
5. [Ma, Ganchev, Weiss. State-of-the-art Chinese Word Segmentation with Bi-LSTMs. Google Research.](https://research.google/pubs/state-of-the-art-chinese-word-segmentation-with-bi-lstms/)
6. [Chinese Word Segmentation on PKU (test) benchmark leaderboard, SOTA2](https://www.sota2.com/research/sota/chinese-word-segmentation-on-pku-test)
7. [THULAC: an efficient Chinese lexical analysis toolkit (performance comparison under the Second International Chinese Word Segmentation Bakeoff)](https://thumt.thunlp.org/)
8. [Do Chinese Readers Follow the National Standard Rules for Word Segmentation during Reading? PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC3568123/)
9. [Chang, Manning et al. Optimizing Chinese Word Segmentation for Machine Translation Performance, ACL 2008.](https://nlp.stanford.edu/~manning/papers/acl08-cws-final.pdf)
10. [SamithVa/word_segmentation: Chinese word segmentation using classical and modern approaches, GitHub](https://github.com/SamithVa/word_segmentation)
11. [Stanford Natural Language Processing Group: Chinese Natural Language Processing and Speech Processing](https://nlp.stanford.edu/projects/chinese-nlp.shtml)
12. [Fast and Accurate Neural Word Segmentation for Chinese. arXiv.](https://arxiv.org/abs/1704.07047)
13. [Chinese Word Segmentation and Unknown Word (Journal of Natural Language Processing)](https://www.jstage.jst.go.jp/article/jnlp/23/3/23_235/_pdf)
14. [Fu, Liu, Zhang, Huang (2020). RethinkCWS: Is Chinese Word Segmentation a Solved Task? EMNLP 2020.](https://aclanthology.org/2020.emnlp-main.457/)
15. [A Graph-based Model for Joint Chinese Word Segmentation and Dependency Parsing, TACL](https://direct.mit.edu/tacl/article/doi/10.1162/tacl_a_00301/43541/A-Graph-based-Model-for-Joint-Chinese-Word)
16. [Where Do Chinese Words Begin and End? Pindu Research](https://pindulabs.com/research/02-chinese-word-segmentation)
17. [Yeh, Hsieh, Chang, Hsu (2022). Multifaceted Assessments of Traditional Chinese Word Segmentation Tool on Large Corpora. ROCLING 2022.](https://aclanthology.org/2022.rocling-1.24/)

---
*Initially written Oct 15, 2026 · Edited: Oct 25, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Language and vision AI › Natural language processing › NLP tasks and methods › Tokenization and segmentation

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/word-segmentation

English original: https://www.edgepedia.org/word-segmentation
