# lancopku/pkuseg-python

pkuseg多领域中文分词工具; The pkuseg toolkit for multi-domain Chinese word segmentation

Repository: https://github.com/lancopku/pkuseg-python
Canonical: https://ross.abutalabs.com/products/pkuseg-python
Language: Python
License: MIT
License Family: permissive
Topics: chinese-word-segmentation
Last push: 2022-11-05T13:37:41+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2950, "days_push": 1397, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6710, forks 980 (observed 2026-08-28T04:09:47.966233+00:00)

## What it is
pkuseg is a Python toolkit for multi-domain Chinese word segmentation based on the paper by Luo et al. (2019). It provides pre-trained models for specific domains (news, web, medicine, tourism, mixed), supports part-of-speech tagging, and allows users to train custom models on their own annotated data.

## Use cases
- segment Chinese text into words
- tokenize Chinese text for a specific domain like medicine or news
- perform part-of-speech tagging on Chinese text
- train a custom Chinese word segmentation model on my own labeled data
- get higher Chinese segmentation accuracy than jieba or THULAC
- preprocess Chinese text for downstream NLP tasks

## When to choose
- you need accurate Chinese word segmentation, especially in a known domain like news, web, medicine, or tourism
- you want to train a segmentation model on your own annotated corpus
- you need part-of-speech tagging alongside segmentation
- benchmark results show it outperforms jieba or THULAC on your data

## When to avoid
- you need a lightweight, fast general-purpose tokenizer without model downloads
- you require active development or recent updates, as the project has not seen releases since 2022
- you need segmentation for languages other than Chinese
- you are on a platform other than 64-bit Linux, macOS, or Windows and cannot compile locally

## Facets
- artifact type: library
- maturity: maintenance
- function: nlp, parser, machine-learning
- domain: machine-learning, developer-tools
- platform: python, windows
- tags: chinese-word-segmentation, tokenization, part-of-speech-tagging, multi-domain, pretrained-models, natural-language-processing, linux, macos

## Member repositories
- lancopku/pkuseg-python (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:47.966233+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:42:56.598166+00:00, confidence not recorded.
  - readme: https://github.com/lancopku/pkuseg-python (fetched 2026-08-28T04:09:47.966233+00:00, sha 114b4f7f7e38)
- Data as of 2026-08-30T08:39:29.467469+00:00.
