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

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.13Windows x86-64

qhchina-0.1.14-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (32.7 MB view details)

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

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.11Windows x86-64

qhchina-0.1.14-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.14-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.14-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.14.tar.gz.

File metadata

  • Download URL: qhchina-0.1.14.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.14.tar.gz
Algorithm Hash digest
SHA256 8224eb057b8f4c1a28861402d67d3a7645641515d459fd721c5f87922038dd5c
MD5 cc3c3c4ba9cc8e6a4874fb94bcd07a05
BLAKE2b-256 0a4471d67646e272eec4097f7f66dcab520f9a709a3ff58290f10e3d7168acbe

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.14-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.14-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 328346ea5d085720cbc6ee2828a870cc8d462c71880258cbae1e4ae8a907ffa4
MD5 58b8774179ad13c5d3dd732957418dbe
BLAKE2b-256 9038d10a05680e7a1d50fb32ac1796291ae3400bb15ae7724d49d2e8119bf4f9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.14-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 42ad954e0c31fae5b72535350477da20fc896446559afe8fa6b948457ea6d9c4
MD5 a878dce61e8170a409f20eed2ad0277a
BLAKE2b-256 0373a0280471b78fe98569cc98863f82b7a35a423275bf23b3ee425f9d361777

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.14-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7cab6323b2b0cfa586770b68309d1a9209b27c7dd1da52f1776c82792e11dcaa
MD5 abea63d0cf4a19504069096c5f16fe81
BLAKE2b-256 7bb236161ee866eb6dbfd78217fc421cbc34b8bcd66fc459eafb0229d69a2dd7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.14-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 2b95a76e36c3c51b659053bd5e26a36304da95a21092f4130da06a4e075724f2
MD5 7626e6c51ad9af0e0ac4f39b4fad692d
BLAKE2b-256 862473a12e99bad29703f9c54a2107f513e6c7c7500492a6e7744035bb334eb0

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.14-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.14-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 0e7bf1a7359200a492435b836a1855ac718366511371e80598e2ef3cb5932de2
MD5 65259eb41949b9976710cde1f97a5fd6
BLAKE2b-256 3a7259ac46ada8619db2a2675bad5e32607b76897294c66cf0e20ecd557099ce

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.14-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7addfdcd1d36fa2dc2e86a5094410b222542e48465f87814f1a846a5f0df11f1
MD5 caf5fff8d4611eeaae6fda2197a2bb3b
BLAKE2b-256 1f36387dca7324cb74605716a58e9a552daef5a71bde1fd8644575eed7417ec6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.14-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1ede1554cd97c62e2d123e8de3d3e2e392bea48c2356d9ecb2c1c114e8c61c87
MD5 6b76e72cf9c1d484777bf0d1bf4b942d
BLAKE2b-256 25fa8c50e3ae23df18fa2c3e107a4726feb8e127483d577d3d1d2204546ca343

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.14-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 ead0b0d459e8ab40fae4bc2aa3bb93cfb83ba13db33bc6b40addebe6e15cb3de
MD5 1c6de6aaadc33510ae9c736d9bacdb35
BLAKE2b-256 141a4bcfed78b6b39db8409d5e06281326ce67dace4cc30a5ab208e76b6348ac

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.14-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.14-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 711a7602fbb6bf86594482da81d9a99029cf4d22bac88fc75a25641ca47007c5
MD5 56f8e87bcfb0b09ab0af8202201c1b0a
BLAKE2b-256 743f709a054bf244e4c449f4554f6278be2687aa8bb6bfcef0cc4e91f948c037

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.14-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e35523e6620988ffbe4ddbbe103d7d33c5f5813036993a35a2370fa3e20899a9
MD5 19cc169cfdfb96ff3cb34053bcc92cf4
BLAKE2b-256 7c6c4769cbdbbc87e70562bad2b721fa22df6fd2953bba2fb11352af9692c85d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.14-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 54f47bf75ad8fe4595319bc79d2e034629e18bff6bafe9e6cfb1d658489fe396
MD5 1cac3d088baa9a04df807d23e0a974a0
BLAKE2b-256 8c61bc448e3777c96803fd0f7f36efb7cf3609bd5e9c6e61082d8bc2d86746c4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.14-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 f2fc7a507f3f7281637fea3e0dc8620c61b647f1ad804c8b7a94a0f399fea0fc
MD5 7c3bb4846ce26bfa76c28c86b69133f0
BLAKE2b-256 8fdc93a90a2c40d70f494fa4c9763162349de7a91f104e4fb42ed93cddd380c0

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.14-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.14-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c0023ffbbdf2cbc81de7f96d03365793e6399dd7486458c66af58ef42c46c7db
MD5 72e6141421660e43b900ded13c681519
BLAKE2b-256 2c6bb968f76c4d8f4fb1d655cd85789e10b625767735721118289e74ff0cde1e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.14-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e57c1b39a6d9fb2bfa7e4acde2c8aa9eac39937b0b6d8308958a4cfd439a6d32
MD5 4fe5ceced2786f97bf7327e858ac056c
BLAKE2b-256 d9052f447a7a2a560b962bb63ea7e9e26e7313badb4c71d22653284d966f96b4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.14-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 70a7d53b5811c2827eceb67b2829cfb5c5c7df0f4c336107c24a4899332bfc21
MD5 ad6fe37535bfdc439453a8d8130d6722
BLAKE2b-256 4e3f0f21374a73b723a601ded937bbf242451a7ac8e8155d929c5baa5e360869

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.14-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 598fa4714cffe13159b5c41d50c9cd1abab8ea4f0a28ac7b9e9f8f00eea47f46
MD5 a6409b5bf03dd6f719298846a41d106b
BLAKE2b-256 d73d8333dc95dda11f316dc9b4e12a71451a99eced660b90341c2af451be9dad

See more details on using hashes here.

Provenance

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