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.30.tar.gz (886.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.30-cp314-cp314-win_amd64.whl (477.7 kB view details)

Uploaded CPython 3.14Windows x86-64

qhchina-0.1.30-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.5 MB view details)

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

qhchina-0.1.30-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.4 MB view details)

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

qhchina-0.1.30-cp314-cp314-macosx_10_15_universal2.whl (864.6 kB view details)

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

qhchina-0.1.30-cp313-cp313-win_amd64.whl (467.5 kB view details)

Uploaded CPython 3.13Windows x86-64

qhchina-0.1.30-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.5 MB view details)

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

qhchina-0.1.30-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.4 MB view details)

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

qhchina-0.1.30-cp313-cp313-macosx_10_13_universal2.whl (859.8 kB view details)

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

qhchina-0.1.30-cp312-cp312-win_amd64.whl (468.3 kB view details)

Uploaded CPython 3.12Windows x86-64

qhchina-0.1.30-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.5 MB view details)

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

qhchina-0.1.30-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.30-cp312-cp312-macosx_10_13_universal2.whl (865.8 kB view details)

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

qhchina-0.1.30-cp311-cp311-win_amd64.whl (467.0 kB view details)

Uploaded CPython 3.11Windows x86-64

qhchina-0.1.30-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.5 MB view details)

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

qhchina-0.1.30-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.5 MB view details)

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

qhchina-0.1.30-cp311-cp311-macosx_10_9_universal2.whl (860.6 kB view details)

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

File details

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

File metadata

  • Download URL: qhchina-0.1.30.tar.gz
  • Upload date:
  • Size: 886.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.30.tar.gz
Algorithm Hash digest
SHA256 aeff3dd2be43358f38ba225f48cc35ef50e9b14703dc85e93ff593247785d165
MD5 e946b49d0048d86910507d7b8dff5942
BLAKE2b-256 21a6cacdf73a414175b83dc3c516de1c085e631ffe633dd91a4145f92673feb6

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.30-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 477.7 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.30-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 4276e5e95710c896bcbf76781f362a225a49929ecb66f488e8b3ed322ce9491a
MD5 6cc2f14d0bad599b6bb48a784375a74f
BLAKE2b-256 64721ed421e630e52b41077c6777764f0553c8fb082e504b932ee77ccce4d8eb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.30-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c4d675e7a31a67f28c7f5e6e4ba0c381a123fbb5d72d211ca5a63259e47826b5
MD5 39b2cff429bcad0ad2971eedf4d44aef
BLAKE2b-256 56105ca470fdd3ba5d33733d53394f4e73ba6cf2ed23bad55dabb473cd0e2cd7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.30-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8ac18e3c88c3fd702fb472a75695b8e86b52a2a27ca5d9fbe0ff33b2d77dbb22
MD5 edc8780bc0908faabba3d385b6046f93
BLAKE2b-256 e700e5d85260880874fbb13ea4dd8413dbdc67b98fa06821234bb8730c415190

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.30-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 94423094677f910e4438d9e7bd4af6a18d1c5cc95e3426d379f40c7d36aece99
MD5 4fb5d6e7b303fd49feaffe446dd59db5
BLAKE2b-256 7d63d87c37955186ed119a437ad7c5983ccbe9cbb3afc6959edca4d29147a722

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.30-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 467.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.30-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 f09bab85c94197b17504653d34e0323deb9d43033766dc5deb3114dcc909e224
MD5 80e0b1285d029dcaf2d3b556983a06d1
BLAKE2b-256 5ff54bcf970e5e5c62621932fc3c2ee3ccb6930922009dd4de7fcd4a5f073fe3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.30-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f69cc32778740a05611e3116ecdf00d3f6f253f6c68b253b5ca53a2ab75e72f0
MD5 31f36a46615604059dd0b2a96329c473
BLAKE2b-256 64a52ad606ba838f9398f7a9b95771ea4965377ab975f90f4cc363adb8efd396

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.30-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 95be0b0b7f9427a1d41db4256f7944aff9f0c824ff79d5c2645b98c429e3528d
MD5 9cc8531a471570a2a5a983b3569cfa7d
BLAKE2b-256 c25773ef66f9360a2ff7ac5817a0032804f229bf55c938068e3ec1e3740a3610

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.30-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 5fedb677de1e7c225638e91a3fcce77c53e3fe5fafacbb6dd8d32925a73dc2c7
MD5 99b48cf5b79825fd3477aeee9ad29210
BLAKE2b-256 d5a6622c06c121b8be7a6d06f3b6a064166bd6a5d20ad4dfe9f11de33e02d7d2

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.30-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 468.3 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.30-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e813e2ee72f77977addab25a6e8a44533b397391b7dc23a6dc215b34e63398ff
MD5 53ac238b0ad76ceb4bcf1e89d50f34b8
BLAKE2b-256 3aefda24bb4014f63a7b9eec94956367503f2f3e5d54ce63ce985b2cccc565e5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.30-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e3ce0beedb4ee601d694eedcc064ed63fca8762bb2ec9bb84c39ba501ff62d01
MD5 5f040e63d4a5039515bdc5f6e5fe3adc
BLAKE2b-256 6b6cfc0f49a02c357b8e824dfc4538abeeb15378eff0c214b464da402fbddf0d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.30-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 20c94725bf799bcb084786d25edb0e9c6185cc862c0a12dea2b96fc745da49c2
MD5 cf664b4b44e0c8f4bff8644748d8722f
BLAKE2b-256 50514d7fd710590de888c0c2a4ff5b8e7deb1b5576193b17c227a3161c84baa4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.30-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 62bb77ea71289608fea2463e7c8e907abdcbb509c5322de1d363680cb0b18852
MD5 483124e8071d48ecf3dffe0604f5d75a
BLAKE2b-256 9b7a95ba1a668dbca3b7159934c99368984c47cbe755dc8b6324376f22d5b087

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.30-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 467.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.30-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 6d192b9d04f1126d70010c9645d2e7da13aa7ecd6999cd870d04ddf2d0aadda0
MD5 dc3a378034fcb6c0f48addda333582b6
BLAKE2b-256 07f078099fcb66b6924d339a299040db4ee3f3038d902df15647081c5ffbe384

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.30-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 37abd1dc98b54b7172bd35a30754186e2418628deaa2f2494f87aa8d272ef486
MD5 470ab30346b017330615e01ee4555cf3
BLAKE2b-256 81969e781a305833c0fddbf01d463073debf12c14fa2b6fdd4e5fee561d24f01

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.30-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9a0534a9d2e4a2a7c778de8cdf8c26c369917e1ae7d2e34b953e6fef44efdb60
MD5 321f4ae70853eabeef34eb2baa22b97c
BLAKE2b-256 5273e00d123822355bc35e33333be0258b4c71ffebd20ee33634a4f207054e5f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.30-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 2594e491c3bf72e6b667ae8c8472fce0a68843bc407fb6bb2b491e4412b56b62
MD5 56c30c31ae70cf6addfe61f9e82f2c55
BLAKE2b-256 eef5aef1c24fb57ab3f1421eaa3f113993ce1bf709750a759a658580de1432b1

See more details on using hashes here.

Provenance

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