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.21.tar.gz (732.1 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.21-cp314-cp314-win_amd64.whl (406.8 kB view details)

Uploaded CPython 3.14Windows x86-64

qhchina-0.1.21-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.21-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (1.9 MB view details)

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

qhchina-0.1.21-cp314-cp314-macosx_10_15_universal2.whl (710.9 kB view details)

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

qhchina-0.1.21-cp313-cp313-win_amd64.whl (398.6 kB view details)

Uploaded CPython 3.13Windows x86-64

qhchina-0.1.21-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.21-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl (1.9 MB view details)

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

qhchina-0.1.21-cp313-cp313-macosx_10_13_universal2.whl (707.9 kB view details)

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

qhchina-0.1.21-cp312-cp312-win_amd64.whl (399.0 kB view details)

Uploaded CPython 3.12Windows x86-64

qhchina-0.1.21-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.21-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.21-cp312-cp312-macosx_10_13_universal2.whl (711.9 kB view details)

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

qhchina-0.1.21-cp311-cp311-win_amd64.whl (399.3 kB view details)

Uploaded CPython 3.11Windows x86-64

qhchina-0.1.21-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.21-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.21-cp311-cp311-macosx_10_9_universal2.whl (708.9 kB view details)

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

File details

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

File metadata

  • Download URL: qhchina-0.1.21.tar.gz
  • Upload date:
  • Size: 732.1 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.21.tar.gz
Algorithm Hash digest
SHA256 2ea9aff1fa9445b8c26f8521e66306efab0b4f40b238febbd057ae0df2ad1e5f
MD5 578e3b4a75d2a572c2ad8b6dd26cc423
BLAKE2b-256 c64b2847cc07619833ba49f19fe99064cea572438ff790bb8427443850151eea

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.21-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 406.8 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.21-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 5a26490ac5b3667326958b615f7627c333e91b3392bf72b3ffc793aa7c2f8825
MD5 f24e74f00797546209ad1b815c870157
BLAKE2b-256 da8c2da0c8886a6b56ef1a312aef866a4289de792523fc558966432a86b5e847

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.21-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b849f4b1791e39682a6ca972113a51b8dc4a6dc48e548160f5dd84ae623cb97f
MD5 4687fdb29c24176f54568c1e4a4f03f7
BLAKE2b-256 9f3851f87fd42c72a400ff342d51df9160a2b35b000955c74d49caf5fec4e299

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.21-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3c08f6c34a027bf614248ccc565f702f4fbe00f481b822f4fe691b092a6caacb
MD5 d896e212e8a5cf6310a6557876390d59
BLAKE2b-256 4fe5060217859ade6cd54ba57d73f5f4a3461bc67bd7374a6705766cf1fb1137

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.21-cp314-cp314-macosx_10_15_universal2.whl
Algorithm Hash digest
SHA256 27bf0dd2c2f5575598f632b55a9b9b310aa3c2a258b50a1774a959321ea1aeb3
MD5 4942abfe6e209a2d96ccce930dc2e737
BLAKE2b-256 f0a282e5f17a4c1e5850ef276f222c3ab26cb3ba84ff75793384d6f221828cad

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.21-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 398.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.21-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 89ae08b22542f5a2b3406e2c58f49e69ae532e236c0deafd6bd38c33751d4db3
MD5 9726e3a0cd5bc91e060140eddc7c3b05
BLAKE2b-256 81f893e8922296698c9927474851302c773b3f1b39b05b4e3d3e3ed1310bc039

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.21-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 787f063375b1b4164e4ec3875cf723fd2cf2cb9f7c53336b492da12cf0a8338f
MD5 1721fb38d3d1a0b9aaf0f50a27464847
BLAKE2b-256 63f465d78d4bdb42d2a75412eca9849077a489b30c32dcbb00314ef4b6106953

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.21-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 51b977201a77f4b7cd9d789a39bcba306658b5cd991d77d5bcd9a4d02724913b
MD5 2ad58d00adaf037e7c28d149c52bd350
BLAKE2b-256 409da3fbdd75eaf752d844f13e68e7383e5680feeeb25e47380a14dc82000a6a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.21-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 23fbd21b14a43f2a0aca6e3e934718e3666d6bc8c129d476ba5ffc464687e62b
MD5 b61746abbf36c7e83b7a874d8c9ea908
BLAKE2b-256 d589ce4ad929087a2c05125d89269c45495b4104bacfd1220967f9cd6be99e26

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.21-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 399.0 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.21-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e5488f170ae201ec2b9943cbdc834d79c0a2f5efab0b15160454937ed488d58e
MD5 5536223e4e42f68b7265f06a90b7dae3
BLAKE2b-256 73631280b0fbbdce0765986e9f99e0d9d3d88796e484e7d0668c992d61040231

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.21-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8df6b40412ab1773d5a247a4b41ce790e1794f572b78d452c41ce94279bdc058
MD5 e1fd310ad955874b2eabda42f4a45726
BLAKE2b-256 2674df00c32906f35b3d52159aedbae5e61fe83d59e631c78c3ab3101b48718b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.21-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e22d6c233979d6a171dac279c009ae82843e713ae8804c73ffba14865741babc
MD5 b17184f433b92fd00dba3f23c6bf98dc
BLAKE2b-256 86b7370c6d571c057881a321cb18189253aad7879050dd570e487aeb8b20b339

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.21-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 ea05500202cb6944501cbd5149b675b094e620abd2ce867d2eeba3f48433e696
MD5 7dab3d567d626be761042e5a312e3a4a
BLAKE2b-256 88eb3544dcb2f5d078ebb73df1b4a9d8e875395d5ec427fb70f597b82c54eb40

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: qhchina-0.1.21-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 399.3 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.21-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3b0e488de4f69d13662642d685bc76424a3443728007ce14b8b1f8977b7c0375
MD5 b14e98bd1b44ed4cbd5eb5859b1bac72
BLAKE2b-256 ac9bc5d9e4da76c80e8ef0f4907587a0de251402a6e2a9a74ea6c27e48a18fe1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.21-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c68cb89ab4952098e97da4a27eb09985b88135a64b8d544d8ffa5b9786365d9d
MD5 b39393155968e0465066c14317ef5fba
BLAKE2b-256 bba03a11943c9c1fad70a4c4a89e3fc5d487958e41642a50393a290c8c74303a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.21-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 fc512ccc6efe192c115e81a128cd09d510bc8849154b6a799dad6013c26b2ba6
MD5 12bc0fd86d3f7ba52f23cbc01144aea7
BLAKE2b-256 b60320ed8d7f1a27d016b40b0968fc3d5e9364632e6990bb87180192f6c32417

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for qhchina-0.1.21-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 b96b45e08f6d198cfb1f0f7ed43c06200c02e12edffa296e21581c4a0f558111
MD5 0b29f5f5ad605d779a226168286aa44d
BLAKE2b-256 abd25113118eccd9c58bb6144725b34ba5434449022776dba723a1970d5e7c62

See more details on using hashes here.

Provenance

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