Annotate classical chinese corpora with hanlp

From agentskillexchange/skills · View interactive version

Annotate classical chinese corpora with hanlp is an AI agent skill from the GitHub repository agentskillexchange/skills. Produce reviewable token, lemma, POS and dependency annotations for Classical Chinese passages with HanLP’s dedicated Ancient Chinese model.

How to use this skill

Skill file

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

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.