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.26.tar.gz (725.3 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.26-cp314-cp314-win_amd64.whl (406.9 kB view details)

Uploaded CPython 3.14Windows x86-64

qhchina-0.1.26-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.0 MB view details)

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

qhchina-0.1.26-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.0 MB view details)

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

qhchina-0.1.26-cp314-cp314-macosx_10_15_universal2.whl (713.0 kB view details)

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

qhchina-0.1.26-cp313-cp313-win_amd64.whl (398.9 kB view details)

Uploaded CPython 3.13Windows x86-64

qhchina-0.1.26-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.0 MB view details)

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

qhchina-0.1.26-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.0 MB view details)

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

qhchina-0.1.26-cp313-cp313-macosx_10_13_universal2.whl (709.1 kB view details)

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

qhchina-0.1.26-cp312-cp312-win_amd64.whl (399.5 kB view details)

Uploaded CPython 3.12Windows x86-64

qhchina-0.1.26-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.0 MB view details)

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

qhchina-0.1.26-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.0 MB view details)

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

qhchina-0.1.26-cp312-cp312-macosx_10_13_universal2.whl (713.6 kB view details)

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

qhchina-0.1.26-cp311-cp311-win_amd64.whl (399.2 kB view details)

Uploaded CPython 3.11Windows x86-64

qhchina-0.1.26-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.0 MB view details)

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

qhchina-0.1.26-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.0 MB view details)

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

qhchina-0.1.26-cp311-cp311-macosx_10_9_universal2.whl (710.2 kB view details)

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

File details

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

File metadata

  • Download URL: qhchina-0.1.26.tar.gz
  • Upload date:
  • Size: 725.3 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.26.tar.gz
Algorithm Hash digest
SHA256 37ab3011e1d2fb54c1988d26d2a5a74a93ad29ad41832b8f4d374ec22717fa72
MD5 da2cc511c928e5d4b572befa5acef570
BLAKE2b-256 8d7c8d42f49c1575b6fa0c17eaf90ca87d5eb53dc18ea3b9b03a312be72bfd66

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.26-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 406.9 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.26-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 5157ebf2a6b6a3cfb7fe5e18fcec642cd787592d4a2f57dd8aca2d04ddde6f32
MD5 10d30507bf194c2d72ff094c06665a0b
BLAKE2b-256 6b9e3abf1a28b25c6d4656f48cd4b61993f2b4d74863f17613f8f062c33b287e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.26-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 404d51ffeec4665e3bd289c5d20ad38630f180519fe3cff4d57a26191111d0eb
MD5 6debc28a3cafc269e765cf74b2214888
BLAKE2b-256 61a876e94dcbcee630bce75405eade10b71614b49d077c8c98a5413e098bbd86

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.26-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 79cb3d72098a3a510712b443601d24a71e1f0fa1d24ec29519f79522c8d8f92d
MD5 1c5a75726356366b83e7c7ba5f89b349
BLAKE2b-256 8099a89515cb42da80556d4b10e6b5b2775213d617679f5ca60cbb33bc4ac97e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.26-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 f914ecaf61d2ddf9e137dbb4b4d07d2ca022d889764676f27539ecc9b4364a1d
MD5 eb17f78035d450cc27f1a771fc61696a
BLAKE2b-256 dc617439df30d03e68de98a067d3213f31af9558b6247ca977482600980b7923

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.26-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 398.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.26-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 dc8b18a3e7e48606ea530721ec8d2a2ccfea86cee272e7c34c6f8a113e2706b4
MD5 6f5f1e16e85d6820333af4b6cf59260a
BLAKE2b-256 cb0215605d86bdcaccb19dceeb7282a70cfe00917cac53277bb746d82a234ee8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.26-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 df427f3ec8c9215e31d7a93cd135b67b8d1330470663b9076b80dd892ab8f454
MD5 225a114012e4fba9650775eea044e388
BLAKE2b-256 f3ae183067ec658227fd9de3894e0a5184fe4f2e998bb1d5de03ac318809cf9b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.26-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2f29f28edb364bee13eebf2f439db0f2f8a1fc4882dd15b7d9f7dc52c0f84023
MD5 31e8f6003b8c5d054e9258d7e29e5c84
BLAKE2b-256 545546406cca4dc362b5665d520434282ee1e76bf3330af4297cd75daaea0ac3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.26-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 7a5763454e3578c63ef33c36f150194ce69e07bb807b6c8feb843ae1304ec452
MD5 3ceebaaa1c29a3432e004d0936dd9817
BLAKE2b-256 3b4d8de9387d4e2d38fa3a99e4638aa3cb3359128de96c55c0891144f8ebc944

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.26-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 399.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.26-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a70e08648e90c8fd2db996421d3bf817a1d1b82c0167db698367c5eb0b18028f
MD5 51504479cd52a607a3e3c5cdbf447384
BLAKE2b-256 de2fc4f7d9dfc6c05df70e0a30e541396666b4064ca6f3552bee2c1343aca5ca

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.26-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c6d368e244127236c028ef7f5909fdae3104988e0c06e805655e0b75adc4f98d
MD5 3c743791f4466af23bb600b0f451f95c
BLAKE2b-256 bd741ae0a828d9a6886c4a7b0091be71b96e944659c3e3b18314a4cd3d8ac5eb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.26-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 949a3ad64a24a4a63cc8a3f71958b47a0ee46b317e97b47a8199459b28fbbb4d
MD5 022f13eb01e54b77fb2cb460933de1b6
BLAKE2b-256 e5e881714cf51c8db984faf096145e91cffa25209154813742cd4bbb7bc02988

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.26-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 e541732862fa5178c93773c85b81162c5d6451d7ca21df3c191e7f1c734b2c49
MD5 bf74c707e6181dbdefc25caa00554343
BLAKE2b-256 3ded437cfbe868ead80075c13c8e54bf40f880b43a949e001cd38ed43897c229

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.26-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 399.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.26-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8b182bf3670bc7a91f3536fdd1a5fa7dfc94dc0403c5a3cdc3b4b569d87673ad
MD5 410d4a10fe084133b71a452fe672be74
BLAKE2b-256 d82839a427fbe4ec041c28deba18b6f681a504f97830ff94a5e0b04c3e56e3f5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.26-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5fc8564e19f5497a9f80045a53bc2e4f03b8e114ef8310ef7ba725da697923f2
MD5 618e431e8cf89b4298d6e819ef4f1cbf
BLAKE2b-256 62dc833d7f20c80280bcd251d776c63e64ed06deb7d91aa2d6c92bab396c567e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.26-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1bcd5e692264708632dad72445d385eb412c7387801c3ff8cd94bb5c0fdb6ebb
MD5 3ca1f54c0d81bf49d9321274dca73898
BLAKE2b-256 832803b18d7249f0b7a7ab2d39c33b6d6eced2750ea4ded5387994509584fec6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.26-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 3e85ae4542380e4179435b884eefef899002999f8f2d44c1b476c728b1f52537
MD5 c09c1d7e40738ee495915e9bb307ca09
BLAKE2b-256 2e4bac9e376b2a4c3a41a4043af76ee4750aa040810292f8691baab960660042

See more details on using hashes here.

Provenance

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