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

Uploaded CPython 3.14Windows x86-64

qhchina-0.1.37-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.37-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.37-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.37-cp313-cp313-win_amd64.whl (592.2 kB view details)

Uploaded CPython 3.13Windows x86-64

qhchina-0.1.37-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.37-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (3.1 MB view details)

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

qhchina-0.1.37-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.37-cp312-cp312-win_amd64.whl (593.3 kB view details)

Uploaded CPython 3.12Windows x86-64

qhchina-0.1.37-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.37-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.37-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.37-cp311-cp311-win_amd64.whl (593.0 kB view details)

Uploaded CPython 3.11Windows x86-64

qhchina-0.1.37-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.37-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.37-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.37.tar.gz.

File metadata

  • Download URL: qhchina-0.1.37.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.37.tar.gz
Algorithm Hash digest
SHA256 3340b9788dd6859e4fc22752901bbec24d67826a9c74f9fad47ed26fb341bfe1
MD5 83561a7c9994b1e8f10b46b68edbe106
BLAKE2b-256 af4f73761d6764ae6946ac07e971e4ce1612f6b54e64db1e66f9306d9f90edd6

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.37-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 605.5 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.37-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 94cdbfaaffcc1fa52eaf613dc8e59a3da2a1c960c7bfa77ca9c0ed9fa6b532f3
MD5 4565e0b3a3ca98077c80436985bc427c
BLAKE2b-256 6d3339a96ec973e5a04684a469487ae5a05a73a67917f9317b3384fa196815bc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.37-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1db95ef46c5cdb9d3ca4bd415dacf7d6ab045f9cbf3011270400423e253602b7
MD5 cc4fec461719882515ef3b77384764ca
BLAKE2b-256 38ff00e57e06bca02c476e1db9578a1fdec564fda6ab1310d01ab943edb02bbd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.37-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 246efe4f838462cfd925d6e2ffd8872e1205b89cdda99123ccee604d4851d193
MD5 4d4eca9733a60b4b8d649a3be149ec31
BLAKE2b-256 d07b94974ec31d5bdf5b08e3457b2df8e788801e8c73a2a1656cfdbb9773f0c6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.37-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 9b5a5623922eeadbb4d9fd678362d530adf3928c1412c29a961d5b95c8b79481
MD5 8b6220d9dce35091e8261577cdd4d969
BLAKE2b-256 b3343ea6d2704679dd514834db6a36a3825e9ef937abc3fe7c8701f7ced91b1b

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.37-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 592.2 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.37-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 7c9cad03c145d6a08a9544a95390f4b470393b6619016a93d36be87c7db27ea9
MD5 0e2095464a980c676bf50c1647b7b78b
BLAKE2b-256 cbfe8f1e0a0ca97c64fd62f4d2e242eac3b8f67500b73a3ad5d7c9bc021e1f32

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.37-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bf542c91f68f98748f7a9bade91d921cbccbeae5321fb4d9f35f0603e817e9ec
MD5 84cee46cb4d1014ce2038d0e0da44dbc
BLAKE2b-256 4c0644b8b855ef770a936aaea66896ed2245892027b7794dbc28ac20b09bba5c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.37-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 722a81be0729b39df2e04b9a04e3d95245ed0774a82534b938f1d33ac639ce07
MD5 f62cc7215e3cf2a65aac8c03b09a1d75
BLAKE2b-256 36e6a4e2588b3b5a980c395cc69bcdb4dca458faac61b03326b886436a4147c8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.37-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 715de13ee61dfd1b0177c9d4989dd3127460373394393574ef92adf8194c21d8
MD5 825610d40eed87735581e4a81d12d262
BLAKE2b-256 bb1416152e7b4d88d9b426faca84fce911333aa33847ba84df7364e8dd8c4a20

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.37-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 593.3 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.37-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 75d70408dcfc7fc3ea6acb046672de853f604c0e018dd957e57e4660a8a76db4
MD5 8cc36a42b99a53c3280bee6e532afee1
BLAKE2b-256 a6307f5f0005be05b77e80bd1ee9789a447a5b2d0ad91cd7180563eed678d06d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.37-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9970f8e45f632d14d191e1bbe738358072dd48895e4ca26010d73b5bd1f84b96
MD5 2e2eae76a10e2a9b5c4d7bd595eb2235
BLAKE2b-256 2a2cac99a56686f151a98e78b57ccf9f6a2a4978882b8362cab0c42d748cedfe

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.37-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0a20ec1bc2fce2f8acd7fe90c611d2c11abdd4120599c906618cd86c984f4043
MD5 2fd5621b2e31d3cd0154810f005c9e90
BLAKE2b-256 169b0066e8a5c4d672882926904ad907ede306571450b71a210ef695466eb881

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.37-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 86ff0a2d3f2ab31f276d95f7e3d10a6c097d182732b50180fea6803ab61f55ed
MD5 465000f60009f9a5df6ae1a1c7a41c74
BLAKE2b-256 b53d5201511d20d549a53d63e34d483fc4ec9b569a9bb22ec2199994993699cf

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.37-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 593.0 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.37-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4a06d48e5fda98b0528a20af7a3acee04a15735d9eadb4045bb4122792ece0c9
MD5 07a7ecd6266b393769c7ba05560d4907
BLAKE2b-256 d7b48277687780dcaecf8c13a098432e5bdf4cfebe954ce81b496a516306a04b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.37-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2e33c445ed3357edeb91f0e9e4046ddc5ecc45d22aa27b9f31ab6cfe2ac7113d
MD5 69240d0991628b6b3bff1a86bcf34dd8
BLAKE2b-256 6596466330a9226c160b26c4dc1b9f9f7195a9f70d262c8f56c2176239480824

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.37-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 bf85675e71964bcc7b89b398b18630129ce9c847f48b7c1085523e93808a509f
MD5 50e1bf18c716571254d374cd39864575
BLAKE2b-256 4b660db20470033de1028995df37fe4463d498e1ef162a06a9d5a6b75824147c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.37-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 892c58171cafc4891a0c1327eb40854dab8733094ea744d4e699645df3e97239
MD5 ecbcaf0512002cf4cdeb82ea1884c502
BLAKE2b-256 7aa6a2ab42217d19e63cd01b38660a76c5acd24bfeb9e55deb1fd938344da663

See more details on using hashes here.

Provenance

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