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

Uploaded CPython 3.14Windows x86-64

qhchina-0.1.39-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.39-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.39-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.39-cp313-cp313-win_amd64.whl (592.6 kB view details)

Uploaded CPython 3.13Windows x86-64

qhchina-0.1.39-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.39-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.39-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.39-cp312-cp312-win_amd64.whl (593.7 kB view details)

Uploaded CPython 3.12Windows x86-64

qhchina-0.1.39-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.39-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.39-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.39-cp311-cp311-win_amd64.whl (593.4 kB view details)

Uploaded CPython 3.11Windows x86-64

qhchina-0.1.39-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.39-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.39-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.39.tar.gz.

File metadata

  • Download URL: qhchina-0.1.39.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.39.tar.gz
Algorithm Hash digest
SHA256 5f955cfecbd264918690e81d92ce3765bb4e5dc28769b7107a8e4d5fefdb9a0b
MD5 e69e803186d541911915b18f2409a5a5
BLAKE2b-256 5c57e0d272dfea34e4055d11cebf1ceedc564baa9bc6a3632b18143a2d2cdd6d

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.39-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 605.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.39-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 412c069f6e93cbe0c45a30960ab0faa22ac115c86d74fb3b9bbec2ef67aa49d6
MD5 5ff3e7e58b7b68931801087daa819fac
BLAKE2b-256 a16196233041cd9bfc9c9dd3a2d656a1b2fa09b21d5403dd99fc838ba756e8ca

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.39-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a6096828a3cda0288bb1b8f1e628716642fa5472e0c8065297d46e8e3ce2cc7f
MD5 f35b2fbe05a73818e858ed2c84f3863e
BLAKE2b-256 9e4e5db04aee27ca3b126bde383baa2845779c39b8753dbddc18ed8e93e4fc57

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.39-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6132feb42840ec05da961c5bd1ab2c1d94cf3ffddb6e0bba31527cb2485be7a1
MD5 09756d6c66f81e1e94317866a7f26479
BLAKE2b-256 44a6565dc52b3b6cffcdada05c62b9f3e2c76c08dd0907e4b047abe0ed8827c8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.39-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 0c6288d4eebef009c0d2833dbc98f9505c9c3c39ca3b5072bc76f0bf4b943131
MD5 7fdd22b4b98dc56f38049e3bfef365b1
BLAKE2b-256 6e3b9662e85a79fb64463eac73b46d2dca4175bd619323ff5ed3b21d031ef875

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.39-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 592.6 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.39-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 1b4f25a7f2d76615832f98484bee23b5469301f7fa54ab0f54bf988141a8e2a3
MD5 aa3bfd0e566f34f079f95ab8bfca476e
BLAKE2b-256 90138393f39fdfbbf59ed7ca4aa140251e52f69f642d15dc4d63702c40d4cbda

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.39-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2e00add92430c69f881bfe4ad61b0c0a4db6af2098b739335b7546884e5563c7
MD5 03401d681e5fb1f1b7ba5d1f0cc25a39
BLAKE2b-256 0a4461fa6dcc1e14fe285fdff55d6a74c764ed9a7116055b5273251a0b1b71a7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.39-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 919daec82b06ce4fef24726837f580637aa9f66ba7ea805380c112d5dbe6f06b
MD5 1b80e213b81637dcf8cccf71b9198bf4
BLAKE2b-256 e02b2517e4d5569378e5b75075cb0cbf31df10487f56e9b5d154d047c22dc51e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.39-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 b5ce2f42dfe3187f535f3d65c7702cfea5e421fe0268153526cdf176742a5f6f
MD5 f175a2e72ff40055f5440adc313cc0cd
BLAKE2b-256 22abb171156b2a2752fb2deab03b04cfc71a2421d26c9f5353461e7dc5a08709

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.39-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 593.7 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.39-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 13794d581c36656680f17f9ad17ecd5afc6782461720d0cd4d4694596033d507
MD5 e2791dbdbcad27349f263423b207c941
BLAKE2b-256 c3fef7872c3057315d3d0b23388adb5956f4a8399aa562ba21dd560b090f06b4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.39-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9460de3732df3e90d492b6dae3c0f8888571fbc58adac66fc9ec27e18f95d419
MD5 f3fc27ce5fd30b27f276149fa1501bfb
BLAKE2b-256 ea33fe27d993a932f99f77da879e52113af722a926937e57c9d589e60181a0f3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.39-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d86b9d9c2a3aa57c3246155facee120dbc654f3c90290abdf65cb041eb31b6cd
MD5 7289b9d341ca637ad2d898ac1e9c542c
BLAKE2b-256 953e764c52166e1723fe5021721e314734e23d7f262d6a228890edf5a67076c3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.39-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 06dc3a8423a6721e76dedfe5adbbce8fbc0944f6d8dd354d362a632715c99493
MD5 76ae9c6c4d1f11eb3a0bc584e20db804
BLAKE2b-256 3a6009d20bbd291262e6ae2d0e76d9247a55b90b2cf5433c9701cb935b602038

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.39-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 593.4 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.39-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fbf355010eb88129e90a6d8ebb73373c9f1ed327ede333557fc32415ba57cee6
MD5 c6940228d2c2a481252ef8702a4de506
BLAKE2b-256 2611c1b537eb4b68f6850aed2c6ed4f372ebc23b8e94ef9dca50ba0b746dab7d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.39-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 db64ae5f699019293bc466a2c3aa8d4dc80bd13d112ecaa6194a150f0c876070
MD5 bf21e8beaa3e2ec4c4e7e11918aec929
BLAKE2b-256 64df3bc07fc4ff70782c5c73dfcf54c4fdc52994e180cb1c5136a0a2637380c2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.39-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 254561b8e4897e1ea8df667e6fa26a7ce29c03e78a907e742291bb19eff072be
MD5 ed54a9f251e421753a315ca0cf98f6f6
BLAKE2b-256 4a4a1472433e98ee5dc325d74f0a79ec1d82d52ee9b9fad3849ad12162a3f1c5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.39-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 a82b3848767c0617839a1473c22619d70d7573a3b27b978224dddd4062b895be
MD5 a79d94488dec4cb6ad4634e8fc86ba23
BLAKE2b-256 8c6534058a62a523411f6105a3929032753bfb4fd8dd60bbd304ebf68e588c75

See more details on using hashes here.

Provenance

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