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.47.tar.gz (1.2 MB 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.47-cp314-cp314-win_amd64.whl (619.6 kB view details)

Uploaded CPython 3.14Windows x86-64

qhchina-0.1.47-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (3.2 MB view details)

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

qhchina-0.1.47-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (3.2 MB view details)

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

qhchina-0.1.47-cp314-cp314-macosx_10_15_universal2.whl (1.1 MB view details)

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

qhchina-0.1.47-cp313-cp313-win_amd64.whl (606.0 kB view details)

Uploaded CPython 3.13Windows x86-64

qhchina-0.1.47-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (3.2 MB view details)

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

qhchina-0.1.47-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (3.2 MB view details)

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

qhchina-0.1.47-cp313-cp313-macosx_10_13_universal2.whl (1.1 MB view details)

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

qhchina-0.1.47-cp312-cp312-win_amd64.whl (607.0 kB view details)

Uploaded CPython 3.12Windows x86-64

qhchina-0.1.47-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (3.3 MB view details)

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

qhchina-0.1.47-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (3.2 MB view details)

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

qhchina-0.1.47-cp312-cp312-macosx_10_13_universal2.whl (1.1 MB view details)

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

qhchina-0.1.47-cp311-cp311-win_amd64.whl (608.2 kB view details)

Uploaded CPython 3.11Windows x86-64

qhchina-0.1.47-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (3.3 MB view details)

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

qhchina-0.1.47-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (3.2 MB view details)

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

qhchina-0.1.47-cp311-cp311-macosx_10_9_universal2.whl (1.1 MB view details)

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

File details

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

File metadata

  • Download URL: qhchina-0.1.47.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for qhchina-0.1.47.tar.gz
Algorithm Hash digest
SHA256 6de16a93fbd76ad8205e2c7dd3301df59053ba3b126753f414f8d218480b44cc
MD5 9bff8efd496dbeec75bc95a953cb2917
BLAKE2b-256 a60e26dd2c8a336d6f803781e9b66ebb48496750daff32bb8b92d1980be20d47

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for qhchina-0.1.47-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 afe30bf336fd4189f35d39fa594b6bb9e049e6f7c0956e2a4c7c771325999bee
MD5 d3b0ce31e56356475cd3b22b0bb412a7
BLAKE2b-256 1ad2ed62ccab4c1797efa496afe426b18c17e219d2c491100b06c9574a04d49f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.47-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d2c7cbfd6da1bddaa7cc7944ff35896c123f294ab778975ac3909efbe4504639
MD5 e08455c80b7d86c457e9ff208f45af4d
BLAKE2b-256 abcc780b7ce2f15f674885640664aa7be036446a993b27d1c9c5dbff0a5a9bdf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.47-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5dec75602bdf364c98fa4eb49c6792e44d258f5fba5e7b79379e745034a0f861
MD5 4d630cd3f2b71f76a40e36c509c3e396
BLAKE2b-256 eb38f1311df7e30ac7b4a4bb05bf38eea85ea2d4b30a6756b24e6b66cb4daee8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.47-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 2a2fa274efd5cf38647208e49aff6da3c3d94f9fa4cec6497591d5b6ca10b634
MD5 fc9b87e378bbbbef6926b7367f9787fb
BLAKE2b-256 866509eed82194609b3e3e423a7c7898469598b34009352d032d37be719103bc

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for qhchina-0.1.47-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e639b75d8cf50676092a1fc6f6604636ca69338d90e9477b8907c2c65e2d83ac
MD5 4e58d132ba16f016de4aae9e37b3f998
BLAKE2b-256 38ec1996d53c4805091a85e05221d5faf89cdf020cf0aae3506d885c76f9ed5a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.47-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e36e32423f9d813d9afc17a78bd02ccb8955e0ccdebd55d95fe4f56d6192d2b8
MD5 d2c2f5ae7136ee8501f4e04eeb68d16b
BLAKE2b-256 501170fef73632510bc8b1dd91d1cf3903354f976e914791d73d5c2e447e85c6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.47-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 11bf408ff37041824361a79cb13c38e9bacaa8b05e074a414459cdb3cce66104
MD5 d5e9e40d29b0aed6ca45d3c37ee6c01c
BLAKE2b-256 9cbb8e8593251b54935f6bd3444151f17529c0b5068bc1e56248d39e71172755

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.47-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 228de814716f7243cbd2786a3802f34ffe50cc745a6fe041cdfce15b9aee2961
MD5 19df026380ebd3cc3267db0e293c8313
BLAKE2b-256 3a9c42a635c851f595bb16bcdaaa4c82635aecc7621d01cda130070c0dcbb5c8

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for qhchina-0.1.47-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6f0938243aa3c09f8636b729323bc212172c63856319abfb2d22a88c00031975
MD5 de044a9df0e367c4b22d6ccd3c7e03d5
BLAKE2b-256 119ec50d76d7a89043077bbd6225743e3501650419823c75a48bad56bbbd3be2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.47-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 872a65ad54b957dfab37d2b58a7a66a5454dae9492ff40f0b48c025a80bd9350
MD5 46bae4dedc20525f0be8a0ae1ff1c7b4
BLAKE2b-256 c398d85e6f11a823bff8962deac3be8fa58380df36829303cc6ef134e027780d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.47-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 f44f6e2abd31beea5924cd6fdcf567ca5e434f1d7b2c712f3444ef1c4376a109
MD5 437a5476fb95b4ad0c6196175c39accc
BLAKE2b-256 e6c6a7a0b1c2a6179a48b9104bb8afbf2faf6ddbfc296b61b90a15572e53c5ab

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.47-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 360b0e77c3c5b7a467b6efc15aae7ce189bbada2b185f592440d331426637dac
MD5 b99439c951eac1a8de161a20d9e77990
BLAKE2b-256 0f81795a1f23b57c7c6d0d7ba0f4a56fc35f9869c7b8617ae90c952a1b04224c

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for qhchina-0.1.47-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3c427dfecac76e10b71b60a2ed6a06daa35799f6372b279e2c83ffbd112edbbd
MD5 253933a960bad873373577c71fee6e97
BLAKE2b-256 0d433e6de464c442b5bb144032557fd068b5235b51bd790127759eeaa75f5255

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.47-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7bcb0c3cc9613250fed309a6f23dba1c86d602bfe7c9c0aedd0b1cdd9ba7afd8
MD5 3ea3598f900acf91e97f5a04665fcf62
BLAKE2b-256 1d021064cd06b0d9bf385c91ce04a510f432f13634f493a8e776a9d3dc14f35d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.47-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ac0d62dab418da3d880f1c1fe5a805e07c0bc1b0c68fe2a1233c864e03af484e
MD5 90c3a7aff364b583f520c0042b46d16d
BLAKE2b-256 02f756bc6c1fed4a2acb2de91289a9dfc9dd0ac0a633750faae3fd4d71961efa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.47-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 c4e24a69ab509fccf6297faf05aa7544cf22ecda8ab730f5f913f064ba18290b
MD5 44582582db8cabe53672a863d56e47eb
BLAKE2b-256 6589b87fb473a379b592bfe253805db9201aff9870aba8765e675d8d7db241ff

See more details on using hashes here.

Provenance

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