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.32.tar.gz (929.4 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.32-cp314-cp314-win_amd64.whl (506.0 kB view details)

Uploaded CPython 3.14Windows x86-64

qhchina-0.1.32-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.32-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.32-cp314-cp314-macosx_10_15_universal2.whl (909.5 kB view details)

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

qhchina-0.1.32-cp313-cp313-win_amd64.whl (496.0 kB view details)

Uploaded CPython 3.13Windows x86-64

qhchina-0.1.32-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.32-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.32-cp313-cp313-macosx_10_13_universal2.whl (904.6 kB view details)

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

qhchina-0.1.32-cp312-cp312-win_amd64.whl (496.8 kB view details)

Uploaded CPython 3.12Windows x86-64

qhchina-0.1.32-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.32-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.32-cp312-cp312-macosx_10_13_universal2.whl (910.5 kB view details)

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

qhchina-0.1.32-cp311-cp311-win_amd64.whl (495.6 kB view details)

Uploaded CPython 3.11Windows x86-64

qhchina-0.1.32-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.32-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.32-cp311-cp311-macosx_10_9_universal2.whl (905.2 kB view details)

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

File details

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

File metadata

  • Download URL: qhchina-0.1.32.tar.gz
  • Upload date:
  • Size: 929.4 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.32.tar.gz
Algorithm Hash digest
SHA256 8d16ca8c4234d2d13aa428b9b345933ff19f25d46a2c6c91686cb32704d039c1
MD5 a5e2aec75ddfc4beadb0322646ad4620
BLAKE2b-256 530cdaedba3eb92c96bf5a63e9ceb58c26c6f1712bc36ecf2723afcca3423f61

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.32-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 506.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.32-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 30c45adc9ab1c090acc2a1011672510937e7679c6aa79ee2142985519949207b
MD5 cf36a263be4ba86f86f8c34ac0706de7
BLAKE2b-256 ead413ffe6cd4d764d820a64fdda9cce5b426f6810d659ef13f8df1b20b4f6dd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.32-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0e99856e11ec81fa983b6174e8a61a180de64818f2dc14bef1a5162c61b3c394
MD5 289bd1816747be3648cb2a5e9c542790
BLAKE2b-256 d4afea9eda898e008be883857c5fa2eb2208b576a0107bec0e97bbdec42fe3b9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.32-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 070d6f7e90abe2ea68f033e3f21b957e8018066e83b8619f0846ab65f301de12
MD5 f9ee18b40f170f1b4b3f70957a0740ae
BLAKE2b-256 14588aff2791d5670a17bbb7ac59faae949de4aa7d483762151254ae1b54173a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.32-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 9bd664935eaea1db0472e8d492ac53f423d3431437b8c4208ebb58e53e7c6941
MD5 8231617eaad0285aa81c3325a0415f5d
BLAKE2b-256 2838818676291c0633ef0b44789418c3fd8f983429b352b8dfd55254a96ecbd2

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.32-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 496.0 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.32-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 6771cf25f5c815466f812f778653a37b3a71b93d12ff554860b4f654de4a93f8
MD5 6aaa231fc0735d444ee3d9918f43d0c0
BLAKE2b-256 876019e28ee4105f31a61faaa28157fe7cb94725a399f50181e60537751398e2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.32-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a8890c14712ba525207d09bc32c4145fa8a27dbc2ca8423b8d0231da49346a8f
MD5 c40f75badfad01c879435b6cc367434c
BLAKE2b-256 4ffed368cc7b06b285b66adeedad57878cb2e835fb2697b79de7ba7981f3cf2d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.32-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d8109dd91a98ceb81bf52ccdfd3c99d61f25f138b186f5d5bcbb4b5bf327448e
MD5 001ce835b08a5fadf751c7d6e58ef010
BLAKE2b-256 b767090f228e11c67515737f5538a85867fa419daa3c825c5af2d702d9f020d1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.32-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 6b1300c17cd62c15ab0bea270e2c9b5a0a9ae228ac4ad3cbdd4b1396073a0219
MD5 4e6446a4dd7534631e3685da3de2506e
BLAKE2b-256 24da302c7bdec6ae0194c99f3ef1bb3a7135aba50741ba6609b3bdedd7a1ada3

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.32-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 496.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.32-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f114e82be97e74b26a40e106df8ab246d24214e858b67cf2826c3f16e12ef808
MD5 e92fb07eb39d24499a9152b29ee89d69
BLAKE2b-256 a5a2daf1a22da6a0c8287d66b0bdfe7fb5489ce26a4b45fec71b1bbf7acf613a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.32-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9bbd62e06c392b3e3693dd52b415d790baf581750706477671c1fc6c7244fdef
MD5 b96e0051cb514455a8e6b1497218b3a0
BLAKE2b-256 fcf4fffffd75245f97569cb5cee28ffa47e90e3dd5410949bdffe4904673b6c4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.32-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1571ac2148f197d355c58f628c36bdaeaba106fee526389f9cc095e59ce3e22c
MD5 7fdee831fdeb73dfac55e954d01c0022
BLAKE2b-256 30d138a473a24d7b54cab811555f3808c36a261e9b4ee2ef81d0e2cb8124d325

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.32-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 68244ddc2efd4f4d16135a401405abe150972b284f9d507b554314c2d1036711
MD5 8c079d94c04e29fc764450dc91671c3b
BLAKE2b-256 e8d59123bace616e63cd61b69f7b20bbc96dd689977be6c604668782664a2890

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.32-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 495.6 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.32-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9fe26fc1c14b96fae510b75e32941719be8b40b71af433203f92c0ba0e897bf0
MD5 565c53fc216d817eedf5030a322adb30
BLAKE2b-256 ac21f0ec4ac6eb667205dc78f27437dd190a034d16d576bbe052c9b54fd90b0f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.32-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 43cbf1e74e1e7d5d13a28d0318bf635e0634af92eb6ed8265498f3da032feb30
MD5 9a13bf1fd46f9d5775863cfb6609e7a3
BLAKE2b-256 25ad733e3581dd97748c6ccb5aa4412b816546fab76dc19422b5c915a46f5b9c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.32-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b9b1f4bbe6a3a167e67c841056757903c778877ef356fcc6f6647cb18aa1a6f1
MD5 89740e19c5d94914cfb5f59eb2aed6bd
BLAKE2b-256 e542a1ac5780251a484b6c5a97675b0f14c923957d2f2464ef43f4d53783c067

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.32-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 4b2a6e33633b6620f9cd41f14539c26df02a093a808cee4247394df3f8ee1c52
MD5 5ff93398d937f582e216b7ea684374d8
BLAKE2b-256 7a9622702b077f01105506616a22b9199db3031d225486330edbebd6d490492d

See more details on using hashes here.

Provenance

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