SkillAgentSearch skills...

HanLP

中文分词 词性标注 命名实体识别 依存句法分析 成分句法分析 语义依存分析 语义角色标注 指代消解 风格转换 语义相似度 新词发现 关键词短语提取 自动摘要 文本分类聚类 拼音简繁转换 自然语言处理

Install / Use

/learn @hankcs/HanLP

README

<h2 align="center">HanLP: Han Language Processing</h2> <div align="center"> <a href="https://github.com/hankcs/HanLP/actions/workflows/unit-tests.yml"> <img alt="Unit Tests" src="https://github.com/hankcs/hanlp/actions/workflows/unit-tests.yml/badge.svg?branch=master"> </a> <a href="https://pypi.org/project/hanlp/"> <img alt="PyPI Version" src="https://img.shields.io/pypi/v/hanlp?color=blue"> </a> <a href="https://pypi.org/project/hanlp/"> <img alt="Python Versions" src="https://img.shields.io/pypi/pyversions/hanlp?colorB=blue"> </a> <a href="https://pepy.tech/project/hanlp"> <img alt="Downloads" src="https://static.pepy.tech/badge/hanlp"> </a> <a href="https://mybinder.org/v2/gh/hankcs/HanLP/doc-zh?filepath=plugins%2Fhanlp_demo%2Fhanlp_demo%2Fzh%2Ftutorial.ipynb"> <img alt="在线运行" src="https://mybinder.org/badge_logo.svg"> </a> </div> <h4 align="center"> <a href="https://github.com/hankcs/HanLP/tree/master">English</a> | <a href="https://github.com/hankcs/HanLP/tree/doc-ja">日本語</a> | <a href="https://hanlp.hankcs.com/docs/">文档</a> | <a href="https://bbs.hankcs.com/t/topic/3940">论文</a> | <a href="https://bbs.hankcs.com/">论坛</a> | <a href="https://github.com/wangedison/hanlp-jupyterlab-docker">docker</a> | <a href="https://mybinder.org/v2/gh/hankcs/HanLP/doc-zh?filepath=plugins%2Fhanlp_demo%2Fhanlp_demo%2Fzh%2Ftutorial.ipynb">▶️在线运行</a> </h4>

面向生产环境的多语种自然语言处理工具包,基于PyTorch和TensorFlow 2.x双引擎,目标是普及落地最前沿的NLP技术。HanLP具备功能完善、精度准确、性能高效、语料时新、架构清晰、可自定义的特点。

demo

借助世界上最大的多语种语料库,HanLP2.1支持包括简繁中英日俄法德在内的130种语言上的10种联合任务以及多种单任务。HanLP预训练了十几种任务上的数十个模型并且正在持续迭代语料库与模型:

<div align="center">

| 功能 | RESTful | 多任务 | 单任务 | 模型 | 标注标准 | | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | | 分词 | 教程 | 教程 | 教程 | tok | 粗分细分 | | 词性标注 | 教程 | 教程 | 教程 | pos | CTBPKU863 | | 命名实体识别 | 教程 | 教程 | 教程 | ner | PKUMSRAOntoNotes | | 依存句法分析 | 教程 | 教程 | 教程 | dep | SDUDPMT | | 成分句法分析 | 教程 | 教程 | 教程 | con | Chinese Tree Bank | | 语义依存分析 | 教程 | 教程 | 教程 | sdp | CSDP | | 语义角色标注 | 教程 | 教程 | 教程 | srl | Chinese Proposition Bank | | 抽象意义表示 | 教程 | 暂无 | 教程 | amr | CAMR | | 指代消解 | 教程 | 暂无 | 暂无 | 暂无 | OntoNotes | | 语义文本相似度 | 教程 | 暂无 | 教程 | sts | 暂无 | | 文本风格转换 | 教程 | 暂无 | 暂无 | 暂无 | 暂无 | | 关键词短语提取 | 教程 | 暂无 | 暂无 | 暂无 | 暂无 | | 抽取式自动摘要 | 教程 | 暂无 | 暂无 | 暂无 | 暂无 | | 生成式自动摘要 | 教程 | 暂无 | 暂无 | 暂无 | 暂无 | | 文本语法纠错 | 教程 | 暂无

Related Skills

View on GitHub
GitHub Stars36.2k
CategoryDevelopment
Updated24m ago
Forks10.9k

Languages

Python

Security Score

100/100

Audited on Apr 1, 2026

No findings