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.33.tar.gz (931.2 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.33-cp314-cp314-win_amd64.whl (507.4 kB view details)

Uploaded CPython 3.14Windows x86-64

qhchina-0.1.33-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.7 MB view details)

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

qhchina-0.1.33-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.6 MB view details)

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

qhchina-0.1.33-cp314-cp314-macosx_10_15_universal2.whl (910.0 kB view details)

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

qhchina-0.1.33-cp313-cp313-win_amd64.whl (497.4 kB view details)

Uploaded CPython 3.13Windows x86-64

qhchina-0.1.33-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.7 MB view details)

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

qhchina-0.1.33-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.6 MB view details)

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

qhchina-0.1.33-cp313-cp313-macosx_10_13_universal2.whl (905.1 kB view details)

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

qhchina-0.1.33-cp312-cp312-win_amd64.whl (498.2 kB view details)

Uploaded CPython 3.12Windows x86-64

qhchina-0.1.33-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.7 MB view details)

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

qhchina-0.1.33-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.7 MB view details)

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

qhchina-0.1.33-cp312-cp312-macosx_10_13_universal2.whl (911.0 kB view details)

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

qhchina-0.1.33-cp311-cp311-win_amd64.whl (497.0 kB view details)

Uploaded CPython 3.11Windows x86-64

qhchina-0.1.33-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.7 MB view details)

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

qhchina-0.1.33-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.7 MB view details)

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

qhchina-0.1.33-cp311-cp311-macosx_10_9_universal2.whl (905.7 kB view details)

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

File details

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

File metadata

  • Download URL: qhchina-0.1.33.tar.gz
  • Upload date:
  • Size: 931.2 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.33.tar.gz
Algorithm Hash digest
SHA256 9c48637a26899286562969ec765f67ba72a16143293bc4cb41a58ad13cd55319
MD5 bfafb96a97b7219decd6c8646838f1b8
BLAKE2b-256 fd5d1cb90b12892c44ea83a6d20066f352718da7b128f75f890ecf698bfc89d8

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.33-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 507.4 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.33-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 538756a1959252899cccfec5cdcc598b485e56cb83eaaed52f95b89e434092b9
MD5 f79cca405570d1f94eeaffb03ecac20a
BLAKE2b-256 87223de5cc777c9fc508e84dc4628a8d9b150290e4b7faf2c5d8141aa4c187d9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.33-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3095b1149f59e979548b54fc9becba8a821fa16c55c252c79e614623f0c90e6b
MD5 5487659500d2a8f33bb4376466c04e91
BLAKE2b-256 32561752530018aaf7fdd08283c04e42e3aee4ba7653af71fa69c9f09a388be7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.33-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 375b0ee358dafa45a43158d53c9f42ea45cd57d1be315cd0b69386b392c164eb
MD5 b3f336af975fe734e375adcb4008caf0
BLAKE2b-256 193e5e739bc0a3bcb28a33d125ac77203c1bfe8bc41dc043535a0687d2d3b014

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.33-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 f6b0ca0674e811bc55b4fe2522b9993694ec80b9da2f20490aa082bff40aaf71
MD5 a814e9cd86aeb4deb32e436a12e00ace
BLAKE2b-256 719fea246c94974fb4a39324ba291f73dedeb7cebf400455bc3b8b2ab8d079de

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.33-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 497.4 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.33-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 1225122b104c98d661d0151d1dddae0deda3f0cd9633d76d31e65b136a6c33f1
MD5 e93c5eb25f52a776cb2f0079bb10f31f
BLAKE2b-256 a11af160791d7705377c439814be531fc1feeddd12b2876bc30d0028af8b3f97

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.33-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 17f876b321b45d3c2e5ee61906c12263a42700ddab1ba092e3113c76b25f4303
MD5 511e1780bcbabca5bdd7aaf541c280a1
BLAKE2b-256 daf7e7973b8e161eaa44c9a1261918e4e776172e8b8ab525d3b3e30efcadb07e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.33-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 74db4fa35655c2562c0770a4e8e9388f089ff509938dfe7a52963c124a0aadba
MD5 3a17a230d3d14d61c6b6c6d2a802846a
BLAKE2b-256 8822955e4953e0d3e425f727bacad02676fc9b34e76aff4d10becda5abd4bf95

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.33-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 2293ff4de835f1d97d833bc719b0a7d7974905b4c53d9ed57dfbd293da6e932a
MD5 c648c6ff8977ce7ae0fdb1208b2ca6f7
BLAKE2b-256 13ee0894d19510fbb4ebebb9fa7f32232059ffe447f955696425a37cd4089829

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.33-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 498.2 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.33-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2285c10543fc20bbb01c629829fb32bf37e74281a4c7244edf90c62137975cc2
MD5 a0fe369045e49eb5f9e2215ae9992f69
BLAKE2b-256 acad08a9b9f9b78b431d62bb9fca40e0f04f3fd95ceb11d643f21eec12c90a8c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.33-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1488e4fa81797506fd489e1a9f0586c1c8f7a3a57595345b7f671e44a15fb244
MD5 9130bcbfd1113f2864d4e0e0b97512f4
BLAKE2b-256 3a5b0c1457cdbe3f93e53396ef2f11cae20a5e20af6586554dd6eb1ed16ccb7b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.33-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e26e30ce8242e5fe63da702bd2577c969000d9d5ff80257d367c19876e385aec
MD5 91e49b5650e16b06f19f2a21762be82a
BLAKE2b-256 4bb1899323020e416b7d3425ea97fd2afabca05e3ddcd0c3541781c045dcd213

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.33-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 bb58ef0da53e539c9c9e6decec996d644e75b7e5710fcc1916165b2b5e0c7f85
MD5 562f5d504dba13c0aadc0f10c43273f6
BLAKE2b-256 d0ad27e2e83733fac5b87dac219e5bb6035a8d5a7c6b1578de69b2cb3f5dcbed

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.33-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 497.0 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.33-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 58bd4ea1fa50fca65a3836076d8e34211b6f807fdab9e95730f46fe572caf6a5
MD5 8e09da06dfc942326655daf080c92f70
BLAKE2b-256 50dd93a7d0bc51c19e41a01649230696eeadcfbdefad85cc75ed7b909dc7a1fc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.33-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 27f49ee1857e47b9e99f35f41d2099c71010347a3268c829a313ec2c69292e87
MD5 9da1ebe194443e3794b3f32d621f5977
BLAKE2b-256 e4e9939debdbcc651a0817c0328200b3df0cde3f48b87b47e790de96f18b4cc9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.33-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3afafb1b4e2c79e5e5af9f069f7d5c70599a9cc25638531d90c61985250eb2ac
MD5 a6a26e52fa6a1914a9956a0b0cd889cb
BLAKE2b-256 3544ecf38236183301e6fd2a8334a3fbc0e4981fb6d907270166273af06a4c6d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.33-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 1e1e1e54f759e41c093cf445eab46cceb95ddd91c5d8a617de51eccd85e3ade8
MD5 ccc14a2a307fc4ded4e97bc3d9f61ca5
BLAKE2b-256 0c5da96b1a69697be2c515a47718706bcb741d0cc15a6f1c9638b9581779502b

See more details on using hashes here.

Provenance

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