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.12.tar.gz (31.4 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.12-cp314-cp314-win_amd64.whl (31.2 MB view details)

Uploaded CPython 3.14Windows x86-64

qhchina-0.1.12-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (32.6 MB view details)

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

qhchina-0.1.12-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (32.6 MB view details)

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

qhchina-0.1.12-cp314-cp314-macosx_10_15_universal2.whl (31.4 MB view details)

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

qhchina-0.1.12-cp313-cp313-win_amd64.whl (31.1 MB view details)

Uploaded CPython 3.13Windows x86-64

qhchina-0.1.12-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (32.6 MB view details)

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

qhchina-0.1.12-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (32.6 MB view details)

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

qhchina-0.1.12-cp313-cp313-macosx_10_13_universal2.whl (31.4 MB view details)

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

qhchina-0.1.12-cp312-cp312-win_amd64.whl (31.1 MB view details)

Uploaded CPython 3.12Windows x86-64

qhchina-0.1.12-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (32.7 MB view details)

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

qhchina-0.1.12-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (32.6 MB view details)

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

qhchina-0.1.12-cp312-cp312-macosx_10_13_universal2.whl (31.4 MB view details)

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

qhchina-0.1.12-cp311-cp311-win_amd64.whl (31.1 MB view details)

Uploaded CPython 3.11Windows x86-64

qhchina-0.1.12-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (32.7 MB view details)

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

qhchina-0.1.12-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (32.6 MB view details)

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

qhchina-0.1.12-cp311-cp311-macosx_10_9_universal2.whl (31.4 MB view details)

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

File details

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

File metadata

  • Download URL: qhchina-0.1.12.tar.gz
  • Upload date:
  • Size: 31.4 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.12.tar.gz
Algorithm Hash digest
SHA256 b47eff6395b56f04322914a0b0427d3b51dfe9c0cde278903ab427f544ab3aa2
MD5 327ccda62e03e22550899cf05694476a
BLAKE2b-256 4cb7c80f387f382a87b42139e6ec1ad6a5e5331b8504824718a8b312320e28c9

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.12-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 31.2 MB
  • 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.12-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 f06fcd320dee769cbb64263255fddf083ac2b25595970e0a34a4dbc94fcedb3e
MD5 3d8900ddc0ff96955c2b1fff63f2ff2d
BLAKE2b-256 10ef2b925a3ba18f94aa8ba80aebfe1bfb3d1ba6fe9ae60df7a4c89ac8d3daf7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.12-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 324adecb135f5a29f613b3fb15a9b08b4a004a082be2345fe1b1208e025fc3f3
MD5 c0b6e79b2fae11f8664da0eb7dcac9f8
BLAKE2b-256 af8f3f3215d863b8da95505b8142f42be7f7fc577584658ee1f2a397bbec772a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.12-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 500088478e81381f727469573a1d153c750149edcf2826a1dac5237023b4357e
MD5 97cafd4cddff18b82b1bfc342ebb2a85
BLAKE2b-256 04bf33c1f3c1faa568185840a0dbe7510a0b5bfe42660b0be45c3e91d097d537

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.12-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 8d2b6c8f7c954e9651f50b259128ef6c6b3704422a7f9d4c8ad519f46370214a
MD5 6645ee4860db9a9e826b16de14290da5
BLAKE2b-256 3f7f45089fb4fd7a527b7e71ab3f18aefb64a31ce75b6d35aa67955b51a1bad2

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.12-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 31.1 MB
  • 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.12-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 fcfab3da4c6868ff3d9898ab6147ebacc7be4af928e56e5a19ba8aed5e43f203
MD5 d50a532549d876772c363bef10c7c577
BLAKE2b-256 412d2fc397e9a744d57e6e78dd2a8bdc16805526fe2dbca18d79557903b86a10

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.12-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 16548801f3fc68dd99a37c96cbccbfaf50ad7e2111543f1d2afaf8cdede5be11
MD5 fada3d1802c75d2885c5546abcb71dfd
BLAKE2b-256 29767d4a12fb870d549353f2ffa12d8fc5ac13a3baf40319bc39221cf4d74656

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.12-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8c0a0e85c1e9f302b76c48cacc2ac8442e10121e99b1f470eb92d20b42cea636
MD5 7918f737031236860eb065d4685558a2
BLAKE2b-256 a7618d7fbdc4920ff204b44951cb8315b2f6f77be1184b8bf288efca31b14c41

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.12-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 9e26aa33b0d5d517e727d51b1736db24183f3c620e39a4bdc0cfabc95e577570
MD5 5e4aa238ce4b7e05145dfc6ca348eab5
BLAKE2b-256 521f9dc84966f8660d50958f217b7f3d079263cf9750caebe9bbfe56ccb67a44

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.12-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 31.1 MB
  • 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.12-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 27bd9947197c0fe16f1b07ea43eee9aaa26bbf23e8cb7f3e7b73aa84bce56994
MD5 e702cdfb12d9921bc53489ca01004699
BLAKE2b-256 850287da6b5fd2c4f8eb68b9b4bdc707f75e23f7483f18b625c64388eaf4d085

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.12-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 057281e281110fffbf0e3e1527237e12694e86e0240eff77908f1feee865bf4e
MD5 73308c3367a443d66e799bd66bf5539b
BLAKE2b-256 f2cff4c821fe3e3102b12094d69e456897f617cd74ce0f28f00f42c4c5b1a58c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.12-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 14f03bf61184ad5ebcd4bc6e32d3e2c8507b757128517345b0a401ba6aa642fc
MD5 3d2ac2e7611f2913826ad420e4ae7555
BLAKE2b-256 3fd4529ea0edad4d773e314899a8e095dc77118e607ca9c5444353789d6ea7ca

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.12-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 7c1e23c50d3dd31d49ee27831a14b14858adc151fcf4eb84a7065f15d5e0b99f
MD5 a92180d1c4196af4086e477711463aee
BLAKE2b-256 3d30e92669a786ad759c02664a26640f8e8b7c2c48c4c6321a12d7417267808b

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.12-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 31.1 MB
  • 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.12-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 12dcf501e70420174acfd5acb87f564c22b07a276d1989b7df55a5c5989f8e75
MD5 476ed849bb6bd435f64f903d905c4906
BLAKE2b-256 d102111562994fbffd5c9cc7cf3cb8658d77cf7fd51bc2bf4db311b8d63a0b94

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.12-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 aa5087436a0e4fa5b8ad34075049f3d53473ad7d9238b4f13ce50d2996719544
MD5 a56876e3f8df107929823bb416b15518
BLAKE2b-256 d658c244c14945dcb2d181b285919df383eb661fc5ee29334cfb54dfb1627290

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.12-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3a13e090c52424310d01d0b1d31cef3961c38f51ca936dba3cae713045780482
MD5 295fcca7b872386f72362c7e7749f34e
BLAKE2b-256 000e67829f2ef261a3a35d16fd1f65975fb0ad6666ca57164ccc53b327565628

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.12-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 7f2e07c1714ba8ec785ed235bfbd6ce4b7c94dfef426f68af17d11bcb72d30e5
MD5 11a1e5c65906d5eccd8d99b540dd98fb
BLAKE2b-256 aac2c70f9fb1a1f201eb0a83416e39e938de42a92674bc64ee9430849a03d64f

See more details on using hashes here.

Provenance

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