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

Uploaded CPython 3.14Windows x86-64

qhchina-0.1.42-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.42-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.42-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.42-cp313-cp313-win_amd64.whl (600.5 kB view details)

Uploaded CPython 3.13Windows x86-64

qhchina-0.1.42-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.42-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.42-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.42-cp312-cp312-win_amd64.whl (601.6 kB view details)

Uploaded CPython 3.12Windows x86-64

qhchina-0.1.42-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.42-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.42-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.42-cp311-cp311-win_amd64.whl (601.3 kB view details)

Uploaded CPython 3.11Windows x86-64

qhchina-0.1.42-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.42-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.42-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.42.tar.gz.

File metadata

  • Download URL: qhchina-0.1.42.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.42.tar.gz
Algorithm Hash digest
SHA256 5ab2270cbca1e760423e9b192f240fc90543566779405949eb6f823f07ead9aa
MD5 93fbca2d2275280563520e3d4a46e06c
BLAKE2b-256 674b68ecad5e8848d4084afc2d1b6ab141f591e0190583a222c02380b5f1db45

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.42-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 613.9 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.42-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 b3506825d8e9f3d98d939a22bdfb91f8c701711959b5face18bfa9204e14c5bc
MD5 fec1df4cb77019a6968020d5e581e10d
BLAKE2b-256 21d8fd961918694962fba4390135056e3943573b48734991a65c15c4050c7e15

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.42-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5350b4a9e9bf4bf707855326ca006f459cf2c29d2e47f7fffb350080bd193625
MD5 0707240e081c9edc759d57c0e5beef98
BLAKE2b-256 5184417622779e1756d6aec018dd7f63fd26018fd98a7f9d0032efa6e2ad9109

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.42-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 66d806bda51f2b5ced45bd84bb52d5f19e6bd774bb7b29b6cb29b630064fefba
MD5 d370d9cf52f2b390d4a613746a40e7c7
BLAKE2b-256 cb7d3749f9f5aca170ac1dd83d289e0c8be19d807c7907642ddab0c0f30bc3be

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.42-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 7666697c612ae016c08564e98ce62c40951d27af9dd4bdb03ddf85e29f8e4a33
MD5 cc0b1cabe442262bbf2f3d015bf5efbf
BLAKE2b-256 9c35a34a4e4a4be49f80ba059af089e3aa669c56a1dcd722996dab5dedd858c6

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.42-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 600.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.42-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e1fdab98af590148a8634997c7161a5eb9537dc3682d106ca1f2742bb51c70e9
MD5 694d193c5419182b043fad4041ffc298
BLAKE2b-256 e1626bd2128328caa0c81d924bfda50c5f484ad377de250c692271dc490344e8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.42-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5ba2d290ab59d5b48f3bdbb6368ec3ee637f8d3c7520e21b07e389e442b0a3da
MD5 fe3f6493c0044174a786af9f9f04acb2
BLAKE2b-256 492279c504d91c48ee8af16b8e9a8d16af62eceb65f2f5cee036de550d4ce3b2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.42-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 24fda2fb6d495efdebfb5d59b16e66b63b64cce26d7c82621b14509d081885ea
MD5 363fc978779f411ae634c28d33cda704
BLAKE2b-256 7bff23377580074915878fecb92f1f05b655ae1bb05c02a0d7011ae13a39e545

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.42-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 a47aa57cd2715274fbe3bceb959020654baa2c470d05ce11cb4ce8fc1ce9865c
MD5 e7e180c0d11fdb3b0d0b066260274765
BLAKE2b-256 452406ba787d55bdfbc6e427aa657c2d2ad0193924bd7f2e80d87ac8dc830164

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.42-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 601.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.42-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 48c2564e672e2e948062c231d4be533b2a27c0cf72712859a51ed0905bb674d7
MD5 0c3f411723b6057baedfaac37a993e38
BLAKE2b-256 2c36dab9e78256e99db81d0fcbcfe06341adcf3c1882a32ac3c310425a203bee

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.42-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a3110c122cb4dc45f621919a6c11fb95929a8d3df2e812994a065c42d091572b
MD5 1a390cf8d4a5885e0f18ef197418d7bd
BLAKE2b-256 ed17c8704d30f01d81d7301d7cf34c9b262cde06314ac31c38fedabd74f7a46f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.42-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8cc6ecbdc04b90d7d262aa2829a77e800efcef516465b5e43c3c51230c9128bd
MD5 4e557bd9029a307f4d0141b99ec36399
BLAKE2b-256 83b8ebfecd322509053b96e2ab3cdbae3e9a55e49edb125cdb669afb01b1e32d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.42-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 83bad13928c90ed47648dd90789d8ffbd51543b9e134b83484eb238404d5dfab
MD5 0d5cd0e9652ad2e8297ce4698e9264e6
BLAKE2b-256 0fef9f70f442822814ea2ae766b00b974700607810e3158308f2fdba3af22db2

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.42-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 601.3 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.42-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 519551e96ec71a1ce867bc9c7652b7f40f078914eceab315d620a43abe8426c5
MD5 ddd236292401694f4c358b283a897a5b
BLAKE2b-256 e6b82b6f5276aa7b8d1565cefe32518a9be6635dc70cf8b5cb820bed63809d6c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.42-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dbd56345ff69d4d399387fbba4c7c40017b7b1db2c65f668265b54a71573227b
MD5 3089a19059ad054d98e167c12a4c6dff
BLAKE2b-256 840ab10e3a98f95d0b623128d778478b0d3053367beeeb47edcb04fdcb6882d3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.42-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2d9270caa2a98e7ad2270f1c211c04133778d7d882085194d34db1a8b860b79e
MD5 1a53de1fc7da9874fcc784326fad3ee8
BLAKE2b-256 56f216e1e1b404abf2e1dc5eea5508ad4e5ef24d7cff3a4203ef00cc44f6bf50

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.42-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 538eeb2c70e08cf4436c7eb01ccbef88c5d85b2bb4310c943a08b09cdeb5829c
MD5 d964219c6dd8e0c0b48f5fc62d30d8d1
BLAKE2b-256 a116bdbe69ad2ff90b22eff8e7d92b8665bf38267905c213ee26b359db759fdc

See more details on using hashes here.

Provenance

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