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

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.13Windows x86-64

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.11Windows x86-64

qhchina-0.1.13-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.13-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.13-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.13.tar.gz.

File metadata

  • Download URL: qhchina-0.1.13.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.13.tar.gz
Algorithm Hash digest
SHA256 46676eab966b03fe88b71d0b2be4074b071bdabdcf0927a0f71e7b53cd4693c5
MD5 fdd41b1f3925fcc390bf36c1c8b37254
BLAKE2b-256 d82575f3a4e46d539775b17c877532d8c1c3dfc594d3c8800a00383d7e9c9bff

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.13-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.13-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 feace34f25483a8a813e83c2906c3bc696a9ec64e6901d1a40ce1b9a9a5554d8
MD5 42fe0a9da81638ecb5bc33c935f6d9b7
BLAKE2b-256 dc8a0fce9d8e29865ae1a7417ad9b1476292dd52d2f4abaa41b7bb9af4c460eb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.13-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e96236080d7063318c1421a54b0a5c6aad69b352912a18c4200f111879443c67
MD5 12124f5a6863ea886dab2c7a7d7f09bc
BLAKE2b-256 9c31988e7b35d8442483ab16da27dd7456680d1907ab7181b5a9d82eccd4117a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.13-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ffcb636020a9330b7e9586c3c05a3efcc4cec1d9f0f87d52e036f69e5e8e4b8f
MD5 e556ff3c5d80d2229ba0b738e797bed4
BLAKE2b-256 3858dd18cf6c5860eac9749f1165c8a34f3962b3eafd1ba527d169ea25ed549e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.13-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 a9ca6457346a9515944456e4e25233531f395143fbe67cda1cfa55088370fcd9
MD5 0302995ccc8a9107c7247d552f9db910
BLAKE2b-256 a98dd0ef27c131a57b8b355911a6e77c0063c04a9c6d6932d153ff6b65221915

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.13-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.13-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 451f3ddd1b6446906816dd3ca8d629fb31b6b8fc6c9d0cdc89fac036d309ea4d
MD5 3c8486540021036833bde968d945a634
BLAKE2b-256 7a7febc2225e6544c23d56c83ea4d697879679cbdc5b4de18c4839bd3be0bc07

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.13-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 990cb6868cf3519a7a1b3e2574cdc37251e986612aa4fc46b8b31570f422cbf0
MD5 be25daae980d72fc85093ec1feaf43e8
BLAKE2b-256 c59a694838127c1bac1c0d2217a40a30b58d8ace8620b322888251430dfa6bae

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.13-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 021cd055206de0ca868260b51bb00a0ff5725fc0b7389f1bdab77f50ce8b3142
MD5 6f9811fd4492bb58aa15c6110f30a5ca
BLAKE2b-256 4cba4e8b165164329553538b7344716ab2015c0245f5ff6cc4fe0f1edc7ba4ec

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.13-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 f6712ef0e74f4a567e7cd4e5f570e64b70c13f7b9c4ca840ab95d334ffce03f9
MD5 8801555307de3c03ee2691fecf5cbf98
BLAKE2b-256 629aeb5550dcc68a428c9b043dc52373fa09f6b452f5504c52964cc556257e2a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.13-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.13-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 64fe832f90a071dc377f0bdea9b10fdd9277741c658fa9d0b698ed1c1c86da28
MD5 6a07e7992de401f0d6c118dfaca50189
BLAKE2b-256 b66c5d21527dcd8525bf4e662c2e1c4a2d91711f34a80f0e8460b8347aed5ca1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.13-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 82a28fd448664d62ad39d252a9079865acf15dc24099029dcaf71bc2033f95e4
MD5 79cf6ad7af932f7818a29f997fc53bd0
BLAKE2b-256 96c7e313f6ab48342a499d5e0469ecbb983e639f47cafb0aee40f8d5857f54a0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.13-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a36f535a2046cc595cf5b430946c4109529cb4af1489255ceb089faf28f29bd1
MD5 21dc5a2a9713500b900b4a92b205da35
BLAKE2b-256 cac224aab672d97371a3e91b01ee849e23fdc3a3c681d01ddd0b363b84aa5ac4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.13-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 bcc3e32498bfd31ccfce60c02c98d8bb808fcaaa3fc4765fbf8d02f715c444a2
MD5 4fff9db314104ccad905f0c0e5a82e3e
BLAKE2b-256 368a86b05171a1477ea9f5fb5da8e3714456c4c53707d11775c649c2a0790cc0

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.13-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.13-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0c849685114785e55485ec25fdb9580b8c56a3d00b88b52f0ba15b69271bee23
MD5 77a2fcb870d1704950e10a94d555c404
BLAKE2b-256 1120dd645afb257fda34650095b8bbaac7bfb38e425e269dedc9821f344ee4b2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.13-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bf5fdd4baef869d060240c8ebcca226d587d9796603244b1059c7d7cdfa6cd62
MD5 b0bdfd5bdc53abb684076f45d53ffb72
BLAKE2b-256 5449f442ec09d8c9935150ac5c740b0e537e3eeaea0e361906848b4247fd2130

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.13-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e4f5a8fff5d5bb68b2f56f1cef8e4737a62ac211eb8e2d469156c38b727348d3
MD5 2ede339bae559d841198e517875d59dd
BLAKE2b-256 eb4e70f48bf07b328b916f58fc7de90dfc022de8562e7e01343b9f7d2fbfe091

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.13-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 bcda9fe3e5047952d7c8236b4af062506cb5866295c6313eab525912e6ea49e1
MD5 0f75e66e6dd2ce0b4f62fa5a6b93d5ec
BLAKE2b-256 7a49acd81c6a07e7c71427d6d871e4084bb1316f2a5edd4f7a3e5187fd351bdf

See more details on using hashes here.

Provenance

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