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.18.tar.gz (744.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.18-cp314-cp314-win_amd64.whl (414.1 kB view details)

Uploaded CPython 3.14Windows x86-64

qhchina-0.1.18-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.0 MB view details)

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

qhchina-0.1.18-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.18-cp314-cp314-macosx_10_15_universal2.whl (718.2 kB view details)

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

qhchina-0.1.18-cp313-cp313-win_amd64.whl (406.0 kB view details)

Uploaded CPython 3.13Windows x86-64

qhchina-0.1.18-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.0 MB view details)

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

qhchina-0.1.18-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.18-cp313-cp313-macosx_10_13_universal2.whl (715.2 kB view details)

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

qhchina-0.1.18-cp312-cp312-win_amd64.whl (406.4 kB view details)

Uploaded CPython 3.12Windows x86-64

qhchina-0.1.18-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.0 MB view details)

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

qhchina-0.1.18-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.0 MB view details)

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

qhchina-0.1.18-cp312-cp312-macosx_10_13_universal2.whl (719.3 kB view details)

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

qhchina-0.1.18-cp311-cp311-win_amd64.whl (406.7 kB view details)

Uploaded CPython 3.11Windows x86-64

qhchina-0.1.18-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (2.0 MB view details)

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

qhchina-0.1.18-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.0 MB view details)

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

qhchina-0.1.18-cp311-cp311-macosx_10_9_universal2.whl (716.2 kB view details)

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

File details

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

File metadata

  • Download URL: qhchina-0.1.18.tar.gz
  • Upload date:
  • Size: 744.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.18.tar.gz
Algorithm Hash digest
SHA256 fd9b4e343a05e862853272df0e33bb91c4ea056f259b67d33156841171b18250
MD5 8b0b9873a10a2cbd596008be2d293112
BLAKE2b-256 ade25203a0431efbdc61b2633042e68558ba0cf02180d691ccada55076bae7b7

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.18-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 414.1 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.18-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 5ed8efafd8b390d50bdb5eebf8b48a4d75f71a69f5e352b5997b38c94d09ddde
MD5 1dae57267cac39da96d930b1ab1af4be
BLAKE2b-256 928f9231a0a41a3354cd26190c6ec1ade8be8cc8ee14686a5b9c46e09eb2b393

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.18-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5562fd7f96886173501f112867baa46868ab7c1d663f81ced987a52b31656cb6
MD5 b897c5bf131ac9f5985fe666ca380f53
BLAKE2b-256 14d756a6001900e8382bc102fd400c73cdc75b0f6e5449691105ee3ba9c61296

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.18-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2fb26eff9d271d8bdc19007c7c3c171f9006dc9ec13c91e1da266102ec7125a0
MD5 d92ea5a34a02cb1e4539c882d2e42246
BLAKE2b-256 7035b08c3a0c3f7b9a9a79ef4263957e67d3fdc5918623ae0162c3aea0452853

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.18-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 2961b1a7f5d05921a11a6aaad01e7e666faacac9e3903341df942fa04cfe0df4
MD5 e02b72840979222239eb542e5823b209
BLAKE2b-256 308e8cbe050d1107931f1f7297452702ea7ddc7141a97b7b2937db248c10dad7

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.18-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 406.0 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.18-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 3eb7251df44f513e691b04ed00ac025c9e90717fd6c940b6f4c05f6f9a132542
MD5 ffbf60203eb0de6312c343a0bcca03dd
BLAKE2b-256 786a27790d963ae48c824e406edab96f4076554d40b04ffafc0a84bb87485fc3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.18-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2e6edc2c642778ba23f502a1134f01bee16c38e0fd93a3e59b705ff06e906aca
MD5 2bd4cddc15203baa48c6f14b44266e46
BLAKE2b-256 046cc421da74b94371954226768855e43d4b8c4a4dcc0b87fb0934159307bf45

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.18-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 9534cddf9eb54354ec08eafa5b1bd5fb4df2dd8472123490a1f296610574acc0
MD5 fd28bd83191a461bbebaf84c21f3cfd1
BLAKE2b-256 2fcbdb833875adc9f4683ee25f9ce32d6b0ddb9fede8cde28db04d8aa0886980

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.18-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 0680429632805ccd7f7eaed8d0a810c8ac9d8f5ec8dd044e00b8b2d19e0df247
MD5 f2e42350ccb5d695abf50a86887d374a
BLAKE2b-256 1a03693cd4d73fd881fefa019eb08516cc3ca7094518ebe399a009adc71c1b2a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.18-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 406.4 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.18-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d97e642660ac1a9c7c0f3d31f939de80dc76c95bc5389145dc3f70647310d036
MD5 c3ba7854d23e578166f2181605f09943
BLAKE2b-256 a23311a2f102d7f92f06505841c69405febf45725019a01cf606ca9125ec105c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.18-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 99e09d21f4810432d030917a49d289da3c5df3b812b679b380d7850f5fc8c5cd
MD5 4814e3bab4f0aed4ba69b88070ee6bd0
BLAKE2b-256 91184ba084fa3a2ac947194962e19398a3178f26ff97d2aa486191f01d5a0dbf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.18-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2912b9f18c8fa3ddc5d354663622f0df4d12b6b802b7f4350d5aa9294b9e97b7
MD5 96dbd6b69e20a82563b6caadc2c9c66f
BLAKE2b-256 8922496f46a11450f3f187376054579296bdbc6d902aa929df130c7ff35378dd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.18-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 b5f0c4c5e793c6cba44fffbba15a5a9c7f986dbd5c8da2720eb44a49a0f351f0
MD5 d1e3a8e6d39bfcb53fa74c4e77d0e24b
BLAKE2b-256 9bdff17ba2143615492e054216ed5154db0c9fe696c0b6a1a4821dbb7099d904

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.18-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 406.7 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.18-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9872f2ec8627a6a8d11718848f4a675c5eb04ec836e32b48b4edbc8995994074
MD5 c5fbc9e4c0debf4e063e0a4a6fbcf9e9
BLAKE2b-256 76485aa973cc965928a7d403e73717148892e4c3abf21cb820265c2836148d14

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.18-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 229596a163f036a0afd5951bd699e4f024af2d0d4ab88a9f50392e3f591a5b20
MD5 9f6bd805e59b7739f072d945ec71c207
BLAKE2b-256 33a373ad13b773f17f0197f2252af0ecf512dc32d0ff287add2646e979f5d8ea

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.18-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 efec3e29bce8765b7da96ddae0b8cbd4c6281fa51d7003ba1be09fe711141ce7
MD5 a434a2682e5355e890f76f1249833753
BLAKE2b-256 e4c51af1525f53339b2c2c3ff7740cfa604864f1c3921a42bbc53781a24b117b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.18-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 6f10317d3ed8dcec13bc14d0a97ace28c5ec12dc645e6efbc342dfa8a8ef786b
MD5 cc17cd8f89d3e92102e080b9babd6c6d
BLAKE2b-256 2796d6f2bcb16c980e3b4a5367d3af17f06a52f92d9df01650979329ec4b965a

See more details on using hashes here.

Provenance

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