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.25.tar.gz (728.1 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.25-cp314-cp314-win_amd64.whl (407.7 kB view details)

Uploaded CPython 3.14Windows x86-64

qhchina-0.1.25-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.25-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.25-cp314-cp314-macosx_10_15_universal2.whl (715.5 kB view details)

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

qhchina-0.1.25-cp313-cp313-win_amd64.whl (399.9 kB view details)

Uploaded CPython 3.13Windows x86-64

qhchina-0.1.25-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.25-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.25-cp313-cp313-macosx_10_13_universal2.whl (711.8 kB view details)

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

qhchina-0.1.25-cp312-cp312-win_amd64.whl (400.5 kB view details)

Uploaded CPython 3.12Windows x86-64

qhchina-0.1.25-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.25-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.25-cp312-cp312-macosx_10_13_universal2.whl (715.8 kB view details)

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

qhchina-0.1.25-cp311-cp311-win_amd64.whl (400.3 kB view details)

Uploaded CPython 3.11Windows x86-64

qhchina-0.1.25-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.25-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.25-cp311-cp311-macosx_10_9_universal2.whl (712.5 kB view details)

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

File details

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

File metadata

  • Download URL: qhchina-0.1.25.tar.gz
  • Upload date:
  • Size: 728.1 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.25.tar.gz
Algorithm Hash digest
SHA256 5ceea03f1ddfae86254d1f5a693e91382602198cb1acbdeaf04ee336de415f61
MD5 729ebcedc36af3c574a7a7beee4663f8
BLAKE2b-256 2c5e0d382db29364c5bf205d0b578c2aaf5fe9db07016dfd919101993253fd3d

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.25-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 407.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.25-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 cc45dcf520638867775b086c18c4658d30cc39724600a050242b447e722b6650
MD5 e046a5a0d3d9b855a371d01462e4d489
BLAKE2b-256 3050aca21f1c46a6c618e5364dc7e4fa53799751b15729beeb4e493481559dae

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.25-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2cfbf990784abea3eedc8ee46c1ce5af74eb783d2b026b9722e65423cbb974ef
MD5 6d72258b45fd1be7689d02039797c30b
BLAKE2b-256 93f0d94fabf843cdd829dbae313cd8b189b12338a905b11779bb5f702e6289de

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.25-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 20a8a3782d53ad60bc9019a0f5dba93be5c3cbbb720b7baa5418db4c5b04f5e8
MD5 dbcceb5fd10dd18bf6433388be1a9b4b
BLAKE2b-256 6d5d26860108bfa327eca73399118c9efed377b0ee4f35952885a4b923f7bbfd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.25-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 5d0dc9b5b9513ee56052a3a1556d1374ef0c866219e2cf4a638566ae1fd2ebfa
MD5 3bae6543cd6de26772acd8e6bfb691bc
BLAKE2b-256 cda7b3af8acc06df5acb07ff16c2086b1e03c3cd1f8e0099a00a010d209e7580

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.25-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 399.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.25-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 22e851589c9bfb122c3a3274de13f483245206384501195a4cba479835d6ed3a
MD5 6c958ec8afd949b54393b36bf3af84be
BLAKE2b-256 e615ca338e50b1796cca9576aa9ef6d83737db4e2c0397b4afd3d8f32fb0bd50

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.25-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 09c83bc38f03f2d6c00677bf444aec86fc7ffaeb8affc446df774f144e779376
MD5 485a87ce924e016196547f0d1e0e347c
BLAKE2b-256 28ecf47f76b21b9f0bf44914226b5ed2b96c3596a774a72f38791e7f24c57143

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.25-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ce72d0c4f3f0dd637446b7061a8abe99f2e089d39ed3c03ab236c17e4f5c0180
MD5 fa7e397c65957d32bed41d41a23b8249
BLAKE2b-256 28609c4c0568525eabc7d392a8137c878ee7d1c43461e0a2b19b424d90a94068

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.25-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 864c147d55967a15adb47e90e4de61c9726e7f5b883f27382818f7413c7c4db1
MD5 f86dd6852ccff09fbf861a667be847dc
BLAKE2b-256 bbfe4acf4dbfd99a6a97b46fcaaa595f443b18ab41cbd729f683168d6655343a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.25-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 400.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.25-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9936a4434a22e148e944e0b7188f4cc213a0c667918f58f7cf865854f71143c2
MD5 170d896a22556ed32aa47c1beb64b540
BLAKE2b-256 f168d290254d78cc0f1c3c54cafc3b208d70d7134e1f1006c2725155c62771e6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.25-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8a0ed31f0409fbe1c4db5c1b0e77d0b0682565bc5211f87010779083eba75c64
MD5 fd03e6feb017e47518903c3385762e3d
BLAKE2b-256 20bbaba12f687758b6d30d25f1d3265c17be94423804db1acf99aca46e6afbdb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.25-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 be22b0506eb2950db2c600ec6137a7c7b218666198e9ab873b159cf936b3dd53
MD5 f71995b8758ad318a7250d8f7c1272a8
BLAKE2b-256 ddb35520050b16729a3000cbcfc59c35928c4f422c137bfe2748a3556adb0354

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.25-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 315e40e52a383ed510552e7b554f901757425cb62e27b7c60759a8228c29d516
MD5 251d181e7a91208a39fc781ed72757ac
BLAKE2b-256 bd7167da2cec511f2c0ad91c480b5ea879cc3874a5957f0e30b6e6dfb6d64e47

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.25-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 400.3 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.25-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 80834ec617691e4c62e9b847c9adf29151eb4b3bd8d9d17396bda9215874b68c
MD5 3707d22108ebe0d4fcd4429d66b83ccd
BLAKE2b-256 5b9e15f44f7769f91e782042fb6679e8e3a51af3f33d3cdea51a2e2a396e67ba

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.25-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b412f93729ceac82c080feadcca2c9f6a62524cdb4d145833fee89e5704bc5b4
MD5 e71840d049e00330949c58e441eec4b6
BLAKE2b-256 bde3a2a7ceb32e15b114f871a0d9f65a6f2ee640f7889a7d3fb6022be2d64899

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.25-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 09ccefa918c2da18ca9f7bd5ed5681059f579fde7b036568c6cf8c086e849023
MD5 5c2122c2d9b0fb62763ecb2410350e8a
BLAKE2b-256 ab7777eaaedbbe11960ac2fe100a418d27f89de64d8e86b1d7b8a8c05d48da31

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.25-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 35eaaee2f6812c2a2da729b00c2f80b59b0feedc2569446c3cd27d68643d2ab3
MD5 9667394f4b61291237453475aa85a0ab
BLAKE2b-256 cca38121eb93c98030e58c6ce04b239f02ea8c3a25465f4210bbf061ca544368

See more details on using hashes here.

Provenance

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