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

Uploaded CPython 3.14Windows x86-64

qhchina-0.1.41-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.41-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.41-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.41-cp313-cp313-win_amd64.whl (594.0 kB view details)

Uploaded CPython 3.13Windows x86-64

qhchina-0.1.41-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.41-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.41-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.41-cp312-cp312-win_amd64.whl (595.1 kB view details)

Uploaded CPython 3.12Windows x86-64

qhchina-0.1.41-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.41-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.41-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.41-cp311-cp311-win_amd64.whl (594.8 kB view details)

Uploaded CPython 3.11Windows x86-64

qhchina-0.1.41-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.41-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.41-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.41.tar.gz.

File metadata

  • Download URL: qhchina-0.1.41.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.41.tar.gz
Algorithm Hash digest
SHA256 44cb4641b88804d4eb27c8af2a5ba2e31b0d1722b8dcbf68b30cd0c6196a99d4
MD5 240b1ca2a38acfd79c7f985d9aed2b41
BLAKE2b-256 69b8cbd1713327a9be2d64c937dc60bb08f9b90b148073412473fd554834e2c8

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.41-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 607.3 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.41-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 f877f3ab629fbcaad5f518c2ef5e2aca73984f79af462f3c5067692e93a626a0
MD5 7e7135f525c50c1e5dbcbb9de747b2b2
BLAKE2b-256 f86782cd7424447b8b4cf5b08bcd338c60e079eabc30635362c3aa3d918c5100

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.41-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8880b3ff10e24273f39afce1e02508c26150cc3eac4a6015752fb163eaad8112
MD5 48360f00930f99c2909cf5618219a3da
BLAKE2b-256 d1dab9f45566bd82351124a2a0a3b58f8fc28e94c0fc26dd717dd41579b0b7c2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.41-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 cf5c736a3a84771db218e60be04664501bd7d761e2beb9843bef3e1ee8a1807b
MD5 6002d44e1a196b31330e13a926bd238e
BLAKE2b-256 b56427067581ee448330b7a92fb97aa6b0c09bb0b98156cbeb79c3aab2ff74c2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.41-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 dcf40789bbc823e6c930f8441000a3a3101b5f7c672b29fdee4d56f5a32f0ab5
MD5 639fda34203120311cc90652a661590a
BLAKE2b-256 debcec4c7697e3810d8776345f86d78c6ef746751172f00afc35392a126c449a

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.41-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 594.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.41-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 4798f3f989a7309f952261514f01d62a168900cf2b4b1c86af6e90e1a2444c1e
MD5 c21b28e3824637d620919e334fa9b8df
BLAKE2b-256 d2576f57efba297dee95f90fe4202ccedfe09ae79e0b37f9bdd3377031cfa16f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.41-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8063a2aab3a0d2aeeb6f901cbce126113602281c01a72fc63b0e9dce4437cd8f
MD5 21e07884ebe659ce8e1ae39dee05f335
BLAKE2b-256 fd736dc6ed40743035879b6614623a7e5d3a469bdfb6f9a8ee5f970f8e93aed9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.41-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 143de608777a4af515bcf8ba256cbadaac7ea6931a611c0e537f2a3718e585c4
MD5 da6291357777b77aaf1828d8611b75c9
BLAKE2b-256 57ab8623a829c2f1bfc129c45a5d7e3cd84b84dc788daa1edec863436818a8d9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.41-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 f8fcda68db0944df6c8767856d7169607a620d883c7c165438d39ec8f694df05
MD5 47c1def767428a35c76a0864f8d7812f
BLAKE2b-256 9674df7729737e444ce72fcf04f510a760b6cc60c9dd43caf7e57303dae7aa56

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.41-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 595.1 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.41-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7e11cb4a0ea28d226c2d90a0596a81cd25f023fb3f5310e8b03af1867501fc60
MD5 a3a36553c805828c438d39a24f541436
BLAKE2b-256 ab5c3fc58f47bf3a76ec5e8629db6de391541dce09dd6fded3442f07274b2695

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.41-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0c3a144cc0c892b78761b0e4b2a9e2c49e5333254630eb4926be3f6fc332fefb
MD5 4f450e039587079ddb054d43b4c53ade
BLAKE2b-256 a7ac7421b2a87ec173e0a1bf3ede509ef2f07dd1fc130642c1a309afd8e127be

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.41-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 31a288e9bb54df28063e9394a6a9026be488a9d4d5a867d26e703d07da21e21b
MD5 4d93428cb331186f6ba96cfe32ed72ed
BLAKE2b-256 77b8d0f0dad2ba3b3928aa4a9f2c4c0c1ee09705fc64da7a3c71f915e2827d3d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.41-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 5af43ede14bec6988ce20805a95e5523e08baa2203d6a1af659ad33dfa9f7bd7
MD5 12c5a62b211a166a2a5dffb6d2a76237
BLAKE2b-256 ff5ef666cb156b451cc5235fb2f7477a8bc34fc9363011d5cc939034cc93c5ab

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.41-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 594.8 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.41-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f195a7a70c67739cfe74b6047570553530af05c15e39ceb9b41f1532c8fdb942
MD5 0ed87dbd28ecf25608dbf1957406ae04
BLAKE2b-256 e281c969b3fa99fa1382cf6fd1943e36da49d75837c2842bc98fa23de63d70bf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.41-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9db8e5511641abf00e509a65cb4d0d921674d8c54fdd00fd379b5fecf7e616c7
MD5 f0393efa02b7043a5a552c31ef7e6369
BLAKE2b-256 d7e6f2ddb2fc12f2a90816502c2e020dc28a23cb1ad3a9371e8b9c771743675d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.41-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 010c0511c349fbabe1f36b3af82457f28089f1b4516d0bd92b20b531a13464fa
MD5 8e1df0758252581bda1242f47b90c56d
BLAKE2b-256 cc3000df8daf7400b7c84c0ed3440af512b08a4128fab1fdeb26338efa368dbf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.41-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 f11dc817129a0217b3548b58385449665320350b1294cbd76ca5f54635212d7e
MD5 81fb7e88c5827e9723522d5ec7cf25e5
BLAKE2b-256 dde4a2dc8d3ac3d029616fd79d552d8fce4761d0d255bf6f2276b24e0b7fdb6c

See more details on using hashes here.

Provenance

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