Skip to main content

A Python package for NLP tasks related to Chinese text.

Project description

qhChina

A Python toolkit for computational analysis of Chinese texts in humanities research.

Features

  • Preprocessing: Chinese text segmentation with multiple backends (spaCy, Jieba, BERT, LLM)
  • Word Embeddings: Word2Vec training and temporal semantic change analysis (TempRefWord2Vec)
  • Topic Modeling: LDA with Gibbs sampling and Cython acceleration
  • Stylometry: Authorship attribution and document clustering
  • Collocations: Statistical collocation analysis and co-occurrence matrices
  • Corpus Comparison: Identify significant vocabulary differences between corpora
  • Helpers: CJK font management, text loading, stopwords

Installation

pip install qhchina

Building from Source

git clone https://github.com/mcjkurz/qhchina.git
cd qhchina
pip install -e .

This will compile the Cython extensions and install the package in editable mode.

Documentation

Full documentation and examples: www.qhchina.org/docs/

Tests

pip install pytest
pytest tests/

License

MIT License

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qhchina-0.1.27.tar.gz (724.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

qhchina-0.1.27-cp314-cp314-win_amd64.whl (406.6 kB view details)

Uploaded CPython 3.14Windows x86-64

qhchina-0.1.27-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

qhchina-0.1.27-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.24+ ARM64manylinux: glibc 2.28+ ARM64

qhchina-0.1.27-cp314-cp314-macosx_10_15_universal2.whl (712.8 kB view details)

Uploaded CPython 3.14macOS 10.15+ universal2 (ARM64, x86-64)

qhchina-0.1.27-cp313-cp313-win_amd64.whl (398.6 kB view details)

Uploaded CPython 3.13Windows x86-64

qhchina-0.1.27-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

qhchina-0.1.27-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.24+ ARM64manylinux: glibc 2.28+ ARM64

qhchina-0.1.27-cp313-cp313-macosx_10_13_universal2.whl (708.8 kB view details)

Uploaded CPython 3.13macOS 10.13+ universal2 (ARM64, x86-64)

qhchina-0.1.27-cp312-cp312-win_amd64.whl (399.2 kB view details)

Uploaded CPython 3.12Windows x86-64

qhchina-0.1.27-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

qhchina-0.1.27-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.24+ ARM64manylinux: glibc 2.28+ ARM64

qhchina-0.1.27-cp312-cp312-macosx_10_13_universal2.whl (713.3 kB view details)

Uploaded CPython 3.12macOS 10.13+ universal2 (ARM64, x86-64)

qhchina-0.1.27-cp311-cp311-win_amd64.whl (398.9 kB view details)

Uploaded CPython 3.11Windows x86-64

qhchina-0.1.27-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

qhchina-0.1.27-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.24+ ARM64manylinux: glibc 2.28+ ARM64

qhchina-0.1.27-cp311-cp311-macosx_10_9_universal2.whl (709.9 kB view details)

Uploaded CPython 3.11macOS 10.9+ universal2 (ARM64, x86-64)

File details

Details for the file qhchina-0.1.27.tar.gz.

File metadata

  • Download URL: qhchina-0.1.27.tar.gz
  • Upload date:
  • Size: 724.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for qhchina-0.1.27.tar.gz
Algorithm Hash digest
SHA256 9ba33f69d60c3d9d68b55cf692e9fed23b7c56c97eebd909340f8153176b3d98
MD5 19f68b5873cca7a4a21f20156e9253e3
BLAKE2b-256 96e5b406f2e232d7fa694c3a70b31b78c3c4f155d50898524202595dff0b3441

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.27.tar.gz:

Publisher: build_wheels.yml on mcjkurz/qhchina

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qhchina-0.1.27-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: qhchina-0.1.27-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 406.6 kB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for qhchina-0.1.27-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 2631142f1106bc6d4cd20f5426fa37e3c673cfb27bdc79b583e1e1d7a8677312
MD5 ff29b205c7ff096d43133534e91f1e2e
BLAKE2b-256 e640544119f79adc414126b9ffc9b1c34cea0735a98053a28ebb5963dc5a5b7d

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.27-cp314-cp314-win_amd64.whl:

Publisher: build_wheels.yml on mcjkurz/qhchina

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qhchina-0.1.27-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for qhchina-0.1.27-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e19e37e0f3b14774287853c2277f22ecd734e2b9a25fabb31099071ae28c60f7
MD5 57f0006066ded4feab1661e552eb989d
BLAKE2b-256 37dfccad4d1a56c921c8c1c87458fa0c418f977ee2c6d716173a3a7f334ec445

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.27-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build_wheels.yml on mcjkurz/qhchina

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qhchina-0.1.27-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for qhchina-0.1.27-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8c982d47c59c89499870feb003c49fce655da0a01a37a88409406bb04626e996
MD5 e63f7e9e85105c2e86e298092be2e88d
BLAKE2b-256 339f4f506bc3330d9c9e524d55c874816f1ba2e4ef9e2fffecdfd6f3157abec8

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.27-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl:

Publisher: build_wheels.yml on mcjkurz/qhchina

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qhchina-0.1.27-cp314-cp314-macosx_10_15_universal2.whl.

File metadata

File hashes

Hashes for qhchina-0.1.27-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 4d6a67f918958ef567e0e7f460e846a6ae267ecd1940332539e37edd73514e7b
MD5 8161e0180facb13e17bac87036433d0c
BLAKE2b-256 295a9f2b6a72be4fe0372df788e8bbf1793dee19070c8e52b4d9ef5621c4ed46

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.27-cp314-cp314-macosx_10_15_universal2.whl:

Publisher: build_wheels.yml on mcjkurz/qhchina

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qhchina-0.1.27-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: qhchina-0.1.27-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 398.6 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for qhchina-0.1.27-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 35f407df0124bc6a059b364be844256e88a12872b322ed96c3d520143bef165b
MD5 df3d958daee9c497136cc27f02b04e45
BLAKE2b-256 944b917a1af76a888ebddadbc1f55a63964972213cfd7cd2afff13ae19f1fd9c

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.27-cp313-cp313-win_amd64.whl:

Publisher: build_wheels.yml on mcjkurz/qhchina

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qhchina-0.1.27-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for qhchina-0.1.27-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a765e1dcbfa3ae5796d098ef036cca1b3ccbb2285a01d2fc6d91798297cef07f
MD5 589dae879a5e1793f4aa7bf08665d8ea
BLAKE2b-256 c67418a296abcd88c3b2666a947bfff8131d3292f5c183bbf7e6bde193fff0f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.27-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build_wheels.yml on mcjkurz/qhchina

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qhchina-0.1.27-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for qhchina-0.1.27-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 72370883be5a87511f61464031af9c9e39d00b795d4e38e25358545da31b9055
MD5 e84ab40506a311931fc5e8d5fa0430b3
BLAKE2b-256 c87f75de1ad876d55ae0d33d2d13b21268a1e3dbacc01fe26b1ff078cc91357e

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.27-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl:

Publisher: build_wheels.yml on mcjkurz/qhchina

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qhchina-0.1.27-cp313-cp313-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for qhchina-0.1.27-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 59726c54f1c054fc0f3e4b5091290589d359734fb5448101db64719e9818545f
MD5 d7fa4d8c306ca509bd7f1bc40aeca98e
BLAKE2b-256 c093d493e8a4e998b9e973e82384ab916e64cc64952935e3587dd753b6c06e28

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.27-cp313-cp313-macosx_10_13_universal2.whl:

Publisher: build_wheels.yml on mcjkurz/qhchina

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qhchina-0.1.27-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: qhchina-0.1.27-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 399.2 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for qhchina-0.1.27-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e18d27a0eac86efff6801bb97b01d4bc734fe92393929369885b15e63a7f1008
MD5 c96fda0b85f84e664d48a0bdfa086dd7
BLAKE2b-256 4361c9dd6a2e83268ce6953fa579cbbbe21c98b8c19a5394284459945cd324ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.27-cp312-cp312-win_amd64.whl:

Publisher: build_wheels.yml on mcjkurz/qhchina

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qhchina-0.1.27-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for qhchina-0.1.27-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 83d6da38ee089de4d8c5af7dd91ce5cd9bac0c1317c81a1916b8129616fb56f3
MD5 8626679bdf0851d393b661eba718af97
BLAKE2b-256 a8c6cffc757675064ba53fc3b33846ab921cae6abccb2d6168d8201a65c2a818

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.27-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build_wheels.yml on mcjkurz/qhchina

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qhchina-0.1.27-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for qhchina-0.1.27-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c1db093d7d0bad8758f91fb7e4911d22810b667585ee6c3cd26711544b1511e1
MD5 da413d9ffb05a3d8b66401636a67a595
BLAKE2b-256 cc254a210f7fece1eae5f7dee585fa50d018f4d2829d9d9a2e291434774a3e1f

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.27-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl:

Publisher: build_wheels.yml on mcjkurz/qhchina

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qhchina-0.1.27-cp312-cp312-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for qhchina-0.1.27-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 3eaa88cba2e8561cb753535a72f17434243c85f74287c8027294814c33d7183c
MD5 022f65a9dbef25598026d88c06eb8668
BLAKE2b-256 8b740b19cf37875a9e16c749e5e53ae8764f026be0ee6e7e5e0af46ed8ee0c10

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.27-cp312-cp312-macosx_10_13_universal2.whl:

Publisher: build_wheels.yml on mcjkurz/qhchina

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qhchina-0.1.27-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: qhchina-0.1.27-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 398.9 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for qhchina-0.1.27-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 51b423b4dba7924662bc4dff524ae1565ab865e40d85d6cb51db99b4d77a2a4c
MD5 a848400dfe3fa9a40407c78cd68b367f
BLAKE2b-256 17b6553bdfa1551fb542fc1d079423a025ceb17af1ac5da89c1d10cebdd993d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.27-cp311-cp311-win_amd64.whl:

Publisher: build_wheels.yml on mcjkurz/qhchina

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qhchina-0.1.27-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for qhchina-0.1.27-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 933e88ac3aa551fbb130e1bdd0d1276f4dcee365d46ae59e13f9c8324d6d9f06
MD5 6c2c9225b6ee43953b75b6271384dd20
BLAKE2b-256 ee222ef80b35da4bf254bfbe5b14547fe565d64596769da6ef3a28b7147486a0

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.27-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: build_wheels.yml on mcjkurz/qhchina

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qhchina-0.1.27-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for qhchina-0.1.27-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4abf2737e92e0171af5a7ebdcd20008a1ab89dfdf348a39087877087c9a233ea
MD5 4f5edc1edc2233c20ad8fc872aa33003
BLAKE2b-256 7a0e09cbeaeffd61782aece5bffafbab8bc98ee83399478cf6aef2226594200a

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.27-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl:

Publisher: build_wheels.yml on mcjkurz/qhchina

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qhchina-0.1.27-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for qhchina-0.1.27-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 5984703aea0669489eb52ea2e7a8dd88b5143b28cd493fbab3d12b35c9cba8b6
MD5 fe8bf66543a9b2f78ac83ec352c18533
BLAKE2b-256 28f11d50b6616a0ef49d07c1167600aadf9e239f1deeecb5bab2abb1d9830493

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.27-cp311-cp311-macosx_10_9_universal2.whl:

Publisher: build_wheels.yml on mcjkurz/qhchina

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page