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.29.tar.gz (885.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.29-cp314-cp314-win_amd64.whl (478.2 kB view details)

Uploaded CPython 3.14Windows x86-64

qhchina-0.1.29-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.5 MB view details)

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

qhchina-0.1.29-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.4 MB view details)

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

qhchina-0.1.29-cp314-cp314-macosx_10_15_universal2.whl (864.4 kB view details)

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

qhchina-0.1.29-cp313-cp313-win_amd64.whl (467.9 kB view details)

Uploaded CPython 3.13Windows x86-64

qhchina-0.1.29-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.5 MB view details)

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

qhchina-0.1.29-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.4 MB view details)

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

qhchina-0.1.29-cp313-cp313-macosx_10_13_universal2.whl (859.6 kB view details)

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

qhchina-0.1.29-cp312-cp312-win_amd64.whl (468.7 kB view details)

Uploaded CPython 3.12Windows x86-64

qhchina-0.1.29-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.5 MB view details)

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

qhchina-0.1.29-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.29-cp312-cp312-macosx_10_13_universal2.whl (865.5 kB view details)

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

qhchina-0.1.29-cp311-cp311-win_amd64.whl (467.4 kB view details)

Uploaded CPython 3.11Windows x86-64

qhchina-0.1.29-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.5 MB view details)

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

qhchina-0.1.29-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.5 MB view details)

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

qhchina-0.1.29-cp311-cp311-macosx_10_9_universal2.whl (860.4 kB view details)

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

File details

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

File metadata

  • Download URL: qhchina-0.1.29.tar.gz
  • Upload date:
  • Size: 885.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.29.tar.gz
Algorithm Hash digest
SHA256 73778a66e749cb1b25fd3d0dd9dea34b6dd731274a7e1fe5d1f544f4d3dd9534
MD5 4be3d2536fdc62a124619fcc8371c707
BLAKE2b-256 7f59a53208c884f5ff8688ac5edaf33eb3b46dd05ad1abc0b8a0ebbfc2255674

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.29-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 478.2 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.29-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 9887b2421ebd298d757557f8849f8e4f7a91c5c0f397227920b00703e8685f1f
MD5 74fe8c5f79b53399e4df807d3d71ca8e
BLAKE2b-256 b57478ec9dcee4f0a61e414d1936acc69be6c7a1ffdabb768421c48640f5220e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.29-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6f6c532fbeba196a51a38bd08a8c756513ffc5143632cb3419a4e0de4aace009
MD5 be1ded892360c5b7a5faa308ae643a73
BLAKE2b-256 1f31eb76d1f5a0e0c17fdf2778bbf33b5c5e7b7400350104c56e1e97eb5635c1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.29-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 bcc9e828e91b411f50b0b733a004c6b13c3b53663ee38efa0cbe4db8696152a5
MD5 4bb0f58273738a2238cdef7106a8bcac
BLAKE2b-256 a63b764bc53f6c6c51f56946d62e952bc487e360bad8741ebf478e36c6c2cc95

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.29-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 9739d183ee2d54cded15ce760f13008a3bf18a81ef2e2831baccfcf5aedf7f46
MD5 fc1bec4af9e8eb5cc73db39d7ba3cd35
BLAKE2b-256 64055a35bb41cdd47072d0b7492f8cd10dcfbcb6058851eed58aa170231149a3

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.29-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 467.9 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.29-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 1ff79047be9dd9adf6a0259f079b462f79358ad7c9b56064f918fa5ae3970594
MD5 84e190a8fd17a1da726725dcc421d21b
BLAKE2b-256 1fd157f227a9ce507053071ee224b1a58f6bb698fe6b7898f2c2e2d1bd2ee891

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.29-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3211eee9900bcbdb2354ef19142e054e98d8a629fb7c21ee677b6839f05aa63b
MD5 d761e3ab7ec552fa8b4080e72eb180cd
BLAKE2b-256 e9866ed975d4b71e275e2a4cbca7aa7bc42f883b3320703fe5f5a4e6bdebcb8e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.29-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 90328c31d7eb01ddc0a16bae6e449d73deae1800a1aa050a4245c7c48a2a4afe
MD5 ff28b6fddcb71da6588130ce7c903f0e
BLAKE2b-256 9d9b4104b12205b82838e523705c579fda155bd8f3d720e019d2256e622671b5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.29-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 6e65fd2169b7df95bb918737c5f146885b6a929e19d2a315fbc9e4be98afa114
MD5 4bbb033ae3b6492c67534e4b311bda6f
BLAKE2b-256 e4df37ca3445f7467748f67924121878a34753e5035d43e9c32f40c531c32bc7

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.29-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 468.7 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.29-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7052d6e75127732b6c71823dffa4afd522cb2c1b712f53abc95112908927d14e
MD5 59357fff2ded87a20168713aca5c0402
BLAKE2b-256 96ddf34ea735159e0853625c35dc8109b0528eb1d6a73ddd5e0c1f3303499dac

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.29-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 61c887a5e7964705e1f412502c5a4956bdcc15f5320e8385ba08cefc022fb865
MD5 049ce0ebe156dd8a9dcd308d87b4b4f7
BLAKE2b-256 1c9064c2890d08784bd587002bc555b54b7f20a42ee428b63edc2ce16f4770c7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.29-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 06b7cdf6389b41647846682cddb66ebe8191805d95f31cfb4f22ee78a17b32d3
MD5 623619642210edff66f7145a8bcab36a
BLAKE2b-256 680ee45dc168d52c6f6839c1ad022afb0ee4fcd81e89e681a4d0c8aa58e24d56

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.29-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 98b438c66e9207bba3c3884e4e1b4d156bbd08f9d6f9b934251d98f215643743
MD5 1ec1f1e2a80554368da5b25dcb0c79b1
BLAKE2b-256 c84a7099462e806dc7a55921e972ce5a35f9f17e6944cdf7b979e9af19b40847

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.29-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 467.4 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.29-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 364395c247f7ec41bbdf8472d6130413904d49457c2fd90ccde57705a8375758
MD5 cd6e626842d8357d77818b6763bd5e38
BLAKE2b-256 522a95320304779b683edad5232129375096ddd8c2a06c02cf38cfc4b936cebd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.29-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 31360307dc1212f942ecac20ebc4e27ef6575b508054bf943a0e7d6315d6d3f3
MD5 1abae37d0d69cce24d19eefd480ee84f
BLAKE2b-256 50dc76c4b0341dcf794659f06d3c766d791384e8d734ab6ac1f5675512ab61ae

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.29-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 91502599e1b07e3e01b34dcbe862f5900e256aaa52f47d3794d1a7da1998d219
MD5 f5b538b26c2819dced22b463e8eba3b2
BLAKE2b-256 cbc48e76d1d899162f53c1d2dc2380977f3ac5bc64b1bc2ed967075ebd81554d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.29-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 f05ecb24be47f1e9000d0d1216f46fb5cb3381096dd6efcc19ba9b1d5044c947
MD5 5bbc204fdbf7a22577125ac667200fd1
BLAKE2b-256 b161ee40b5bc0f0732aa3e1ec8d6913a8a4ed5949dffb7dfbf4350fdf17bd138

See more details on using hashes here.

Provenance

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