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

Uploaded CPython 3.14Windows x86-64

qhchina-0.1.43-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.43-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.43-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.43-cp313-cp313-win_amd64.whl (601.2 kB view details)

Uploaded CPython 3.13Windows x86-64

qhchina-0.1.43-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.43-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.43-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.43-cp312-cp312-win_amd64.whl (602.3 kB view details)

Uploaded CPython 3.12Windows x86-64

qhchina-0.1.43-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.43-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.43-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.43-cp311-cp311-win_amd64.whl (602.0 kB view details)

Uploaded CPython 3.11Windows x86-64

qhchina-0.1.43-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.43-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.43-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.43.tar.gz.

File metadata

  • Download URL: qhchina-0.1.43.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.43.tar.gz
Algorithm Hash digest
SHA256 d03b9f6b0a61d36b2781c2e17d98e64b2e358d35ed5434b0806105ef0f1bb7d9
MD5 68d2dc3b2bdaa82d3af564cecd460fe5
BLAKE2b-256 4631add4d7857a4a21086d0fe0345a60e1070b765a010d2dbfa950dd96cfa120

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.43-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 614.6 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.43-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 ef5343068a04ac9554f56d053bd2a90f49f478166e8811cf834c91b2a263c5c1
MD5 3218de3e86102ff6615736c3588c21c6
BLAKE2b-256 55bc824cca4339c2c4dde4fff9ebf72d24bdaefc4d633ba219d69b506a5a1a13

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.43-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8a26939ee41e0ac07d70d4de510cc378d7db396a2a29a9acca2d8ad1fdc13ec9
MD5 96eee8cd312f4449e2c030765519db07
BLAKE2b-256 328a72d65ff955bbd9f613a72d1d7fa2b5c58f032fb23c9c9939b060de5b7e26

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.43-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 110e1c6b3e7c65fd438d0b90798a31b678849e21cdca44906787167d37547e71
MD5 a6c0164a308fb07006f3cb1c319b084e
BLAKE2b-256 d824bf5b400629d0dc249e060259baa301bf35878098fc16bb2c1aaed4db8c13

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.43-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 af9bb2730f806cdec45b1da64a3bbabddf51b71fa20d64803a5a7714cfad3efe
MD5 c0f2b3a25f2435b69535c54119b3f578
BLAKE2b-256 1a5a51772c31694954dff374194e1a3d95b9870d90ef67157b91434b1d05ef97

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.43-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 601.2 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.43-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 8de932bb75a94171d30f5674438f613beba6b6758cc60b3518922f9b5dba9a70
MD5 8fd0484e0f086b367b73264607f99468
BLAKE2b-256 bb4d852fe5b11dadc363144a9959d74a0dea5f1f4b34c9e5116abf2d264a9421

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.43-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 29903d602cfd519c21964646d4b5d6e50f478691212eb9626388e0ae85da884c
MD5 f081e3e957a2241177d4db49b5e7a8ce
BLAKE2b-256 9fc161069a46c9cb5ea5763bd1cd59b42e3b597a650bc5dca0ca39f843833115

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.43-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 89892e1e306b55959c8cd54ffddb34c26622d33ee5988d95e1e049cf1c15c417
MD5 fc3be8d66d1bab4452ea4edb36072dd5
BLAKE2b-256 ec965bbb57bc93c994d10a371ba83121e51f97d9a80371a96f17d15689e25ad8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.43-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 0a2e0303ca15a92ba4e265d84b526e6e608de9e754f34e84b5fde8f4d04ff91f
MD5 b749a489a1aff30e3e3089d448a5ac7a
BLAKE2b-256 2b4bdb01608e24fb0b9c896f6778f40442f4930d713b22ff1999befa9ef56c1e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.43-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 602.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.43-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d5796049274631b2168ebf2c141d77c0ade694b533f853eba4e80cfe9ccc0077
MD5 16c09a75cf7ee3712e4d44d4bdd6eafb
BLAKE2b-256 7f31ce4326f9c90f4806461fcc18a81945d9cb7985151bfe3b265ee3efed5c9f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.43-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b60bd14d8a83df40f5c661ef009c85641dd5e833e879a1cc257aed66f692e898
MD5 617c11ac228868f74c6df8802ef87911
BLAKE2b-256 43cb6e98c0bbd3876b35a6daa5cca8d2f6b541a84329ffb58063460176d4e96f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.43-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4d087a0c48e953f53a5c036d5888447c333ecf94c5753ce851f99220e9cb19a9
MD5 396f4276d6318021e95c875638ed1e00
BLAKE2b-256 deba7ba15b3dd9a9164ef1a533d2a3b648d049ad4e97316131e3aafd581f38dd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.43-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 e05fe49e1ea3e248e28d3ca6a734df4d871bd2dbe5f720e9c838e46b94bdf7ac
MD5 634b12a6ce80b6795fab1073f46c0934
BLAKE2b-256 fd6d53152912b848d232d5984e421a2f65a59929a659c85dcf0932f8fa69d676

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.43-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 602.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.43-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7fa9d644059ff96d82e343983a88c6f3cba609a48ff531eade27ad46b046055e
MD5 70512b1d4f142e5e0f35439c4befd6ec
BLAKE2b-256 4daa151b0c27b02bd6da6aa0791e099347ef2384a1db977d2c710c6b061b3563

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.43-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 11559f498a1cda082661407668618aee09a19d9a0a92878853f82467b782d9f6
MD5 89baf2b44b2ca735dcbe4f0e21768c95
BLAKE2b-256 5f85a80797bb324a3742a54e2acee09bedde17485918cbad3fcd0cbd08284101

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.43-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 678c716a563a2a73c77ebcd1a01c0bcedaf4bd252c6736e07aab1a2ee50481a6
MD5 cb40435b549f24131794de97b5d55748
BLAKE2b-256 6983bbeb5dcac90daae6c682e4de6f368a50ae8d7f6c37c3733b930d4e0a8cb9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.43-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 f460cde3b0a0006d24cbe2281ae5bfd1ceb6e509acf9002e53a532e150bf3df2
MD5 9ede4cea4194d99389daaf896e1f01ee
BLAKE2b-256 d1327801b587c9e5bcead2588c3c8cce8940d36c18efd28ae6b6792ff9325cd1

See more details on using hashes here.

Provenance

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