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

Uploaded CPython 3.14Windows x86-64

qhchina-0.1.40-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.40-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.40-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.40-cp313-cp313-win_amd64.whl (592.9 kB view details)

Uploaded CPython 3.13Windows x86-64

qhchina-0.1.40-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.40-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.40-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.40-cp312-cp312-win_amd64.whl (594.1 kB view details)

Uploaded CPython 3.12Windows x86-64

qhchina-0.1.40-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.40-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.40-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.40-cp311-cp311-win_amd64.whl (593.7 kB view details)

Uploaded CPython 3.11Windows x86-64

qhchina-0.1.40-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.40-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.40-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.40.tar.gz.

File metadata

  • Download URL: qhchina-0.1.40.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.40.tar.gz
Algorithm Hash digest
SHA256 f642468b0cbbd84b803500cc8ed8adcab8c1c7e49141a11fd087a1c4ce3fcfd2
MD5 f1b46c0263e20722be018ff0a1e09cde
BLAKE2b-256 d2e12d47eac91d3e9827b0632309ca574157d75ae62ddf6ec60eba01a6e35812

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.40-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 606.3 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.40-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 5cde415cc8ec320a9c284a8a52685f23e75f1406a01075d071c9679089008df6
MD5 6da58349265076c53d07292a51b8e1bf
BLAKE2b-256 885288ca11847877eb2d2c56a87dbda7c561fbbb898e0289af388b721a805410

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.40-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 875bde0a708838581269e89b96035e05fd65b1db4685e93f061c1415ca516aa7
MD5 f933d65b62a932f02262952d76824e95
BLAKE2b-256 b76dbde1bd6f649cacb30c290de4d3d1a7d275fd54db241c854676662433d6c9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.40-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 cf32f6f28c9fca9e19d9ee9939fbefa0b70fd18414f2918ca4b88a7aa898f57e
MD5 1ead9c3eab2c757a424dcf0041b9a09d
BLAKE2b-256 eb9e3c79efdd5fee21c3a14d89ae320e2c191607868c52a63d308ee7706061d0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.40-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 b05e75f60642e5315d0c8ca813f4a923f1392d9ce7d50c29b65dd2e00c0a554d
MD5 43790fa8cb7a8f2a04cf29f96865361a
BLAKE2b-256 507fe6e1462bff59220cb50707c270c51a64b73f53c18f4717d2a382ae7d17b7

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.40-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 592.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.40-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 667f71d212017473ea82d6070d49f6b34d043ef06cf5bf96736f9dd194fed285
MD5 ae8a40d03d263db21176452851204193
BLAKE2b-256 3734a1e1a6fa69d50246a8c312874e1ddb4039d2bfccc4856208f3d6ddd2bbbc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.40-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a6c2a8cc59a08d647adea6f92944f9980aaf2c438bdb094a794e635a267841d3
MD5 f3f12ed74e5eb26dc990b8ca0bdb0264
BLAKE2b-256 9d649aa7349c6d3e719abd38166a448dd84795b826228e962a040346925b2d32

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.40-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5d9df93dc84fcc4a456a093b5418932540a750e60073ee256e49bc4688a9dccb
MD5 4cc6df2e16b3295ad13c2a7579ea61a8
BLAKE2b-256 24bd86077c0904693d0816c492f617035dfc0c2c9a0bdbcca70dac69ca6c7b20

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.40-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 0e7e7dae949a651955c322bc47e05437dd75eef4e881ace90428cfb02ca70d06
MD5 ec48579d8b028dc05a585fe3f5805a87
BLAKE2b-256 9c87eba10b68daa20df61ee92f5fdd3446c9bf6c7aa514c1539e62f0f53b04cb

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.40-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 594.1 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.40-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a115607a37ced1145de9fea1bd8e79ca27ba158eea38820f829f32c8c4451730
MD5 7e369f6a529820206da162b5976a7b68
BLAKE2b-256 ac8a964c8fa1346cfd02000a2a2aca1710b3c270fde9bf07538fb90e79396b26

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.40-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2a28b9517a85a40919121cbc0af46830213f9082b1cb9ec8995e81cfd89b5d23
MD5 8db70515c599f4715ff61bc17dafbef1
BLAKE2b-256 d96fd7cf2e0223a06a0f3ec5fae57009c1569a9c575d08887a274fa1f8acaa59

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.40-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 208203dba1ea35459476e0895e9b85521e34b6d538b28b89639e770f4cde90d1
MD5 c5bc8096d4de756a2711726fb29ef495
BLAKE2b-256 1c7b380ec6cf62463ad8061d5e010cab1c641dc05445460652e370e21532798a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.40-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 968358b317733f862809d0fdd5fe64a13cf461fa1541a5b2b9afdc08da76532c
MD5 8b8b5a22cb98c78d70f878c06c1fc779
BLAKE2b-256 c4f90c72a9703ff551dac073fd5b494ac1a13a79914ba63fac47a5487727461b

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.40-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 593.7 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.40-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 85c77f66d9e8df53cdb8c8162a9428b29f4a3f48c2d3e2fa5b504142a2433ff7
MD5 f1f37c435cd0a911f53af47cb583e680
BLAKE2b-256 efe7786c0092bed137d0a480a09620ea60e19933bcb22f1bd92b52368f8b430b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.40-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1bc499a534aa68981f2eba1c3ae6ab8a69648426d56976efd72b6e4b2f4aab49
MD5 b30db1b6c6794cc762e7c1876edd3cfa
BLAKE2b-256 fea9582212e05309f6335efe2334b70764a86c6b3ede68cc41fabe392d031ca4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.40-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1df2f66d6ed98ec98499f6d14b2330e3f42d836294a85672d20940c443eee483
MD5 bd0f5423816dd87da1c1cbb826f46399
BLAKE2b-256 643379b6b6428ae05e7abf23db5f8d47948de0eb1dbd1d441aa420f5106e511e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.40-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 0f2eaee352a8ad68dc527ce8a807d7192cda6dceb55a616ba47ead7000155472
MD5 34b5b7dee6ef4bc51fe60aa0b5ff6ab6
BLAKE2b-256 011d5f291eca117371b3600a6119f3763b31378bae98aace2e3cbaf4773d0689

See more details on using hashes here.

Provenance

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