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.22.tar.gz (718.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.22-cp314-cp314-win_amd64.whl (400.4 kB view details)

Uploaded CPython 3.14Windows x86-64

qhchina-0.1.22-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (1.9 MB view details)

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

qhchina-0.1.22-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (1.9 MB view details)

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

qhchina-0.1.22-cp314-cp314-macosx_10_15_universal2.whl (695.4 kB view details)

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

qhchina-0.1.22-cp313-cp313-win_amd64.whl (392.5 kB view details)

Uploaded CPython 3.13Windows x86-64

qhchina-0.1.22-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (1.9 MB view details)

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

qhchina-0.1.22-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (1.9 MB view details)

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

qhchina-0.1.22-cp313-cp313-macosx_10_13_universal2.whl (692.4 kB view details)

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

qhchina-0.1.22-cp312-cp312-win_amd64.whl (393.3 kB view details)

Uploaded CPython 3.12Windows x86-64

qhchina-0.1.22-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (1.9 MB view details)

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

qhchina-0.1.22-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (1.9 MB view details)

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

qhchina-0.1.22-cp312-cp312-macosx_10_13_universal2.whl (696.3 kB view details)

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

qhchina-0.1.22-cp311-cp311-win_amd64.whl (392.6 kB view details)

Uploaded CPython 3.11Windows x86-64

qhchina-0.1.22-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (1.9 MB view details)

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

qhchina-0.1.22-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (1.9 MB view details)

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

qhchina-0.1.22-cp311-cp311-macosx_10_9_universal2.whl (693.4 kB view details)

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

File details

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

File metadata

  • Download URL: qhchina-0.1.22.tar.gz
  • Upload date:
  • Size: 718.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.22.tar.gz
Algorithm Hash digest
SHA256 7a93470ea8efea3916fc4075a34b2dbc1d884ef53e329e6d1766d0908d7b0df7
MD5 1ed568085d359551041a868ed7ed4dc2
BLAKE2b-256 72bb6c0e18c2ba47eef2c26c3bd80f8a88550b1d860b1e84bfe32357daf0b798

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.22-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 400.4 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.22-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 31bd35147b4d23aa5b6c94f0e40e1111f48ce05d023db29f525f17273b22a494
MD5 1a21374c9dd266903d97639170dc8d00
BLAKE2b-256 2ff9b66289b481a6a9fd52059e9c6e9c3cfb66950c633408955b3cb5fc121e1b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.22-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3b27d93bf268dede308931b74a373849eb9306d9ca70b12e67875bb2c92d2528
MD5 307187fe57749bf5e6bab561b04fea01
BLAKE2b-256 3d717576d631f7e1303a71de266dc3033271d227f41906cb315145e677b6dc10

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.22-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1e6b2ee50ef1c0b836578c5a1fc20a5e7c055dc9558ba6217643c6181465f0ae
MD5 0ad718646fded0c4462dd063847af75b
BLAKE2b-256 fdc01fba6e54b5dd792a672eaf6c9bc5e059c9bd7a58696d4d7ee560c3a8afda

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.22-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 a502ab0a673eaaaeb1e9931f4045bedfb51beb98485353b06fa3dba10f6a9ef6
MD5 617b0947e070c704939b6f383089ea23
BLAKE2b-256 dc90b8ebe0d82a179ebee30eb7f32dc80d2d9c864873233353f351c3c9a9e55f

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.22-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 392.5 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.22-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 8c31b22aa5178f75d9316c1030b35e8a280593076b88339d8cb56e8ab8d49999
MD5 f88a5c6352e0d6c62954b7f4b4f6882a
BLAKE2b-256 b246c83874d5653b76e9342c8697f5ca9fbb59be043085e8cb804605f2c5d5fa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.22-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cc7cf6246bdbebf9cecbd7293d624df48d2202b4e7cdddbfdb7b8d02545382cc
MD5 cf7103d1997abe2043ddc7e4d249c243
BLAKE2b-256 4c85d2192f20d5e1a0f0bece744251ac2105069c777a12db8c610e3cd99b0ef5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.22-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5ecc96c1b6d48430bddd2b700b71cd1bc2d5cba6cff9c9743dee672fb366e829
MD5 72f81e29778583c873cd046baa394fef
BLAKE2b-256 33f8ba7c2891226ccd5346b0ce8b54211cc75ee11fe9a7659145707eb9b5dbd7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.22-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 033082d15633ac7e27ae264aa10a418c63f2feb980decbd2e2b9bd2b1fc8eb69
MD5 4142736b64380636a123893d022ee9a4
BLAKE2b-256 453876562d5712f497d9be78f266f582e77e80f9fe3a5c0619a3635e453a5418

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.22-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 393.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.22-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 db0fe4824220cbd72c86966e2742a4be24ac72b9a4481c7aa8267944b04def1f
MD5 a1678af6cbdd2fa17a05ee8bfcb37f7a
BLAKE2b-256 0b3aca3b04e1b827accb2a6992afe242bae3b31f53c01d80f35fec2a9b5f3e30

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.22-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d95e12db93d1a669ca52edff5622a07ab49515f5818cec3c6cf3e47912fb21f7
MD5 bc082f62222da672de1504c3148dfe87
BLAKE2b-256 65621e2f401e2bf4dd1cef2a3419f5c23d92df71524c5d3739bcf831f29787b4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.22-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5b0c897b94124b514ba1d1d7074214d554491ab4ddcc52300a6e74be19f60ae2
MD5 fff6665028337e0e554cc99ed2351f16
BLAKE2b-256 2a02769190114ae1a34eb166682e3efc6e7c4f1da7eec5f4aaf9dcc3df3ce7d3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.22-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 afe36dd5d9369391ff7a4109f73a2f3531fe015304f3062bae4f3f2f52fc66ca
MD5 bc930bb1834bcdcee35d5b91f37d6433
BLAKE2b-256 c78edd8dd9b7661c0c758d7b0925f033665621611ae8c911899add678e9ae75a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.22-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 392.6 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.22-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5f4ad4100aa7c4b35a7ad5b4b426b9b7f34747904c475d0e1a949f60feb5c0fe
MD5 cf8442d28ae6731d7fdfa71f9f9a51e1
BLAKE2b-256 2301ed86706b40bcc7c62f41322d109f9975061ea34796e0d61d0dff7ef5fec4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.22-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 45f689931ccded9a08275bbb327ca5fc656703102b07984974f0d7960d5edd2f
MD5 49d0f9db4bc9a45726ffb87644928fd6
BLAKE2b-256 708bb172e1c855ddc52e438e659ee6c785565f6cf6f127b0d5d5761a1e12ab5f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.22-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c434d22c40901ffd0360ba6166684f79b73ea29b3fb4854b63df2eeb183ad47b
MD5 e2a1fec12613dc061a96b0f3b8936a2c
BLAKE2b-256 8774d19a81a41f38be720c274534f62107c7b64445cadccd99830df6e58bbe0e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.22-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 f26082548e5093dd0317d9a936c4c8dd99a62964bc4fd88d8c21f7076a5c146f
MD5 ebdd3c67bfd070c670f1ba70159c503a
BLAKE2b-256 03a67893807e42a35cc921d0497e61ad06ceab01a2f03a4b6dc0c0827d631c3f

See more details on using hashes here.

Provenance

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