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.

agentskillexchange Updated 61 repo stars

File contents

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.

Documentation

Source

agentskillexchange/skills commit 383ba3eae7

Frequently asked questions

npx get-skill add agentskillexchange/annotate-classical-chinese-corpora-with-hanlp