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

Zhichao Geng, Hang Yan, Xipeng Qiu, Xuanjing Huang
9/18/2020
cs.CL

Official code: FudanNLP/fastHan (760 stars, Python, Apache-2.0, PyTorch, last commit 2023-12-09).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

FudanNLP/fastHanOfficial100%
PyTorchApache-2.0

fastHan是基于fastNLP与pytorch实现的中文自然语言处理工具,像spacy一样调用方便。

76088PythonOct 23, 20192 years agoApache-2.0
bertcwsfastnlpjoint-modelner+4 more

Similar Papers

Cite this paper

@article{geng2020fasthan,
  title  = {fastHan: A BERT-based Multi-Task Toolkit for Chinese NLP},
  author = {Zhichao Geng and Hang Yan and Xipeng Qiu and Xuanjing Huang},
  year   = {2020},
  eprint = {2009.08633},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2009.08633}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2009.08633.svg)](https://codeofpaper.com/paper/2009.08633)

Discussion