hankcs/HanLP
HanLP is a comprehensive natural language processing library that provides a modular, pipeline-based architecture for building and training NLP models. It supports a wide range of tasks including tokenization, part-of-speech tagging, named entity recognition, dependency and constituency parsing, semantic role labeling, and text classification. The system offers both PyTorch and TensorFlow backends, enabling users to construct complex workflows by chaining components, and includes utilities for model compression, multi-task learning, and evaluation metrics.
53.7
Adequate · 2 August 2026
50k
lines of production code
Python
primary language
1
bus factor · 61 authors in all
3
measurements over time
How it got here
2014–2020 · Modular architecture and backend expansion
The project underwent a significant architectural shift towards a modular, component-based design, introducing a unified pipeline system and abstract base classes for NLP components. This period also focused on expanding framework support by adding comprehensive TensorFlow implementations for existing PyTorch models, alongside building out a rich ecosystem of layers, metrics, and dataset loaders.
28 changes
2021–2025 · Multi-task learning and component expansion
This period was defined by the introduction of a comprehensive Multi-Task Learning (MTL) framework, enabling joint training across diverse NLP tasks such as parsing, tagging, and NER. The codebase expanded significantly with new components for knowledge distillation, semantic textual similarity, and masked language modeling, alongside extensive demo scripts for multiple languages.
27 changes
Survey your own repository
hankcs/HanLP was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point the surveyor at a repository you know and see whether you agree with it.
About this page
- The description of this project is derived from its own commit history, not from its README.
- The score is its highest published measurement, taken on 2 August 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 942ce9306c — the exact code this score is about.
- Scored under rubric rubric-2026.08.18. Score the same commit under that rubric and you get the same number.