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.24.tar.gz (727.8 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.24-cp314-cp314-win_amd64.whl (407.8 kB view details)

Uploaded CPython 3.14Windows x86-64

qhchina-0.1.24-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.24-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.24-cp314-cp314-macosx_10_15_universal2.whl (715.6 kB view details)

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

qhchina-0.1.24-cp313-cp313-win_amd64.whl (399.9 kB view details)

Uploaded CPython 3.13Windows x86-64

qhchina-0.1.24-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.24-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.24-cp313-cp313-macosx_10_13_universal2.whl (711.8 kB view details)

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

qhchina-0.1.24-cp312-cp312-win_amd64.whl (400.5 kB view details)

Uploaded CPython 3.12Windows x86-64

qhchina-0.1.24-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.24-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.24-cp312-cp312-macosx_10_13_universal2.whl (715.9 kB view details)

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

qhchina-0.1.24-cp311-cp311-win_amd64.whl (400.4 kB view details)

Uploaded CPython 3.11Windows x86-64

qhchina-0.1.24-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.24-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.24-cp311-cp311-macosx_10_9_universal2.whl (712.6 kB view details)

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

File details

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

File metadata

  • Download URL: qhchina-0.1.24.tar.gz
  • Upload date:
  • Size: 727.8 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.24.tar.gz
Algorithm Hash digest
SHA256 42da2a3273fec9e5603ceb3e6791b7acebfc18039018a2365c6424ad1f91f6d0
MD5 449e9beed7ef44efcf398b683a97c8cd
BLAKE2b-256 2ebe900d4d24b87192d1fcaacd02ddba473f5629c9874e685a0cd890ea916b4f

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.24-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 407.8 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.24-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 a51f56f82cdf1169792e784ed36e8b10c00fb2342501276cc46cf8da62996fd8
MD5 ac9e777e315765e2a9ed7d5bb27c6e9e
BLAKE2b-256 16450273f74bd16e85d25f7beff2be30424b425c579aa55ccd49f5edb3d7b0ea

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.24-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4e85e5be7df02e3a09551795541dcbeb0e74d4d211071e12a431ffef1e084917
MD5 336051d81b99e6ab365512b6c66fa290
BLAKE2b-256 687e0498e263c740d62c77e09dce82e5fabd7e87c96b929cb887f3a084a1069d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.24-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d410a032b4a13baac020666e05387600c1730a5641cad001c97c69b7daace9b3
MD5 2eca8cf34e01bf0bc2391fbdd12f4371
BLAKE2b-256 d846eb8bd9e57f05cec9d38153aa1299eb7de7acd108b718b5f60746d279523a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.24-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 160ad4b19478c39dda14a8ef940d32f8df431d756c33c07edeb0f67e1c6cc3a9
MD5 981d5412b79264595fa41f8a4ba08ecd
BLAKE2b-256 7883e064100f7f98e22a16b615800f3f237de6dca480f4efb5e009d601ee6544

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.24-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 399.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.24-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 32dc23757c955ee8be25651803ca62cef173d66405e54181320ac2eb950ef82a
MD5 75e5c6215a4beb4d8e43bbd020cb8059
BLAKE2b-256 94b98b2b592328246683acface918b1517da204573f1d70240192e1aaa1acea9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.24-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dcb20e8262510b7b3543b1280e6fd6ae11b619bd994a54e14ad17f7d174bfd10
MD5 9571aa156886aeef6859331b7c1c8362
BLAKE2b-256 e7311027b35ce468ef95e3751d20a9e6d5692df1fd4cfba8796e122f8eb10726

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.24-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7116c2706f643bb4caf7c8f382c4a4be1028d259674be4bba31af8a76ba53af1
MD5 692ddae4a2ef51965ec6866975881883
BLAKE2b-256 bbd66c3dcd1566e1679ea1aec88f59b01ef61b8821ae2e92f902b2d6eebfed80

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.24-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 bb54d3e9d33c4a54253c17a67891551ec7eadac8be058b07fbe9f0d5c5279997
MD5 5e6a89dbb1c6ef8f83a3926bb6ff1c25
BLAKE2b-256 00bce00c0f904f0f2a7fa362d11f52a60095494e4e0d1c0c1ec7424ab6594eef

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.24-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 400.5 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.24-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 569dbb4b6919cbeb324590e2a2d3bb918ad6d7e1d885121612f08c75cf59b564
MD5 8dba3301922eded0e3bff4af004590a3
BLAKE2b-256 8ec4c0a8f4d502101432fa032766084744b9a601125a50487cccc0bab257e44d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.24-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 70bebd98af478d156dba8fe72aeddb30d308312f2377ae1967f0435639ebe293
MD5 555b5db7ebbedf519cbf6e80f743cfbc
BLAKE2b-256 8696fae39e2820df88286d3c7a4c671adc75baa75d02dffa64a8022e11ba2932

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.24-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ddf887e362f9b0092b9c9bafc2f3861578f0f27df6d9bea43eb9161b52c86c76
MD5 4f560a23185c4c61dc015f9b029bdcc1
BLAKE2b-256 983ba272db9f2b14bd80838954684432d06ae6fe8eb0d42b7999b88049bde33f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.24-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 77e19f85f69a7db07d0aa387db922cd2ba9dfbeb0b9d6e8dd0d89af205f6643f
MD5 80c5e5a8c30d87a27310001e92dbb213
BLAKE2b-256 998a36d1de181be61fb3d757d5644e09c42841228a3ecd3e9bb1397308cec422

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.24-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 400.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.24-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 868df40878c4585dfc28e1172f8ebde2439653132b5387899e505ed4e8af9551
MD5 748dc3d6db8c4bb90afd1781af7d0c4f
BLAKE2b-256 d5f3394c74e245c0f76a5b561f377de2e432e638675efa83535186872179a2ab

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.24-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9df817489f0d89cee73ab71c1d34788ae9052066aa5b4e03831269d7eaa67310
MD5 c9278c56665e923a50cbfc5cc85e27aa
BLAKE2b-256 b2f3a3dcc6ad1c0f07a131b5bb541120d3d34a488cb90e7c42af072daa2c9473

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.24-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0f86b2ad2cf16a0ecf1eb0f3e1eed27584ec5de19b0fd1c5417f9a68b4d7e12a
MD5 acb45f5ab7296425e64d4c0e70572779
BLAKE2b-256 0383df499479dfe940c415cac44da9029c8b4a835fdcec80e215d70f515a7d17

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.24-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 0063fbd3817c9fcac3832eb6007a7a9c56d658a0b8817c8931473127544fd12b
MD5 25f76e9e8ada6429b82c140e2eb3a364
BLAKE2b-256 fb7ca91180491801d8389ff83fa127967a617e78f35b9b32afc4b45f3cf3b82e

See more details on using hashes here.

Provenance

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