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.34.tar.gz (930.1 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.34-cp314-cp314-win_amd64.whl (506.5 kB view details)

Uploaded CPython 3.14Windows x86-64

qhchina-0.1.34-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.6 MB view details)

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

qhchina-0.1.34-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.5 MB view details)

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

qhchina-0.1.34-cp314-cp314-macosx_10_15_universal2.whl (910.0 kB view details)

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

qhchina-0.1.34-cp313-cp313-win_amd64.whl (496.4 kB view details)

Uploaded CPython 3.13Windows x86-64

qhchina-0.1.34-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.6 MB view details)

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

qhchina-0.1.34-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.5 MB view details)

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

qhchina-0.1.34-cp313-cp313-macosx_10_13_universal2.whl (905.1 kB view details)

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

qhchina-0.1.34-cp312-cp312-win_amd64.whl (497.3 kB view details)

Uploaded CPython 3.12Windows x86-64

qhchina-0.1.34-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.6 MB view details)

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

qhchina-0.1.34-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.5 MB view details)

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

qhchina-0.1.34-cp312-cp312-macosx_10_13_universal2.whl (910.9 kB view details)

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

qhchina-0.1.34-cp311-cp311-win_amd64.whl (496.1 kB view details)

Uploaded CPython 3.11Windows x86-64

qhchina-0.1.34-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.6 MB view details)

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

qhchina-0.1.34-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.6 MB view details)

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

qhchina-0.1.34-cp311-cp311-macosx_10_9_universal2.whl (905.7 kB view details)

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

File details

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

File metadata

  • Download URL: qhchina-0.1.34.tar.gz
  • Upload date:
  • Size: 930.1 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.34.tar.gz
Algorithm Hash digest
SHA256 312d0637765ae5989d02956a8e4a5ee4e39e3a41e3d307986a6ab571a515e4d7
MD5 2bcd31e0da80537ec0b244a9d61661c9
BLAKE2b-256 2a244ef2122ae9aa0fb85210bfbe4c08ec1452e3e4eae922b7a4280c4bf65614

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.34.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.34-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: qhchina-0.1.34-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 506.5 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.34-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 bfce803c82cfea29859f7a0af75ca60e9e66f1bd538ef259a3c5fef94e42cb13
MD5 9348c37f3e8a7dc9073e921d7ff61bc5
BLAKE2b-256 1da76904519ab8f2401998ac36a61b579d2676e95d3dee4823ba456df688b731

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.34-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.34-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for qhchina-0.1.34-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 de7b6990e96bb9d07ce92b9899294f8c9e6d229594208db39fdb7020fa6c90e7
MD5 49fbaacc888603a1d95f08bb3ca37ad6
BLAKE2b-256 571a722d0348cd0bb2f76943fa971bc79ed5a2446da68b7bb1244a1e53660171

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.34-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.34-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for qhchina-0.1.34-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6ecc2658d090402040b7e78178210ad22611a43949aa1985ba99caecc4c8f9b9
MD5 96658bad8496e9e5b7446778979f7404
BLAKE2b-256 85eb7d1802c6a134ac01067b61605e3f16dca7a5a73759a8b0a05ea711f0973d

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.34-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.34-cp314-cp314-macosx_10_15_universal2.whl.

File metadata

File hashes

