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.11.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.11-cp314-cp314-win_amd64.whl (31.2 MB view details)

Uploaded CPython 3.14Windows x86-64

qhchina-0.1.11-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (32.7 MB view details)

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

qhchina-0.1.11-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.11-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.11-cp313-cp313-win_amd64.whl (31.1 MB view details)

Uploaded CPython 3.13Windows x86-64

qhchina-0.1.11-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (32.7 MB view details)

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

qhchina-0.1.11-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.11-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.11-cp312-cp312-win_amd64.whl (31.1 MB view details)

Uploaded CPython 3.12Windows x86-64

qhchina-0.1.11-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.11-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.11-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.11-cp311-cp311-win_amd64.whl (31.1 MB view details)

Uploaded CPython 3.11Windows x86-64

qhchina-0.1.11-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.11-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (32.7 MB view details)

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

qhchina-0.1.11-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.11.tar.gz.

File metadata

  • Download URL: qhchina-0.1.11.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.11.tar.gz
Algorithm Hash digest
SHA256 8c0464e1a2c044fa6757f12fa0ab99796da94443abac50494f06f4dda5605585
MD5 545456c42702fe66bdeb3c808784d79e
BLAKE2b-256 714ee8aad9451a19c475516846c9242db6d2794238ac41feb788725d5975e703

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.11-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.11-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 fb04e788915d260ee612c330245d1697a6024bd79e965bcaf922b4309fc0d742
MD5 ece85a5d320c2816b6ecda6870209c80
BLAKE2b-256 d8c64f1799725d6710c665b8f3eb5defb5fffc1919d7d5b6a62b3a57c7518e02

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.11-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c826bf503d22a00653b6633dc8ae2839a55567c55fe4f980f137b58bcda6b1fd
MD5 6a18585ae8f457f39adbaa1d0c7a751b
BLAKE2b-256 e8b235603f073b90249dffa9dec056f7c3ecebbc0640577d72068eb353599b41

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.11-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 aa44969628e7c1ea8bc6eaa487c4b267a3b30f398bc25218ab43be5c4103aca6
MD5 2059d32f298efaf5721e9de2ce49d857
BLAKE2b-256 2e58904f557811abe48224efe3a168e40620b4be8b01a6822c21fb043002b3c7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.11-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 0db3b039b895685874863b3e848c059c493fc1b319e97e954843583638ca9b0c
MD5 8b0b4d20912e28a2c58f735edcdb3496
BLAKE2b-256 3826f348c333dc7925e731cf5d020cc3cf4d78deeab3a34bdfcbed0937ca1eb3

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.11-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.11-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 8a4a455ba168916812c1a28502d8e2dff29858242361f84b0a123bff4f7dec5b
MD5 a2ab0d035e4c1184c16598ea3e5f6f7d
BLAKE2b-256 96e4decbd0b10d971a71d661c43991d69dc8232c7e971d397ed0b9c57e896d20

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.11-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ba435ebfbc67818e0c8f4063638d9495de9bf9266befc3740023c97621895a40
MD5 3b903be48cc4fa482412c391d2f51b78
BLAKE2b-256 6e721f75836aece81c4c79c1f3b1f001c2f9bef46d8efa424eb1892667256602

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.11-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 30fe164c7888817b21869a4ce9f9854766d7e4986563eec6603752a36e76dd11
MD5 a777808d64fcc5584dbd818d4f1b8c37
BLAKE2b-256 ab404e402b62aca041bfe9db08764fc0d004deb302ea9f273098cd6ba34ff85d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.11-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 72df9809098bd3048913f52ff39ff8756e3cb3879fd950bb636f456099381e66
MD5 c6f4f00e089c78d59be53cac860cb534
BLAKE2b-256 d5ffe0e63a6757e320965e5d74a8bc784ed2f740f2a20da6928102b80e0b78e5

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.11-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.11-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2c1008b22edf8fc137ebdb1a95846f8250b487e117012f2109ad15547865b15e
MD5 400d9d820992c77ee4ca3fb85d8d1abc
BLAKE2b-256 6c414a956ffe26e3134029ec00163bacf609596cf8dfe0f1a56e6e6b6ce0b61c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.11-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b7a8cd3114d12dd46f4cb447b0c251cfbe14a419541117ea052d28f36b5cb396
MD5 d17e691306be6a840ec4d03e010dffa9
BLAKE2b-256 b44994f8c7f04f5ea0748f5965fdd51b878af331a33b1f23d243860b62ce3521

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.11-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5d197cd48fc4a554ffa67f3f1ce1498bd19ce5351c9b8573acc8bcfde510db8e
MD5 d0545f6f43d62e1936b1abe820316631
BLAKE2b-256 ec994d0c906cf459700d44592e4632ffd3dc31a5fc42a6eb4cf97416c509a460

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.11-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 8271ee1bca395fabfcc7928918ed54769c7d058e1322bc2f74f75566021f8fce
MD5 7731d61d22770d7cb601a8fb759b30c2
BLAKE2b-256 1b4d85ed78bc937125b484de5fb7849f6ea4aa128f6adef3826b8104104b7200

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.11-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.11-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a156a4c12facda26fcc9b7932f4ef772249c619d1cf902d140096f5196ce89e1
MD5 1d23a5ceb64e06be13e4da038c977a42
BLAKE2b-256 1ab5aec4946a9c34eb9607b3f248f6c2663c2f7d47179b1bb1aabac74278dc8e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.11-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a28b64c73920763ce2242efd70459b5ffa7373ca1b441bc365760e647c482410
MD5 bfbd25e6c5623e26c73d7c815bd15f03
BLAKE2b-256 9e43d0c8896f02a828e78179edf935152b9cf514d0547c4241bef50da946fd54

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.11-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 06339992a1798da8bd1a97a7ac2fb4a522a5b0811559312279995fc9601e6ca9
MD5 7f5496749bfd0c37e4269e0ba2478102
BLAKE2b-256 efafa7b66d11a03f35910d743cf0ea10005274781d027f93a7e077cfd761aaea

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.11-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 e072e541be5f460bbeaa4ef08c8f95b7d784bec0b019e32c91995709945d0eac
MD5 119bc23de4525e8894faabcdd7e3107a
BLAKE2b-256 6e018b4a320168778438ade280fd6a98a375200509d25d029694ec3cafa11caf

See more details on using hashes here.

Provenance

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