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

Uploaded CPython 3.14Windows x86-64

qhchina-0.1.6-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.6-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.6-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.6-cp313-cp313-win_amd64.whl (31.0 MB view details)

Uploaded CPython 3.13Windows x86-64

qhchina-0.1.6-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (32.6 MB view details)

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

qhchina-0.1.6-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.6-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.6-cp312-cp312-win_amd64.whl (31.0 MB view details)

Uploaded CPython 3.12Windows x86-64

qhchina-0.1.6-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (32.6 MB view details)

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

qhchina-0.1.6-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.6-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.6-cp311-cp311-win_amd64.whl (31.0 MB view details)

Uploaded CPython 3.11Windows x86-64

qhchina-0.1.6-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (32.6 MB view details)

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

qhchina-0.1.6-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.6-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.6.tar.gz.

File metadata

  • Download URL: qhchina-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 b92fa93a8a86474f511c6449ff7e2cb34e8c4d7a8c796da30166a297c6162d52
MD5 e8366eaf2f9a0132f767f051dcde7090
BLAKE2b-256 c32b78cfd4bdcdcbd81d55f85b65ac2e8f165d7326c6ea7cef9febd65d74d8d1

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.6-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.6-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 7ea7be6f85042ca58c3eeff6187503e05711375810ac9676eeaf45b88fe3a965
MD5 382da590152278e8d53d4409d121a082
BLAKE2b-256 a5e3e23cab75eb3c10a60cf094bc5dbac1cd5496fdac2930f4cad3ff885a4063

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.6-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1854772a37fa011eb77dbff163f2881224f91d42fbd0560816ba05d424cc252e
MD5 84df9ec566ec4fa0c11f1c83b4b10975
BLAKE2b-256 b28181063ec1334ee4d91c009002eaef68f6ca45ff7e33d7220c53758d049d06

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.6-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b4d5711a9f282e52af5e29644f0ab2e428532db023f30646fff60044d784d887
MD5 1bbb46df183e33eeeb2a0b9402e71806
BLAKE2b-256 669ba282cb4a2263f48ac361888444e349cb488471f3c030ad4ca1b5d46c0531

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.6-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 b0aa8e789225e3e75125248e7ef92d5188ba1021db7c2929857402796805b04a
MD5 304fc7dbe876c0621f1dde8cd06eced6
BLAKE2b-256 5d68b8b5c44bd744302aaee39a0b01b21d4b677d7fb2841b79b44bfb846b854e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.6-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 31.0 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.6-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 d273d27b2b123031b63ff02f503d505512610c29c9fbef0206a7f1e869854e59
MD5 49a351d2f21bd9900171eaa1e0d5b27a
BLAKE2b-256 8e6b5cf145281dc61ac8585ceb2f1cc408f5fa4dfb2c432bb3d5b327097535ee

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.6-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cb1baafc901436b41a42335ef013d1545a8c383ac1c2ba9d43882e8d54669ae2
MD5 ec60c0100e755dd79a71131329ec9b25
BLAKE2b-256 01fb50fecce1e19cc357baa549345ab38282d4b7b073483c522a8e6ac533c1fa

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.6-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 448e0ea213ebfe9f8af1d887656bb3872dfaa3afe130f87e23becd557d662c91
MD5 334f506702aa34ae4b0b34c0fc9f1aed
BLAKE2b-256 dd0ba4c5670e2bc9d57252573639600356718be18df805c049df5e1f5e3d2c66

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.6-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 e1a79d18e261dc8c1688bd74f0af29dbb1b640c9825bbd2aad08238395885809
MD5 68783bedc51c3e7ff84b57dbf6822fc9
BLAKE2b-256 7a471538e18c767706440d78b869f57966caabde3386180fe0e895ffa136446d

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.6-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 31.0 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.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5db7f460834200257fa9af7b729448bb30bd4862a78823e607310ac178570d94
MD5 4c58727c979758c6e940c67eb07c706b
BLAKE2b-256 b80bb0a9bc691795f25d7fe916518700527f77eabb4ba6dc813c4379a7b1e330

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.6-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 35e7c3c94a0f0d74425a8420544dbf0b9484c8e1f3b507cf9675311af94aa8a0
MD5 d3fcaf053a2bc562ab43b5e8015665e8
BLAKE2b-256 8e7d7bf9c730c8f9b58e0c1ff20008a4425eeaee7505bf705519a4b69cefc59a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.6-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 a5dfde587df4584854cd7a5f0373ca3ecd213afea98b81ac1286c0dd92b99920
MD5 92518ede6212cc8b3472f9a8e67b35c9
BLAKE2b-256 c480e2afb493280ac25dffcb36f5a7297408a410c50e3086c9923b57c75b10ae

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.6-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 bef1338e44220d979000401cc9ce86dc22f2c87cbf40b15517785a192ae8c6dd
MD5 6c9c6f385b34cd5c717ef4ea2baa0f68
BLAKE2b-256 455f9b85a9f14cd27f6cb1f80a49ec91ffcd9877c20bbe25f7b54846b640ccc2

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.6-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 31.0 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.6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 91ab3aff1a03652e043f0262a8b1130b9c0d843ed798fb1dd9861fb3c6065484
MD5 42b9eb14550cf01822408bf39dc6a339
BLAKE2b-256 952eeb76f605d72bb943e48c7547a2b0d00bfeca8800e8f418559bd61a78bd2b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.6-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 494ff6c075062a99dff4911b857218b0333c3e79840796aab8f761417633d043
MD5 1f1298cfb23d3173941f9e758dc3c1ad
BLAKE2b-256 6aa804f99034eef3a01d334b4b0cb8702fcdb69e7d72ab3b4f3388c38e91148f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.6-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 36843ada7bac4a26bd1863dc225c2a191fe6e0d51a52f5cb0788dd8acf8af99e
MD5 e9bf74887cb019b35b1bea64ee4de8a1
BLAKE2b-256 8b04dd3d0aaa3b9932595e49755091bfaa185374100d99f5769363fa4a9bb594

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.6-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 dcefe7ffb819696dbbc74a6152d077985a2d0504eb4c6ee91230710db6a279b5
MD5 f669eb49f3d628ce768f72a02692d2e9
BLAKE2b-256 1fbcda567095094bab54061c33ab9cd8494a09a57ce608e1c48b12b178fdde7a

See more details on using hashes here.

Provenance

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