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

Uploaded CPython 3.14Windows x86-64

qhchina-0.1.15-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.15-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.15-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.15-cp313-cp313-win_amd64.whl (31.1 MB view details)

Uploaded CPython 3.13Windows x86-64

qhchina-0.1.15-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (32.7 MB view details)

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

qhchina-0.1.15-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.15-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.15-cp312-cp312-win_amd64.whl (31.1 MB view details)

Uploaded CPython 3.12Windows x86-64

qhchina-0.1.15-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (32.7 MB view details)

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

qhchina-0.1.15-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.15-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.15-cp311-cp311-win_amd64.whl (31.1 MB view details)

Uploaded CPython 3.11Windows x86-64

qhchina-0.1.15-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (32.7 MB view details)

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

qhchina-0.1.15-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (32.7 MB view details)

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

qhchina-0.1.15-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.15.tar.gz.

File metadata

  • Download URL: qhchina-0.1.15.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.15.tar.gz
Algorithm Hash digest
SHA256 380899af5a35f0662be50c5230d53cd62562b31406f99ca58814b0ee33ed9f62
MD5 44d31c454d028b2c09e860e952e0f46a
BLAKE2b-256 3c3121136265af28b09dd4db2dc24cb4d8f3da296bffe83abd4d84ff232ab5db

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.15-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.15-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 6dfe76da51d6b6cce9e633a4a9b7da0a539635e35dce16512b626cabf4afc5e8
MD5 a6da821b0048c54c23d4ead28ae1fb9e
BLAKE2b-256 c4125019a3ec06c783a3099228a01eefda236ae4915da7fed15da5bd9626235b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.15-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a7ab740ad0c99331e71db19d87f3823a00e82bd8268def913be42868a35f8857
MD5 3a288e74edaac9235b71c66e3c96eb25
BLAKE2b-256 2333ac80a92d6260ee088c7e5e9966c00948c6e39d55042711843d384e2f936c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.15-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e3fc366f283760c8211428220fd8863631fd1ad4f3abd281d0576928fa36f8da
MD5 3911d669296a8ac36d25ba2b978a3132
BLAKE2b-256 55a8860f7a40b9438a42ef1e93517040afe0c18bd68cddbc39b260c9ce39f948

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.15-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 d8bba44a22785641ec1eb06c513e77f6e5dbf23165a0671b2cb663ef3014bbde
MD5 2ceffc94cc2791999356264e3afd5cf8
BLAKE2b-256 0e01926b813910ab8285efaa2385769cf48e308f106412c0fe0e20106799a160

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.15-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 31.1 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.15-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 475b6bb2787d7eed2cd6dcf1ac8b9114efed33fd133900b08ea5f6c0c23a6477
MD5 cbaa1e3fb52b4bff6e04203c81f64a1e
BLAKE2b-256 bd4c9f4fddbc2974ebe6503b961eb4ffdfbc3f514bdba1e95b5cf334f42d4f1c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.15-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 43f4a62ad0667ca3f4fcef368f702e284417cb3e0972a86a5dd5de3c5db8d3bc
MD5 257e1cda99c2914ef21a9b57024bf985
BLAKE2b-256 68d1a99a79d49325ddce3bddb95ccf5fe71ba8c2d59f66a04a5457eb1d989bb1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.15-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 5aabb287384e4dc7f5e21dff41194fa5aca9f467487ac7c6e7f549bfcc14bacc
MD5 c36cb3b7dc9589f4459a08f88b3d232a
BLAKE2b-256 03dbcfb68779d8cd251ac50668af557272ada97b1968f60881b2e5ed9143ad36

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.15-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 74259099e5cd566a9ae8e13872fefb4aee7653a81882f27f9482f576d3ae3a01
MD5 8eb23ac56d3507a046c19297074b3645
BLAKE2b-256 13ddcf51a143853894c507ff8dba6b582e4ada818cacc725ac140751d93c739c

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.15-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 31.1 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.15-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 818adad6a570cdb0eb4dafc092a62edeba748dbc4e2e503b14eb3c7640c90279
MD5 6fe415004f61328e2781f097b81f1a65
BLAKE2b-256 fe7b2076658d3e3e21c5308914518cc76e14216ff35f4989fbc5c5417f0e8748

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.15-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f851dc2e6051684602a48dd0d31af0c645519709701d8e5e895a6295263171c4
MD5 8337d1b9ccb4d075c0b344d706f303d7
BLAKE2b-256 0801d5fa36cba89807309efd50f37be1fc213de9e1ee1d1595256f4fceae7a6f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.15-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c87cdbd895ba51de7533e8ebbbdb5bdc3b73e2996f94f6373c72b889ed67a403
MD5 e95a8b9b7e84e9bde83f1cc3a5fa7714
BLAKE2b-256 06c67daf5c24ba650826fb9d046fc9c2a6988c9df106b94784696915aaadfb7c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.15-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 c01bba2397df78cb1d1d6bf7606d5ed0094b0706b7cdcba70e92d85ea4bec407
MD5 8b49986a2bc0aab876bc113a8a8907f5
BLAKE2b-256 76ae17ab1536b475048e8bc88a40c4dc27d2167eab55d74eee52c4caa192dce6

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.15-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 31.1 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.15-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f4e5db24e59d82740a644afffc73af27e5a9336bb96d431f9383705943aca958
MD5 c7c01395f574252822ed643b9f6ee4c6
BLAKE2b-256 b7a2003b839eb8d81ec1cbc98582e3d64931f78dd284f5d71ef7db79b784d9f5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.15-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bb35258ca55c70f74f8f969a08dc8ca276540403ecf7a6fdf165cd74f88882b4
MD5 26b83fd0c662c4e5fac9fb0334ac9e43
BLAKE2b-256 7ccacbff5d52acd710b71a9991d985f6157426890bfc647ab5ef1c62ef228276

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.15-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e50874456b9bf21c55406e8c0db565fa6e4308bc4b862efbbd93b349380045d9
MD5 0deb0b9c60312ac4e40542a28fa9edc7
BLAKE2b-256 34a82c9469a505134d58b35615dbe96a5a12d95a2f4c759af75cedab1cad3709

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.15-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 49b4e8a93a2a1d95532230abb9e294bd51c72af6dbd17db9fbbcc7940a2d14cf
MD5 f36b7e094713ae6cdacd5f5b0ad354f1
BLAKE2b-256 c0d8a682ef0897430f33b2f829d12b97c6b8dae9ac8ac65e22d3ff3b7f64f5be

See more details on using hashes here.

Provenance

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