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.23.tar.gz (728.5 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.23-cp314-cp314-win_amd64.whl (408.0 kB view details)

Uploaded CPython 3.14Windows x86-64

qhchina-0.1.23-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.23-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (1.9 MB view details)

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

qhchina-0.1.23-cp314-cp314-macosx_10_15_universal2.whl (714.7 kB view details)

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

qhchina-0.1.23-cp313-cp313-win_amd64.whl (400.3 kB view details)

Uploaded CPython 3.13Windows x86-64

qhchina-0.1.23-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.23-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (1.9 MB view details)

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

qhchina-0.1.23-cp313-cp313-macosx_10_13_universal2.whl (711.4 kB view details)

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

qhchina-0.1.23-cp312-cp312-win_amd64.whl (400.8 kB view details)

Uploaded CPython 3.12Windows x86-64

qhchina-0.1.23-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.23-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.23-cp312-cp312-macosx_10_13_universal2.whl (715.5 kB view details)

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

qhchina-0.1.23-cp311-cp311-win_amd64.whl (400.8 kB view details)

Uploaded CPython 3.11Windows x86-64

qhchina-0.1.23-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.23-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.23-cp311-cp311-macosx_10_9_universal2.whl (713.1 kB view details)

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

File details

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

File metadata

  • Download URL: qhchina-0.1.23.tar.gz
  • Upload date:
  • Size: 728.5 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.23.tar.gz
Algorithm Hash digest
SHA256 ac3a3d46c7495a9f6ca1bf5abf24f58ff99fbb0a3a87a7f032db602e7cce10d9
MD5 29c336d2ddcfd6233655cb3a054856be
BLAKE2b-256 10ca4017926d2d4561aba0d3ee315a69d8b737638e96b1e915c1efda66da243e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.23-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 408.0 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.23-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 4198742977c3dc6d0b465b1e39f40e457c5f1137e6c9108431dab68b055107ff
MD5 914d44c546139e40bbde61ec67a47336
BLAKE2b-256 e8f4e6dacfdd3d8b85112dba12ecf4c69ecffbafcfbe1d47276b6fb578f8560a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.23-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 593db8f8de169c5730151bef7d4532f13b6bae48ada1058bcdcbbad1ea3d74d7
MD5 033f1d0620859ab7c9d3c7d287251c51
BLAKE2b-256 c5f83b30c76dce2e7bcd77973bfd89402b1d5283a37958f2cc3f2ef6f899cfb7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.23-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 bcea5bc0997946f365fa4ad8d8bc9c7f9ad4e4b42f5216d4464d2c697b732dad
MD5 6134eed1d4dee92d69853e900e63439e
BLAKE2b-256 6f83dbb7222fea63c6fd9a005ea338adf5b07ead92e298487a1e0e6a5423740f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.23-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 0d15e504954e99916cd191d55192b7eb50d1a616092007b8d00549e93a6852a9
MD5 6552ee5f600a89db4bc2bf0d4fcb6cd3
BLAKE2b-256 14f8f6b51307c6dab21e14a879977ab8be7f487625709bb1da37428775b1bb52

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.23-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 400.3 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.23-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 fa7c32d38681f00697b90aa08703571bad6b0b9c616f730c14f123e55415d7e4
MD5 221c951d0c6fd90c2002b32b2860a3c7
BLAKE2b-256 62742299a1eca3605a3de14837c908dd24c16d7264e53195f99a5ddcbd295145

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.23-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ea4016d70546b8f934a320328bd1433b2f74196e93facf11617948e10435096c
MD5 2128e033341f127c7c9b9dae4c3e25ed
BLAKE2b-256 baab7b07bcf62be7d9a9dcbf0334cfbaea794cb73611e729a98967e647780c6e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.23-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 50b85a66b350265b2035e78033d85cab11340565adf59377105d6faad6a05345
MD5 6aa66ba97c83146ea1a12c829de28187
BLAKE2b-256 89cdd46ea2a5ee2fb1a1eaf2e43a65ab1b6a5bed7fe2966cf26d63ec9f96f801

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.23-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 f82036e6e1336fec27ac104f142e61b2e434157e95002aeabbb87d99cbc9789e
MD5 df381cda3177ae85f81f29a48f069d55
BLAKE2b-256 46fbb4abd5066cee2a09ebed03ddcff6ca049c345de051db9ecbd7ca28ae227b

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.23-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 400.8 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.23-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6d7043f7527632fe6823ab05d188322c6154411571e5590cf6fef5b8144e04f1
MD5 4c9407f933eb500455e4a93dc56a0647
BLAKE2b-256 ea723aa194a1627f769448e5a95205faf320fea81e9bc34fd5f6dde0e42db09a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.23-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 615c84a770710fc4cc1869de700976ee720595e41ed2476a1124d9706ec3a9e9
MD5 bcb8ce57548e7efb0abce83f6bc29b2f
BLAKE2b-256 7b6acd76f7cbac6ac25a5e6b7cb0eb1082354532c67432cdbefc83977b6e1413

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.23-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 48110c687e190cc0cf44d8ca2a24185a979637a50999447ca92b7718d16d48b8
MD5 f65be8a98e834e9f793e72f92ef94a32
BLAKE2b-256 7e72e60b9b3c9722814beb31b687380d27e84c2a7c2ceb6f78246e2b38c6315a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.23-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 1b95aa8fd75ac03799f4abe1b6fcaa65a3b285465e8ee46060db2d7814250ff0
MD5 794cf525a57b8841cd40adb6de3fb81f
BLAKE2b-256 d1d9ac305be71110c4dcba250ba15519121bad1e250cae5d137fb1a24fbda97a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.23-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 400.8 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.23-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d780e207475f1fc18a3ae218b9cea72fbd82b3cee5f02e5a910ae284d33d6b9c
MD5 d83355e467d48c6705caddcad05d8239
BLAKE2b-256 b68b528ad5606f833679651f3133a10b3662778cf0227b2b63f1f5089fd81832

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.23-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 410595986f13adaa762cf5898c93d8b8ca184c0e17309a9ad81bf24932aece49
MD5 93df36c2d9e648150d370aa18329c48c
BLAKE2b-256 64a6497dacd6635bcf913bc5979d19663de92f08667af5d3ebedb9330bab41f7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.23-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7f56c452543aaf441b0f24b5fb633498e16108acc6fb3a6809052eca2842d73f
MD5 3d6cb2507164f0dd2522a39c1b9efa58
BLAKE2b-256 3b004556beb25301d6a99ef0e69a1ecbd9f0c4c7af41c3dbda87e7c7922f4bf7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.23-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 b5a55ba95408ce3e1e938bf9f9db23b3b306b94a765c8c798375d01d57bf39c7
MD5 dd875e6a3d27b7dab9fc4b2d2df74dc1
BLAKE2b-256 05e52e8985ffce1275e1c1f274e57b3f10ab9c9e505ec051ba6025064f5f10fb

See more details on using hashes here.

Provenance

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