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

Documentation

Full documentation and examples: www.qhchina.org/pkg_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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

qhchina-0.0.69-cp314-cp314-win_amd64.whl (31.4 MB view details)

Uploaded CPython 3.14Windows x86-64

qhchina-0.0.69-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (32.9 MB view details)

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

qhchina-0.0.69-cp314-cp314-macosx_11_0_arm64.whl (31.3 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

qhchina-0.0.69-cp314-cp314-macosx_10_15_x86_64.whl (31.3 MB view details)

Uploaded CPython 3.14macOS 10.15+ x86-64

qhchina-0.0.69-cp313-cp313-win_amd64.whl (31.2 MB view details)

Uploaded CPython 3.13Windows x86-64

qhchina-0.0.69-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (32.9 MB view details)

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

qhchina-0.0.69-cp313-cp313-macosx_11_0_arm64.whl (31.3 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

qhchina-0.0.69-cp313-cp313-macosx_10_13_x86_64.whl (31.3 MB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

qhchina-0.0.69-cp313-cp313-macosx_10_13_universal2.whl (31.6 MB view details)

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

qhchina-0.0.69-cp312-cp312-win_amd64.whl (31.2 MB view details)

Uploaded CPython 3.12Windows x86-64

qhchina-0.0.69-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (32.9 MB view details)

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

qhchina-0.0.69-cp312-cp312-macosx_11_0_arm64.whl (31.3 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

qhchina-0.0.69-cp312-cp312-macosx_10_13_x86_64.whl (31.3 MB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

qhchina-0.0.69-cp311-cp311-win_amd64.whl (31.2 MB view details)

Uploaded CPython 3.11Windows x86-64

qhchina-0.0.69-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (32.9 MB view details)

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

qhchina-0.0.69-cp311-cp311-macosx_11_0_arm64.whl (31.3 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

qhchina-0.0.69-cp311-cp311-macosx_10_9_x86_64.whl (31.3 MB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

qhchina-0.0.69-cp310-cp310-win_amd64.whl (31.2 MB view details)

Uploaded CPython 3.10Windows x86-64

qhchina-0.0.69-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (32.8 MB view details)

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

qhchina-0.0.69-cp310-cp310-macosx_11_0_arm64.whl (31.3 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

qhchina-0.0.69-cp310-cp310-macosx_10_9_x86_64.whl (31.3 MB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

Details for the file qhchina-0.0.69-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: qhchina-0.0.69-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 31.4 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for qhchina-0.0.69-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 66690c56c73be5f17b07a12e2918e7f69c5ab18ca8fd69995ecfaecb4aae14de
MD5 e10d411b0a63f80ef3c8685bcea709cc
BLAKE2b-256 e677fd936c3537ce2853ba7aefdea29eedde57ee2a4da3c8c708c23e7db1ff79

See more details on using hashes here.

File details

Details for the file qhchina-0.0.69-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for qhchina-0.0.69-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6251676a79f465903880482783bbfdc683906fc906dd982ff8e2c1fad55db8e4
MD5 67d68a501ac804e85a84d9973033f39a
BLAKE2b-256 82c01277b77b94330c12f39c567b5f1bf03bff8b95c884fd19819837f954fabe

See more details on using hashes here.

File details

Details for the file qhchina-0.0.69-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for qhchina-0.0.69-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 25c0134bdd7c71cb6b942f25639471236942be7a82d840b826420b85a4d9cecc
MD5 328daf2f3570bfad78df8ff20dc8b76f
BLAKE2b-256 29e38188104548b9519cefb5636b2c02e44687820fab2c6414bfd14ff0a86364

See more details on using hashes here.

File details

Details for the file qhchina-0.0.69-cp314-cp314-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for qhchina-0.0.69-cp314-cp314-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 0d024ea98605bfdecac02d5f1f5b87c8a6e3a3482749ec42977dd36ee7293d55
MD5 3883a79d7026ac743726b458480c1052
BLAKE2b-256 de9ff8434524e129aa8f5465081d60bc048722dd86ce16eb9bcf36de81717e75

See more details on using hashes here.

File details

Details for the file qhchina-0.0.69-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: qhchina-0.0.69-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 31.2 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for qhchina-0.0.69-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c51a0f140885e5944504e39646c3c44e62d5139102f200ff18a750d331cab026
MD5 984c709b2f1bd100f9f0f98d6d05e5db
BLAKE2b-256 750de73f6233260650958645170c0c3da7e4f5be138dfb2926368a2e1ec118aa

See more details on using hashes here.

File details

Details for the file qhchina-0.0.69-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for qhchina-0.0.69-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fa4ff53d9a495f543c6a408077f4a44dd87a9cff74fdeb3d67ea24eb741f857f
MD5 b636a633acaf9f7317188eb787f9c94f
BLAKE2b-256 2648acfcb57c89ced68a15db314cc9b58247b784661ae291407acf954b654f41

See more details on using hashes here.

File details

Details for the file qhchina-0.0.69-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for qhchina-0.0.69-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 02355d2a521387cf4ae841c179c82cd5a7f287dd8b50783a19f05b3c2fb0fb96
MD5 cb17cae59182f34f40a0c99ca5cc3f46
BLAKE2b-256 4087c1a50d3356a3fa5a60f56fb55423d5647819da47e97c62b562237f141dec

See more details on using hashes here.

File details

Details for the file qhchina-0.0.69-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for qhchina-0.0.69-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 852e03c44b51986080dd164362fed440a43d76a1bfea4bacaba46c9a92f82105
MD5 78fb4b57293cd8ec6007dc6009ecc819
BLAKE2b-256 36c82029dcd0e89697f69b7a7751f5c66bc989ab390ab64b3d9e6dae03f40519

See more details on using hashes here.

File details

Details for the file qhchina-0.0.69-cp313-cp313-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for qhchina-0.0.69-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 e0157404c25b5130cdb039e7509cbe9b19fc98aa7fec38675c66fede81843404
MD5 e328d18aa11de4dc75a9a7d25dc952f1
BLAKE2b-256 9e65b03bc80d338e0714d1fed629215b4830cc04cda0ad2f39de7f97a6016fd0

See more details on using hashes here.

File details

Details for the file qhchina-0.0.69-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: qhchina-0.0.69-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 31.2 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for qhchina-0.0.69-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5357c47689589b84c0850ce90cbc2bcd50149f51d299e49b9a8816d911516fc0
MD5 f499581f5bf2591d3067223516d41850
BLAKE2b-256 ee2fcbf2d15308f8f8046c5c31c48db86d691747a90013119cd6850edeacafe9

See more details on using hashes here.

File details

Details for the file qhchina-0.0.69-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for qhchina-0.0.69-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 60db7fb27de63404cfc4f7d58405279090d193762e94e4b69c373d32c5e428c2
MD5 656a446b54e8068aa05e16a79743b41b
BLAKE2b-256 a8cdf9f0f5f03ddaed72144f628a86776e44cc46f472b99e63d33ffc1ebb87c9

See more details on using hashes here.

File details

Details for the file qhchina-0.0.69-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for qhchina-0.0.69-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7f0e21a3f6744291ffc7ccc5b4931523ecf3ba312ade640f23f6a72b2afafb71
MD5 14172c486224212cf95f40425591ad7d
BLAKE2b-256 e6c80044040f29a2c7feb66c91939165a9f4a97ea83d9bbba0a3f5f3449e9276

See more details on using hashes here.

File details

Details for the file qhchina-0.0.69-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for qhchina-0.0.69-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 d5e0cb254988e7c2c54430a5870519068ef3d176ffbe7e9b2fba59e6e8c29868
MD5 e3f1a1e8368ef922999827cd5174f45c
BLAKE2b-256 4f5be98cc7d6748ae87f36915a3d3e9e185819f4b73cf44a5a650a047b99bd82

See more details on using hashes here.

File details

Details for the file qhchina-0.0.69-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: qhchina-0.0.69-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 31.2 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for qhchina-0.0.69-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 15561c428dae73608148d726a3303234f5261e67df2a88d27eae13489b214a82
MD5 aa510e4c8e7306c4fb6a8d39e51e4280
BLAKE2b-256 19a345d0aed2d2da128579ab44a60e53e360d796eecbac8014c00a4c4760f65f

See more details on using hashes here.

File details

Details for the file qhchina-0.0.69-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for qhchina-0.0.69-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4bf1c7096563b6fb047f2fd53c5b32038a3b1738d7a5e27bb1bf678e1714021f
MD5 d0777b41e706c80d031f832bfeca820b
BLAKE2b-256 4423a95e204ebb72874c3623dcf134c511f6cd5b25b25862c728454ce12f0a99

See more details on using hashes here.

File details

Details for the file qhchina-0.0.69-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for qhchina-0.0.69-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 69f0899a73e69f5aafac50114d4f820ec5f785559392d7bc60783068aad62db3
MD5 88bddcb3a08f1e113d31b640b998c0c5
BLAKE2b-256 c3035d9fed15407f283dd6c6465acb2bb6f082d91b7aa0358f8485e40d2b57fe

See more details on using hashes here.

File details

Details for the file qhchina-0.0.69-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for qhchina-0.0.69-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9fe08f18fe869a40e8527af6e3174f3bbffb8ec0ed680994a213b63e21d97e2d
MD5 13cc94fbd638bdd82375f43ee97209b7
BLAKE2b-256 5ca8d93a5bfbee1e66809fbdf247f0cec94430e59688e17d9a711908efcc2112

See more details on using hashes here.

File details

Details for the file qhchina-0.0.69-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: qhchina-0.0.69-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 31.2 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for qhchina-0.0.69-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4f97aed0756d0a54508f6ca11b25088faaad9b64f3a4938b2afd32883503bd4e
MD5 9a061f11dba3c708874bb8b39cbc9f11
BLAKE2b-256 eab0989d9a9c3647317b7c2c061bb2ce9162afefd41c87dcb74daa3a4c51ff63

See more details on using hashes here.

File details

Details for the file qhchina-0.0.69-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for qhchina-0.0.69-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9d027ac888eaae3682ceda6e6d6f78a4c39d424ab6889cba5dd97d4c7f085078
MD5 c2dd5d5dc3711800f35a15f9f676a472
BLAKE2b-256 1518fa15643578f4ab7722d74c2e7a78a391dccc0705763bc918cb1b9b900df0

See more details on using hashes here.

File details

Details for the file qhchina-0.0.69-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for qhchina-0.0.69-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 91982fd4805f258c608c464461eadf6219ed774e80aa40dcf1653e43b4e35995
MD5 c567a8acf3e681ef78f96237fee16ebc
BLAKE2b-256 e2f31d89f193b833d44971ce64d3688ab478310d15afea0ec7140cdb84d6e529

See more details on using hashes here.

File details

Details for the file qhchina-0.0.69-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for qhchina-0.0.69-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3858984a74941fc4ce503f1c3e33539ceb686ef9289f152ec6f59c848acbf0de
MD5 dc1d3b56fd829c3d6eae0bf491cf149e
BLAKE2b-256 05abf7841d3933b99bdffb93f77cb2f44d8a2cb8ca67b4f9440ce7e931b62f48

See more details on using hashes here.

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