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.31.tar.gz (898.2 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.31-cp314-cp314-win_amd64.whl (484.1 kB view details)

Uploaded CPython 3.14Windows x86-64

qhchina-0.1.31-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.5 MB view details)

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

qhchina-0.1.31-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.5 MB view details)

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

qhchina-0.1.31-cp314-cp314-macosx_10_15_universal2.whl (879.2 kB view details)

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

qhchina-0.1.31-cp313-cp313-win_amd64.whl (473.9 kB view details)

Uploaded CPython 3.13Windows x86-64

qhchina-0.1.31-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.5 MB view details)

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

qhchina-0.1.31-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.5 MB view details)

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

qhchina-0.1.31-cp313-cp313-macosx_10_13_universal2.whl (874.4 kB view details)

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

qhchina-0.1.31-cp312-cp312-win_amd64.whl (474.8 kB view details)

Uploaded CPython 3.12Windows x86-64

qhchina-0.1.31-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.5 MB view details)

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

qhchina-0.1.31-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.5 MB view details)

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

qhchina-0.1.31-cp312-cp312-macosx_10_13_universal2.whl (880.3 kB view details)

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

qhchina-0.1.31-cp311-cp311-win_amd64.whl (473.7 kB view details)

Uploaded CPython 3.11Windows x86-64

qhchina-0.1.31-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.5 MB view details)

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

qhchina-0.1.31-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.5 MB view details)

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

qhchina-0.1.31-cp311-cp311-macosx_10_9_universal2.whl (875.2 kB view details)

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

File details

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

File metadata

  • Download URL: qhchina-0.1.31.tar.gz
  • Upload date:
  • Size: 898.2 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.31.tar.gz
Algorithm Hash digest
SHA256 97b3d193497b11cc77cad30a009c81363088e44949639ee4cad32696d87d3dcd
MD5 0644437a25dca49c20e7d0fe04c4b667
BLAKE2b-256 939ce40a2eb801c47ede8f5ea7a84cee729b49d02f70fbd95262c8c05ba97f54

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.31-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 484.1 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.31-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 51fd2214c6d0490d8635d9ce51da4de3adc595ffaa8886a9773fdd679afd2807
MD5 bb78a6a997f0874487d222bbf3ea8c99
BLAKE2b-256 3ce9ed763700190268f1e3f02d61fbb384b554bd16a6738f1c11f882f24afacd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.31-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6aacdbd01f7d7cd7ee38fdf34209c8b7ef1eb77279de7c5c7e8ac739fb24055d
MD5 b6ce512a51123099dafc8436ee94e69d
BLAKE2b-256 054ccefaee9d846b5a31d2b7d157f7d4f03c04b54d68281220e8ecf23ba46809

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.31-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7482214135f273a3a411f24a7d27694437389b1b76d9ad1b14668e4749b3550f
MD5 01342516dfb891af8afeaa55358071f8
BLAKE2b-256 89528cba95a0de7c9b44824ed6969e44f9e7fe74ad1967782bd2d7694fe103bd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.31-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 561efb2ff0940aae155139c08e873f8c5a592fdfe49959a7e700330dd408c962
MD5 350856fec5c30e2c9613c372fb697276
BLAKE2b-256 1b756409a1a302a4e869d982456ee89009dfa4fd510e8d9b3ce8fca0cd96ed4f

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.31-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 473.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.31-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 049c8e01fd380bad32f87dcf37431132c72ad4776e31c7b95a85ad1d86a63c04
MD5 3efd7b4e3a0c9438faa2a7ab703ad4c5
BLAKE2b-256 2462bfaa2b1854d16ff5f8503eb37990f3bbf00f688ed6ad3e2d55d8141212ab

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.31-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8f5900533ecd8af8799b4fb43b578b027dca2e613ffaac2eb608b2def2fecd37
MD5 bc74708b9d40c4db152c534f0fa6332e
BLAKE2b-256 83497e3ac9655f4fd12e73410db1955e12428000a921be18699b1bd97b430ea6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.31-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 74210e785979e89288023dace0a5279d48fd4da26a3c3cbb50f93f201a083f45
MD5 823ee553306a3f7e59c8a255993ecbef
BLAKE2b-256 add447010dd8621b3c9cfe6e3049eb9ea01a2b8aefbc328f4252de89717e9c1b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.31-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 884626fae95df1816fd9419277480e07c0aeeea4a6e98f6bcc0db36ebbea3fe9
MD5 1f4bdfde7796684c006dccfa47b57d76
BLAKE2b-256 51e669eab44a450f2d4aa90ef35765e61572c90f7ee69fa7317056b2f1805199

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.31-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 474.8 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.31-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 23411a35f744fabdbb4a852ea7034fa3b503ff55fe6f001144e443454afe6a90
MD5 734ca11d3e33fdce27bc20c13315bac5
BLAKE2b-256 7f446d59d61940622c4ca496d932916dd89262fc28cae562aaec72b6f35f5305

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.31-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 43c77e53b3e1498cf1475b119b66352d93f4d9bd9d3fe52d8ed09851e2053152
MD5 acf7f63e4cc25c1891e96694af887dfc
BLAKE2b-256 5855c20a3c8b5f347736cf295ac5080ca22a4e458da9b174c1e94813bd5728cc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.31-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 69311531697f64fe8d3f227b607b65dca4fac60d55467ab85273633827cc1e6d
MD5 c9f78e338837d274ff5b02741541b35e
BLAKE2b-256 5fb3a2c5bc34cad19fa6521ff2f1cec721fbee6c5d917bfa15c3388c323431b0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.31-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 5b80bd147176b3e512af8830514e402dd3c32289398dacbd6148c10f9e02ed1c
MD5 575f42d36c5676314c857afc3058b432
BLAKE2b-256 5d09929598d61e4f571ce9a858195f5b7863f224bb64d2de36dbc2972da49bec

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.31-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 473.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.31-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5f5d7cab7311cf3aed36ffe2745beafa2b411bd1c00bca701984425015daf8d5
MD5 e1af5039e12937702abeaa3ad0808221
BLAKE2b-256 051494df859298ea413d8e26508285be90615761b3b9e2b18c63746f1304de8d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.31-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ad2904b7f2fc5cb2a1db8ed6eba21cbc1e7061ce56b935bf904b270ced61367f
MD5 9778b490bc1a83d867008f6940485760
BLAKE2b-256 ed2e404879f5778c60cb08e070cbaaf9d3bfce2b8c9bcde08393b35e83354e18

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.31-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0c7a6ad0e730886fb0fd42d2d9e756754e7de87cdc3c9b25a6a8a9509d319969
MD5 2e2301e4b2eb5347af1f2a61fcc7aa3f
BLAKE2b-256 34b5e392fb460206c0bb2c71a14f62b24c06989c514134bd373029d36a4db32c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.31-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 787f2196ee41572b1ccd53e0c94b6abaf1740cccb4846d556aa1cef23347ed0a
MD5 ef78133c7e6034b5b83faf1ccaecd9c7
BLAKE2b-256 48146066d2020db550583897117a4ad4462e0e6feb75665c63b7ca1f4f051294

See more details on using hashes here.

Provenance

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