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

Uploaded CPython 3.14Windows x86-64

qhchina-0.1.45-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.45-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.45-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.45-cp313-cp313-win_amd64.whl (607.0 kB view details)

Uploaded CPython 3.13Windows x86-64

qhchina-0.1.45-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.45-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (3.2 MB view details)

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

qhchina-0.1.45-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.45-cp312-cp312-win_amd64.whl (608.1 kB view details)

Uploaded CPython 3.12Windows x86-64

qhchina-0.1.45-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.45-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.45-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.45-cp311-cp311-win_amd64.whl (607.7 kB view details)

Uploaded CPython 3.11Windows x86-64

qhchina-0.1.45-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.45-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.45-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.45.tar.gz.

File metadata

  • Download URL: qhchina-0.1.45.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.45.tar.gz
Algorithm Hash digest
SHA256 55b5ad6c0e8da097ab2fda72e91db641782165ece4bee5a1006558029eda48ec
MD5 f4c09b35216d5f2b1d771003755d41de
BLAKE2b-256 cddf9b6438c67d3d4156f9f034ca60b0ccece28aaff8c938e7973ab54a010a45

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.45-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 620.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.45-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 5092cd586178a602e1c1fc03d6b6e5ec7d50a7c9a8a00e14deb3730da953d1fc
MD5 248df363dd62a8b99dab4bc10937a650
BLAKE2b-256 824f5614eeff9cdbfdd5ad7ed0b4574da1739a15272ed1f633d17c0e94b9a002

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.45-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 88bb01491a82b9f18d46a9aa0bf8b07363f5395c987a626cc701736eda4c365b
MD5 202b2cb21002c39b3564e5808e1edaa5
BLAKE2b-256 8d51231a5607fa5df19a31a320a7d5a979dd83442f1a99a0d1397af3369c6b29

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.45-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e16d1e55721b1d3fcc21a04529da9afc6748d88923cb05579413a013d1c02cce
MD5 7365acc2ce44c3cb51432150c901503d
BLAKE2b-256 039ddb969799a60369ee5b4ab39ae1891425ab20de4b7576f5ea77c64bac0b26

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.45-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 b2182968e9d3e02f38b2f7aed5b7d242d53a934f55491dfc5263da60f12e446c
MD5 5cf69d4efa95421c8e2ad1471fbb170b
BLAKE2b-256 1331b0d4048cada1ab4148bfb921004e03d655a6b46334e7388e373fa21d1b6a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.45-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 607.0 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.45-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 75f1e745190c303f710733fc0847b6a106ea1e16bccedb4b83f0be1ada151980
MD5 66ce469a47d18252554307b71fab431a
BLAKE2b-256 0f4ce14b979f3f63014f7d173325d21536c57c21c173e4df19d3daa90a58c515

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.45-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 45c21539503bb7792a539aceeaa688b174971c7e71db40a469902ef30bac9089
MD5 9ef128211c82c387e8a49bdd1679f0b1
BLAKE2b-256 32133c97b09084cac3abfcb227cf202638b175fb4fad2af0464ffd873ee124ff

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.45-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5d8b59415bc9234501f4f81d8dcd47ca990df3f3258abeaf20c6980e31de8f07
MD5 f8dfc5eba83aead1dbf05f34b499b2a2
BLAKE2b-256 24d87fa62db9c52213efb8e3a0f52c47075ae41f1388b03c10f58e07c4616b0d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.45-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 05d1a81c8fdaf8867e838f1a3e870127fc5fcb9ab28d7e6ab9e5934546180bbc
MD5 7c993a913265ba03ff471c86477437bd
BLAKE2b-256 cfadd23259fe250ca8cb5264d5c650957a87d11bbbc6da968df275b73d24069e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.45-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 608.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.45-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 70a9bf75ef94eac258cfde8770895700ed3bb5eb99be11975f3380378bb72f46
MD5 adcfc03c8325a279e10d6453cdb4db93
BLAKE2b-256 269c78efd7716af5b246c2e3f8e0b142522eb16db62891acd9181f6e0d936dfa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.45-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 92c4048536d77d8d42f607d2fb21efd3c09e086404ea5235d3693ece495df1da
MD5 c4827eb51502165bf4ec78edf0617085
BLAKE2b-256 8e820ac99b1df6bcff1057a244175a58cced9b46c21a0cd1f6735617ac8db6d3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.45-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ad6639187bca906076de8d2b2385718f1bbdf3e404475629e24eb44639c09360
MD5 14ee8f5ee59d7dd0150caf4b1bed8f91
BLAKE2b-256 992792dec039dc65efd18798ff76ccadb36a46ebc68fa72d3b9ec323e64e4293

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.45-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 ef4288b4c2c836bba5f9b275a4dfd0eb9da7894009a59c4214fba0c875c40ca1
MD5 e638f48b071b7861d3ca4e83cab42b94
BLAKE2b-256 03f36ad0be979aa8d69cb4d53d9818f9c1bf1ce846c48469a8fef166e71c21b9

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.45-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 607.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.45-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b261b5e474e6c69a4ee235854fb792ec66f5128443eb92c6fe6d50200fb69687
MD5 6e08a08681c438d24ed98e36aae2120a
BLAKE2b-256 c871f62429304b719d949905769dddc191731a940e50231e4a5107abc4ae8f74

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.45-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0940caf679b32fa84a5197f72d7c5bd02aca7b4c7c5ce0171aea41a23d5a254c
MD5 6ef2218b283d8df2245946903eec5118
BLAKE2b-256 4afdd1bc3fc45b97bc7c73daebe1708fa8be93dff7e8d35bc5e2de5dfe5cc40f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.45-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 91e4e6f9c727720a719aec10d19f477fb115249def673e4e84f90d0f0ccf5e43
MD5 fc3af9a06e2aa37d78775c95a044140d
BLAKE2b-256 de4e17234c96576cdb0ca7e6e460526ec007980c3012b2d1ecbc61afefa0b46d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.45-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 a4b71932e18fe06f02407f188f2053203b7bcbe2cfd383499763ca0acb332643
MD5 da504d20a2e7ce9f47d860690b55a735
BLAKE2b-256 d6a0069cfa48d1a48f0d2fd6d701f1bad3b6f07c004f5c2661c65ab2ead477ca

See more details on using hashes here.

Provenance

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