Annotate Classical Chinese corpora with HanLP
Produce reviewable token, lemma, POS and dependency annotations for Classical Chinese passages with HanLP’s dedicated Ancient Chinese model.
Prerequisites
Python, pip, HanLP 2.1.1, compatible PyTorch environment, upstream Ancient Chinese model resources; optional GPU
Installation
Install or set up from the source-backed instructions:
Create an isolated Python environment; run python -m pip install hanlp==2.1.1 with a compatible PyTorch stack. Load hanlp.pretrained.mtl.KYOTO_EVAHAN_TOK_LEM_POS_UDEP_LZH; first load downloads model resources. Check model licensing before use and run the upstream two-sentence demo before processing operator data. No MCP server or hosted API is required.
- Source: https://github.com/hankcs/HanLP