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.28.tar.gz (725.6 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.28-cp314-cp314-win_amd64.whl (407.3 kB view details)

Uploaded CPython 3.14Windows x86-64

qhchina-0.1.28-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.28-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.0 MB view details)

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

qhchina-0.1.28-cp314-cp314-macosx_10_15_universal2.whl (713.5 kB view details)

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

qhchina-0.1.28-cp313-cp313-win_amd64.whl (399.3 kB view details)

Uploaded CPython 3.13Windows x86-64

qhchina-0.1.28-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.28-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (2.0 MB view details)

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

qhchina-0.1.28-cp313-cp313-macosx_10_13_universal2.whl (709.5 kB view details)

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

qhchina-0.1.28-cp312-cp312-win_amd64.whl (399.9 kB view details)

Uploaded CPython 3.12Windows x86-64

qhchina-0.1.28-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.28-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.28-cp312-cp312-macosx_10_13_universal2.whl (714.0 kB view details)

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

qhchina-0.1.28-cp311-cp311-win_amd64.whl (399.5 kB view details)

Uploaded CPython 3.11Windows x86-64

qhchina-0.1.28-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.28-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.28-cp311-cp311-macosx_10_9_universal2.whl (710.6 kB view details)

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

File details

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

File metadata

  • Download URL: qhchina-0.1.28.tar.gz
  • Upload date:
  • Size: 725.6 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.28.tar.gz
Algorithm Hash digest
SHA256 5e04f83af5bf6b88c8520cd47d6d9455e0de6552dd5fca6613cad0e7a4437559
MD5 9b1c055809f5c93b0913cdb135006dfd
BLAKE2b-256 d8aada467890af7c8a9162bebf3421adc66b2e7d81168bf872ee56bdbef8deca

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.28-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 407.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.28-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 e096c0c6e04f8cc49b6da1ae4a3f08ac3b5148ac5eeac610a931807a262946f8
MD5 918dbba3c07553cd9f0d0dfdb25b2751
BLAKE2b-256 798444e32114d522ca3aecd140c5ddb7344c84b003b8f673845aea156f86a920

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.28-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5c9e8af13d18a6e6ed1eaebb618960e0a1496e133a2a53eec291733cddb4a7b1
MD5 9f7200c4e471406c222711530442d507
BLAKE2b-256 62f7e6775f62e59c5b0bb2a480317100cfac603d1e94ac71510012d2c1161933

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.28-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c3091e9e38539b7f2ad9e268dcb0209d6358b98ef6e4861e2eebf5ba19b5866e
MD5 2245ac5c65829b98688e8a4097826c7b
BLAKE2b-256 af129f2c31d579012a33f6f2c234c3833742a19610d91cbfaba18e549c737c4c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.28-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 97a87fe222fc5a46855554fe6f2a19b8c920932e5e65a5021952ef65141232e3
MD5 fd68f69477252f3ded4e343e744e5285
BLAKE2b-256 e84804fa9b2fec18ffa14cc15a04514014482ab7ec922059154855219c3db5d9

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.28-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 399.3 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.28-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e7930768c1d3928fbbb9cdd9ac493d6fd2af0d8452861c9dc7ae1083884e2579
MD5 f96daba91872f73401ce8473af3bc09e
BLAKE2b-256 92e68e0d3e25a82d84759fbacd003443a1c2fac119caad018beb3b36e6c32558

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.28-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 90f2d4eceeba6c37e5081134180fb9d6cbb737c68b28dffe9825526aeae2ef35
MD5 09b543872e10b8a8e286c55077531581
BLAKE2b-256 1c0c7285133f38914cbd4d21eca114995de8589c3b151f42d2544006552781fc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.28-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 27e0db66cd99df9b064f68f0f0b28bafda41ede889e2765316415e0ebb678f42
MD5 542a5577baec4f356ae9ebc0ea2ea340
BLAKE2b-256 2005e1e6c507ca0ff726341c7708126ba422bc41e5287a634fe7b60955cd6b6c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.28-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 61b93b5c22c9073470036d315d3de832673917c4a373bea5125bf088f402b032
MD5 13f3ceb1eb08b486fb9bb8abf03cbc1a
BLAKE2b-256 ad9b6d89e50102554b0753bb5cc38a96b71ee0583b80b6b21192195a0a63db71

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.28-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 399.9 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.28-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f1d1e5ee5ad815eefa6d9a7ee00e11d52f551c9d10ed9b2d7649f07dcf9a5e3f
MD5 88c1c62daf780c998ef14f83f2fb2ce9
BLAKE2b-256 7bce84876393cf1a95123046f215221c6af3f639edb72e4219e0036ae4ed471a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.28-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f1595d797c0142ddd153c8f7d3baecf7f19b15c7ce089ebfd050d9ae727bb9e5
MD5 3544dcd7637c675a18b92f4a037661e5
BLAKE2b-256 46939440aa25dfb1440fb5e9efdf428e5d772fd1ef03a22c53136650f3dc35de

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.28-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5e591b560aa341de43925ad6ba5658e8f496fbe711b5a1208d6f1d8ea5a50806
MD5 6928db3c62da169c239d730da37c0307
BLAKE2b-256 8b58ba892cb088ea5233fd31894d7e23c8e5fa276389dfe84d6a7979d86144f9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.28-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 ef26015aca237bc986d1e7da1fed8c28bb250e7761db3650daae59d7fa01ee53
MD5 ae6b068697ab57d01cb61f99c2dc3dc5
BLAKE2b-256 ff07c5511a7dd6972e73c2d9607137a53fd18673043c6bb6919dabe338866117

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.28-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 399.5 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.28-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 33486f89b3ce5a49b4db0a533c62f84f2bd028c73260410b2673b24027a9eb76
MD5 007bcb1b05357dd126e9f6f2e68d7d1d
BLAKE2b-256 fb7a9f890d20d6254d71fcad65010057a5c192976ca1d32aa03ebb41f3174125

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.28-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bfef0d7fd85841d4562012978f0d3c06cd8253fbb67fa530786df5066a4d2338
MD5 915bac9568e7696a9b49cd302a47ba67
BLAKE2b-256 c03ccc24b9a128bcb9fe1e0619f879865d3fd5fdd25e97465b8967bc14324e94

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.28-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 8fa57f8852033b28c1a770087464699f210a9a8741585465700fb1582a7a8085
MD5 4ff7a957ea12ff44b73439284fd287e8
BLAKE2b-256 38f5a7d4fc364759a7e5df27cbac6a2120d901de0df174844319d398ef5ef8ce

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.28-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 cd30b150fdb917e19674719940c9e66fa3e49616f4fad48f6651745ad911a9d5
MD5 b93a7b5597ba34c484ee74f94d3c5009
BLAKE2b-256 595cf7b98808711b5f6a919cbd125882c8ebd0f56b47f2731d31796e141a6832

See more details on using hashes here.

Provenance

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