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

Uploaded CPython 3.14Windows x86-64

qhchina-0.1.38-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.38-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.38-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.38-cp313-cp313-win_amd64.whl (592.4 kB view details)

Uploaded CPython 3.13Windows x86-64

qhchina-0.1.38-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.38-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.38-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.38-cp312-cp312-win_amd64.whl (593.6 kB view details)

Uploaded CPython 3.12Windows x86-64

qhchina-0.1.38-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.38-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.38-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.38-cp311-cp311-win_amd64.whl (593.2 kB view details)

Uploaded CPython 3.11Windows x86-64

qhchina-0.1.38-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.38-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.38-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.38.tar.gz.

File metadata

  • Download URL: qhchina-0.1.38.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.38.tar.gz
Algorithm Hash digest
SHA256 dffbd7949a45c0969371e629b977cdcda83da84e99249dff3f69be03b5c972aa
MD5 b198b35a42e30057060fa847ef50d317
BLAKE2b-256 c84ffad347e14741eed246e46f42a2c6ba39b733eeb0946217574e52a4e309ae

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.38-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 605.8 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.38-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 61a0b15783386a9b8c5b702ca1e2e06322adf41f8c19995be1025a62a4c03982
MD5 fa5232331650a82496a05965ce2d333e
BLAKE2b-256 797c818a5c39d90a2f7b636dd9e601b486de2093990252b5e3d8d8a3ee169332

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.38-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8f08d02c44ba7905f8d901699e8977afbe531a40d9e1a1a0e5732fa5b8690cd4
MD5 fd7843664dd9b05083b9877bdc5c93dc
BLAKE2b-256 e4388220a8298ea7ee7feffb34e64b6425244ec9463ed0d0e3843dc479ab9a59

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.38-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 21b1ecbd1856c88e5b5cd2af2c08e4e011c541240f522c1744a46756df1bfa00
MD5 fd1195975a45b12f986d693960144ee1
BLAKE2b-256 0b79058cc3a2b1c5a740d815602bf244a51ee412b29361040b119946fe771a76

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.38-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 1450b7b898056d8432be2b0dbd79b384e74297d595a4adfabbfce0f1c26ad014
MD5 ac3fd30b7eb86abf700799ddf71ffcd7
BLAKE2b-256 936768c6c234045d9ccc7a27a74eeb3c1245dee5f440583b751c371b38917cdc

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.38-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 592.4 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.38-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 434b30ec4b468e4bdecefa7b0fdef909441b25e7bab1c614949787758ae9989b
MD5 e9fe3cffe5502904369a060f0a0dfd19
BLAKE2b-256 18a2178a3f5d406b310810213d827efc5a49c8605f388fd4c10af31ead420be5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.38-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a7943caf0e78631005007dceeceed10baebe422cfa0927308857fa02fff9272f
MD5 c9b3e866f41e466c1af93f163b0308da
BLAKE2b-256 f244780b450abfa98d7811ce993064447b104fcf657cfe9332ecc6a2b264e3bf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.38-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 25f4ac825a5f082effc8dd16ff94e65f575d500bc83573f9be46453a1da865ef
MD5 4b25ef9025cf60f489e5a218f015691b
BLAKE2b-256 18348f01f75fe2df6a4381e6843dc7e7ebdb280e879ef20ac6cdfc496eb842bc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.38-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 dac61a458a487ea626ffc869554cc25a7fc3cfa44833c42e97e81b479541b6bc
MD5 a541607c3084d66103bb876766eed456
BLAKE2b-256 ccb55ec79dfad102683d9df723b84eaeb733dc763d3d5c531567932b60bf1cb3

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.38-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 593.6 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.38-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0d003d28aa1066f5cac8ad5fa89726cc6c6c779c2db273d25f166387fac27cb8
MD5 1f9190ead513996d5c7197b0d5f978c6
BLAKE2b-256 693c2106ca7bf20e3e0ecf63e5dc478e39c5733bcb41cef0f15a75a0ef303f54

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.38-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 79c1cecea36c3bb6f6bf000ec38a49cff297094ad3c67ebbeef82f00fa1310e2
MD5 1a2d913f67f8ec7d2891473245e3009b
BLAKE2b-256 09226cbfe93915a91caeeea29dd0889afd9e8a0b958ccdf2c53b1354b13d73f2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.38-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 10730fa5877700efbb885a441a47b42a82459c8aeda2093889a8b95fabece99a
MD5 bb723e6a44883f1561e4445ebbee399d
BLAKE2b-256 1f9e40da07967b480035fb3b95f5f8451d62f8134edbcc0e7331dda8fc27c8de

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.38-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 341ca61c7916345090a12ce0bac18b75824784ef4bc122c295ebc92e125c8ef6
MD5 a6427228bc0e03eba2527b8bd36d6e5a
BLAKE2b-256 e347c30bcdf77ef3ec9b003b4954e86469366eedda4c377d1472e3596c1b7845

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.38-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 593.2 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.38-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ea92c99514c342010b07ac3a2cc451e9e408e8138e9cd89a9a8e2dc3bc2b72aa
MD5 916c9c76cd8dd55a86d8a3b4647aeb27
BLAKE2b-256 0aadd9dd1d61c19c981bf167defa1b2da0e62ee919d9670a2ffc1e56e60dde9a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.38-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 08ade49f5b56a69814770ee17c78d095a1a3d97a130a7ca3a996d505d8e92c5c
MD5 abb44a62036f10f66919a71c334a19ac
BLAKE2b-256 f66ad5a264402b50841c746d9ef8539beb1b5312a598cf4fb97699f58740d204

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.38-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6657687d15a54f556e41fbc6196f390458ec936d9af64803b0e20bbc41edf7ee
MD5 4d1035e1c3374b345f88c30bee1b67d4
BLAKE2b-256 0558f6570be5a3290404bb338cf032e38ab3b78180afb41b35f299741850fa36

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.38-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 1fa49f4956cf0beb4ffe7a6392ce57921230974305e90b9076f1fba6c318cd58
MD5 8fbe3caf0c6f37e4da6d720efc3ae52c
BLAKE2b-256 9b80a9ba7f17c124b4464060b7faeae4b59f2d72559796ca015942274dc94861

See more details on using hashes here.

Provenance

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