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.44.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.44-cp314-cp314-win_amd64.whl (619.8 kB view details)

Uploaded CPython 3.14Windows x86-64

qhchina-0.1.44-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.44-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.44-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.44-cp313-cp313-win_amd64.whl (606.5 kB view details)

Uploaded CPython 3.13Windows x86-64

qhchina-0.1.44-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.44-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.44-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.44-cp312-cp312-win_amd64.whl (607.5 kB view details)

Uploaded CPython 3.12Windows x86-64

qhchina-0.1.44-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.44-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.44-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.44-cp311-cp311-win_amd64.whl (607.2 kB view details)

Uploaded CPython 3.11Windows x86-64

qhchina-0.1.44-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.44-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.44-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.44.tar.gz.

File metadata

  • Download URL: qhchina-0.1.44.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.44.tar.gz
Algorithm Hash digest
SHA256 9c7786460db784b4c1902b1790bb93998f72039d37491d28d1dc08bf327a9248
MD5 d175f613eeb40d500166b220aac835da
BLAKE2b-256 90606a2cbb6e6f924a20523ec83ec7a29416acfa8518700497637667f3d824f0

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.44-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 619.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.44-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 1065ca31074114cdeece2fe140c5cda748d22f78dcccdbf6f4cab71d192a3e40
MD5 de1de02e8539dc31c26fee5ccc3f4953
BLAKE2b-256 a0fced98a8877c1fb90fee2b6aa31a906dd19af65bbad24b6262821d1443d791

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.44-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9be33bc4d09a548e0dcb5aeb4cae02575ce954a35abe63cb8fb69ac80847cd94
MD5 c4d4ab8ed197811a63898d67442b3484
BLAKE2b-256 ba17dd9fd9e4569197884585611795e0a995032c16a9b9e916bdd016c7bef4ee

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.44-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 534af705d405125c6443d243c2125d4a24c0b19a78e42c994f9c8f1ab18c6e62
MD5 1e7d8629ba025546808f87870c286208
BLAKE2b-256 bca22e554a628df5009a7ca079fa5c3855b552b161528514622519a8d2eabf21

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.44-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 252112f1f287d5c8470110d8daa49dd21a7939bb681bbd7406a0954293edd8b6
MD5 85dca435b31f46e30aaefa4edb4fb8f2
BLAKE2b-256 fc500eac3e0450fe8dfbe51c6c2ff1b7a5f6ba2ecf0b3b4e89d443524719be26

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.44-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 606.5 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.44-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 3474a44ecb21d7cb472e069beb6e08e3403351191bea5d8f1d16e3b135a768ac
MD5 7b3dbde8812c120e98fcd15fdea22d4c
BLAKE2b-256 93e3bc565a0fa35bb110010736f5d4f10670aadd4399d41e1e6c8d25550feaa8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.44-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0baa3898c0f892fa97e67dd8b7c8bfea24f832062e420eb0888ad4fd66c37e11
MD5 a748021f4ea27a51637e9a374ccd9acc
BLAKE2b-256 d7d1a8ef92aa661d1eb655aa92f935e79107ad4d71ee0144e598a01f77203ef5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.44-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 623bf72b04a7a01b1b3529c5a2f37230cb14ea5477226ed5b97bd3a93ce0fedc
MD5 a559901c7adb2d2bd8c02f02cd3556ed
BLAKE2b-256 de0be440e2ca3a593f7bb4835d269fcc97f14f2ebccf9e9d5dc38184b87c8a73

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.44-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 604a799821881668e3a70132ae158b035c05b974c3a3e401103bb7c29025422e
MD5 1e0258b5f049a172e3a16a6efedc4928
BLAKE2b-256 bd25c6177598008eb04487c3b31d48cec3d6b1a469dc8d03b0ca3fe112fbcc2e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.44-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 607.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.44-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e167dd75f244168b51aef62c67894cf66be998c4d063cd0b9da90f8dc144d9fa
MD5 424bd34841dd6cbb37f193629b2b9ec3
BLAKE2b-256 3013d6366ffd3ba901b717f36a3162d2b7836439daa15f44873e967d4249f7e4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.44-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 201fe9b86d85b83484e068c28d2a0033708906dcf71f450d2bfbc0431c028251
MD5 98fe59144e5167965f2026c058dc8fdb
BLAKE2b-256 5ac1892c0e8e0b715e87e65f353eb1b77a87926491a65544fcabf4f7ff68e713

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.44-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6fe81c6533442b256bbf6c367bbcd68bd7b8686c2b592adf4203c7d6df6c4d3d
MD5 f118cf0c94e1becd0d20e7e578f34f03
BLAKE2b-256 ce1363829256c24d122a6b4e9e5b61efd16bc5f1cd29952cd0664b462f300bf8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.44-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 7076fe53eea3687edf85559d68ea74fb58b5039b69b04afbd94ae2974dfd0c08
MD5 5910531eaeee3509b454f750988eee89
BLAKE2b-256 49cbccb7bc19d923d70eed6ee7f3a9a48cabcf3482d336520768b54c8c0666b7

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.44-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 607.2 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.44-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 83776cfef8cd369b1d005aa87920901cb326edaabd12b55e993500a5b52d1159
MD5 d25a8ec5443e2144f8151b2c2cb43030
BLAKE2b-256 f19ac80cba766773fc854a610557040280674179c109d1c1c36b0e84e6bb2493

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.44-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ab5c2b564fa2c83e7ba8b482ac66abd4f4f3fd590dac9c0e9a94aae879b3527e
MD5 ffe7bbe57349629d48a618cdde299b9d
BLAKE2b-256 f44035de836e90fefeac354fde3768950f46deed4d1a3f82becf14ffc6e0b646

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.44-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 91847cab782ee4544317904169d42058a053754a2b5a6882cc4edf51abd5a396
MD5 4c2b00c8a9ad1d10e179053db71709c3
BLAKE2b-256 ae5e602537a2b2dccf99efd65c26ec5ab11fb2bdd88a4ad72ea883463a1291fe

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.44-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 a59e7c62e484670585300e32b210462d7489ceba4b831d3e77aa263e66e08689
MD5 7c3dee275e43411e13502795337ef9a2
BLAKE2b-256 f37fff021cdbdc2c9245150bf2f17ba044892d090df603953187e139325a7984

See more details on using hashes here.

Provenance

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