arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2009.08633cs.CL
收藏

fastHan:一个基于BERT的中文多任务工具包NLP

fastHan: A BERT-based Multi-Task Toolkit for Chinese NLP

Fudan University(复旦大学)

Zhichao Geng, Hang Yan, Xipeng Qiu, Xuanjing Huang

摘要:

我们提出fastHan,一个开源的工具包,用于中文自然语言处理的四个基本任务:中文分词(CWS),词性(POS)标记,命名实体识别(NER),和依存句法分析。fastHan的主干是一个基于修剪后的BERT的多任务模型,它使用了BERT的前8层。我们还提供了一个从8层模型压缩的4层基础模型。联合模型在13个语料库的四个任务上进行了训练和评估,在依存句法分析和NER中产生了接近最先进的(SOTA)性能,在CWS和POS中实现了SOTA性能。此外,fastHan的可移植性也很强,在非训练语料库上的表现远远优于流行的分割工具。为了更好地满足实际应用的需要,我们允许用户使用自己标记的数据对fastHan进行进一步的微调。除了体积小和性能出色外,fastHan还具有用户友好性。fastHan作为python包实现,将用户与内部技术细节隔离开来,使用方便。该项目在Github上发布。

英文摘要:

We present fastHan, an open-source toolkit for four basic tasks in Chinese natural language processing: Chinese word segmentation (CWS), Part-of-Speech (POS) tagging, named entity recognition (NER), and dependency parsing. The backbone of fastHan is a multi-task model based on a pruned BERT, which uses the first 8 layers in BERT. We also provide a 4-layer base model compressed from the 8-layer model. The joint-model is trained and evaluated on 13 corpora of four tasks, yielding near state-of-the-art (SOTA) performance in dependency parsing and NER, achieving SOTA performance in CWS and POS. Besides, fastHan's transferability is also strong, performing much better than popular segmentation tools on a non-training corpus. To better meet the need of practical application, we allow users to use their own labeled data to further fine-tune fastHan. In addition to its small size and excellent performance, fastHan is user-friendly. Implemented as a python package, fastHan isolates users from the internal technical details and is convenient to use. The project is released on Github.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