Hashes for qhchina-0.1.34-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 dbdcb0178f0b8b333f62c320566c08e322ef3edba20878eca04e62b97d2bbe67
MD5 f0123ead1eb7ef20187423e0a4b8bd91
BLAKE2b-256 d0719216b9c48a3fb256509d359efa6958806613547c2cacf2b5f75b9f5ad2b9

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.34-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.34-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: qhchina-0.1.34-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 496.4 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.34-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 915c874d182ccea702605b0226d073f14e6f036b7d7dc0acf3ae0498c3d0e2c0
MD5 22e5f18409050ad81a957680ce020f5a
BLAKE2b-256 031d56fe0922399de46cd433ac4604429c63f20226274e3bb62710510fdbafcf

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.34-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.34-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for qhchina-0.1.34-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8fbefa6544747cb0e7f2fb751a992e267230cb11d7ad1f9bca20d579c59ca8e8
MD5 bee1ec64f2a55cd54d48cebe606644fe
BLAKE2b-256 6218d8edb15f2bc5e535ffb1553c4faff3da2cfd7602574b064668cb795e9b25

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.34-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.34-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for qhchina-0.1.34-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 806b78dbb28bcce0c1414a9ef23014eef1873397a166408c996046dd4a661fc2
MD5 26352ad092f4fe6022ecc62c48d248f5
BLAKE2b-256 a36d8a8f6b403ba231cdecf6f26b484b185bcdc514d449d113819ef404df163c

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.34-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.34-cp313-cp313-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for qhchina-0.1.34-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 7c37fba550a3c88dd9aa72d68dc593de70221181816c73466a6471429697ac71
MD5 aac41f92a88450858db5661e08bb78fe
BLAKE2b-256 ea35169d1da303ea042554c88aa660e6df38dc48785c30884d980a49db878303

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.34-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.34-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: qhchina-0.1.34-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 497.3 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.34-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c5090e0be86edcb184ada147f3d5fcb09f90dee7c060d10d8fcd6ae765be54ec
MD5 160b227f82d8a80be15129f66f6049a7
BLAKE2b-256 d3dfa3976d5e3880612b4b42906d27a7d2fe9a6dadeec900157865038d247e39

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.34-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.34-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for qhchina-0.1.34-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 20c204aaf5e20566755f2ff9cd05801617e88b9b83853010c31442ea19a6ba90
MD5 2d62509924a5f1ad31e5f6be0a3fa999
BLAKE2b-256 72778a13f608d4c2cc8db885c4cacfbcc3148662eb76afce0f31233067c487ff

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.34-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.34-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for qhchina-0.1.34-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 920ae2e0b808078491fac3f86403370606f98b701754fc42efc09370fd7c4862
MD5 8f2d5e2cca637845679ae26a32fbd9a0
BLAKE2b-256 c2c430adae95bb6d8b2ba90dc0874a65f393be04541ba3596f9c8733900b46ac

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.34-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.34-cp312-cp312-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for qhchina-0.1.34-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 da24a5a69e76e81f18e6aea93fc4ba029c8906e820b74edb5c84688f58b80f07
MD5 cd4b07f27c1b1fe649f3f22c310f4a7a
BLAKE2b-256 d802795f31b882e03d846bd06b095cb2625efd81f98413246600598512683140

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.34-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.34-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: qhchina-0.1.34-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 496.1 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.34-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ecc9ad4667d35e785ec2aa76866c3872b1f09abf6e30887ca36f0e6a04aaadf0
MD5 63535cc19bb634f184bc0b83d6366104
BLAKE2b-256 2855163ca5f57a835a93655ec425e76b83a9afa59a54c023f734794c9ecbb28c

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.34-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.34-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for qhchina-0.1.34-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c29814e10b9f843c0782619a1057cbe1124ac1233d2cbf51dbef60c3247b77ae
MD5 ab9ddeb6e3fd41b561a9871c055ae733
BLAKE2b-256 2d4938ddfa1b24187be9d9005b640513c8c543b46954b214200c943d1c6986c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.34-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.34-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for qhchina-0.1.34-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 31b67ed2b3f04e5bf830febc49c33f3a7ed311473ee8b0dd96608125b1c99ee6
MD5 331246cac9a6628d3f0d03a4bded93a7
BLAKE2b-256 77a39cda9438e62e9fe90fba285c85e478f405e02cce1a953524e7bc7e79d5f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.34-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.34-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for qhchina-0.1.34-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 437fc39d5da59104fe8522c75dd6b6024283108244b42419e85c95a5b8f4a30e
MD5 5eb5b03452eacd3213157f198d0209b2
BLAKE2b-256 5b0c74a66fc1600c7c7e23757e69a16d50a14f7dc2ed9e0980c33e5a0933dfa6

See more details on using hashes here.

Provenance

The following attestation bundles were made for qhchina-0.1.34-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