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.36.tar.gz (1.1 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.36-cp314-cp314-win_amd64.whl (605.0 kB view details)

Uploaded CPython 3.14Windows x86-64

qhchina-0.1.36-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.36-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (3.1 MB view details)

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

qhchina-0.1.36-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.36-cp313-cp313-win_amd64.whl (591.9 kB view details)

Uploaded CPython 3.13Windows x86-64

qhchina-0.1.36-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.36-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (3.1 MB view details)

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

qhchina-0.1.36-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.36-cp312-cp312-win_amd64.whl (593.0 kB view details)

Uploaded CPython 3.12Windows x86-64

qhchina-0.1.36-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (3.2 MB view details)

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

qhchina-0.1.36-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (3.1 MB view details)

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

qhchina-0.1.36-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.36-cp311-cp311-win_amd64.whl (592.1 kB view details)

Uploaded CPython 3.11Windows x86-64

qhchina-0.1.36-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (3.2 MB view details)

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

qhchina-0.1.36-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.36-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.36.tar.gz.

File metadata

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

File hashes

Hashes for qhchina-0.1.36.tar.gz
Algorithm Hash digest
SHA256 c1f110812992c0e9a3bb84435bc6a88fed42f655718d563d2217ed43c51e1512
MD5 24b8d0fb42164c660416907e5bf066b7
BLAKE2b-256 dbb1fc142a12aa4288bcdf0409ec0a952431649ad7aa1c5b79a49c74d4881f3e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.36-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 605.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.36-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 dc895c4ba54427eee733dab1c125b6b391c8d25cc477b9a9967e65f6784c912c
MD5 be0334fbf7fcc530f8d8c34c0f6214b4
BLAKE2b-256 a55559437db036200122f12dd4ac4055373f8058d50896e3711642062efcf8b9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.36-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 45dde579210d2395b860ce1c3fe5391bdbbc066a3acce39a22544f4c197586c6
MD5 8d74fd0cb6edc0d526edc6836f6a6543
BLAKE2b-256 f944c4f88746a78805c3df0047d7c8be734153e03714a4d8dc29e233653768f5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.36-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e6609045273c3c56d52a971efaa12719585d9cd337d559ca0d8aba7447f51524
MD5 24b312f099ea4f971ab93102dfab833b
BLAKE2b-256 43a076349c92c45ad231b050d7f355baba000dfab456f0a9e9b45f9b1e30aafa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.36-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 2ba0cd7781f8d8f7683236e550c7ba556a1283e08008e64c2618dfc508d6190c
MD5 a732e219a5f827d2f6e899be14848982
BLAKE2b-256 3ffba604296fd1c5ea1f213c1d3cf0d6c08f4f6108339072b755a70f70caf787

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.36-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 591.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.36-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 7df7b98ccda96678642337c329604ca7a23da092dfcffa286aa21400cd5f7640
MD5 4e587cb1936711223e0ab42dfe46efc2
BLAKE2b-256 e7d81d26b19014d8dce698bb503e7d584fbde62a38d0dac9f098b6e4a2170bea

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.36-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 89c22da0b38f6f0d352e108ebf58f17352adf099941b6b67effcf15e95f2eab1
MD5 d9ec3244090bf0af51de570c6de46baa
BLAKE2b-256 2e0ef63a749ef169d00e1b4e6a8817a660874c238fc8a7d7a46bbb33d4ee34bc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.36-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c8527325dc783efd4ddb58a815d660f6fb73a09902a7c968053d4edab6249417
MD5 652362331746cd17aa4986b187388934
BLAKE2b-256 bc9a8a9a96571a524259b6b388ac6eb062eb25372a3ac0a61426809e9a5288e0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.36-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 1f3abac81724626e37cee72710d9320b9155840eee1547132b2fcff5c0d762ce
MD5 6d7796d074a446b7de4e36813f8fb422
BLAKE2b-256 e34ad27252a4b9f37fe73875d72f1ee295527abe3757458ab40afc460efc5e9f

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.36-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 593.0 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.36-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 29b20aa35241fc45dbf8b3132561991ef536d8b2f6333c3830901a9410c6f40a
MD5 056cccd6f3909584cdbb1e78fa934d0b
BLAKE2b-256 63d01be97cbf5c9defdc0ce4f073bddc7b3e7626cf8c3c13c903b491798f3c39

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.36-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ebacb6452f92fb91a6dfb04ebac32105ff9737faeeb73b9cdae8fecf5044d254
MD5 847d81bb8acb3908722881179bb70963
BLAKE2b-256 78c2297fd84c0f6f62cd9d7e5ac64e257589de601c029fcfa21fa7f8ee0e113e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.36-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 fccb37b84798d4f3b924699b1826bde441a23689a441a6b3929a78980d4e4ba0
MD5 a24ac4b232664ae24355150fd89a4300
BLAKE2b-256 68e05c46f36fd4cde48b67fd42979373220a30e00ea8871f73ef3712907f17df

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.36-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 24747505f4742380121ed3640db249ad27a97aeda45b1d78e74bfc4d477096c9
MD5 4e7c148d0d398977744e8570aeb23982
BLAKE2b-256 fa2ae0d5bb06caa8791dba2b7a4a68e37b0cbe4b5633b68a41ab412777546068

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.36-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 592.1 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.36-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 bf5980237cae0697e0ee6ad7d00d6edaff314e9883309d6d82c14d5c11871ba9
MD5 193ef00d097b632409351467ddf2557d
BLAKE2b-256 472fe3b027df72492367cdf3bd8bddc12575e17c99a1e78897a5c53ff350235a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.36-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6c20f3fa590a05fa42475fd36273fbcaccae437dd181a2b7c3a3bddb5d170930
MD5 3162ab13eb86a9ab79fcd9ab0d3472e0
BLAKE2b-256 16cd9f5408b854f42f878c969939f3852c77fe5aecc6f8988c4d5ed538571642

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.36-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 364e2af9fad8bfc79323fa6e9b2f37a14d57cd6d7b593c3c5bf7bc9ba674a27b
MD5 e69e0a48fb100ae8a2d85955b1a7a161
BLAKE2b-256 0030deee4d9e476bb03edbb923e05d19421e78d03739cc2a607f11b5b0442bdb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.36-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 a58ec09b33ee7c73a68d16436ebfd9ea1c02d4133f331653a4a457693a67da7c
MD5 81fec5fc1b9173fc0665705812de3fca
BLAKE2b-256 05898a82dd418787744017f183865bdae1984844158f0e2b08c7e11b46ee8e7d

See more details on using hashes here.

Provenance

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