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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

qhchina-0.1.4-cp314-cp314-win_amd64.whl (31.4 MB view details)

Uploaded CPython 3.14Windows x86-64

qhchina-0.1.4-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (32.8 MB view details)

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

qhchina-0.1.4-cp314-cp314-macosx_11_0_arm64.whl (31.3 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

qhchina-0.1.4-cp314-cp314-macosx_10_15_x86_64.whl (31.3 MB view details)

Uploaded CPython 3.14macOS 10.15+ x86-64

qhchina-0.1.4-cp313-cp313-win_amd64.whl (31.2 MB view details)

Uploaded CPython 3.13Windows x86-64

qhchina-0.1.4-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (32.8 MB view details)

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

qhchina-0.1.4-cp313-cp313-macosx_11_0_arm64.whl (31.3 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

qhchina-0.1.4-cp313-cp313-macosx_10_13_x86_64.whl (31.3 MB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

qhchina-0.1.4-cp313-cp313-macosx_10_13_universal2.whl (31.6 MB view details)

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

qhchina-0.1.4-cp312-cp312-win_amd64.whl (31.2 MB view details)

Uploaded CPython 3.12Windows x86-64

qhchina-0.1.4-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (32.8 MB view details)

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

qhchina-0.1.4-cp312-cp312-macosx_11_0_arm64.whl (31.3 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

qhchina-0.1.4-cp312-cp312-macosx_10_13_x86_64.whl (31.3 MB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

qhchina-0.1.4-cp311-cp311-win_amd64.whl (31.2 MB view details)

Uploaded CPython 3.11Windows x86-64

qhchina-0.1.4-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (32.8 MB view details)

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

qhchina-0.1.4-cp311-cp311-macosx_11_0_arm64.whl (31.3 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

qhchina-0.1.4-cp311-cp311-macosx_10_9_x86_64.whl (31.3 MB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

qhchina-0.1.4-cp310-cp310-win_amd64.whl (31.2 MB view details)

Uploaded CPython 3.10Windows x86-64

qhchina-0.1.4-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (32.7 MB view details)

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

qhchina-0.1.4-cp310-cp310-macosx_11_0_arm64.whl (31.3 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

qhchina-0.1.4-cp310-cp310-macosx_10_9_x86_64.whl (31.3 MB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

Details for the file qhchina-0.1.4-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: qhchina-0.1.4-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 31.4 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for qhchina-0.1.4-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 7ae7f08bcc10f9a9f5b6da292f711f8377a643a3e83d211da1a9d117a72a93e1
MD5 eb2fe69d6e4f3fd3aa4e5d47eea936c7
BLAKE2b-256 7961be373896b36b217fc069661033a5d81f33e49fdfe85b09628dc8ddaae65c

See more details on using hashes here.

File details

Details for the file qhchina-0.1.4-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for qhchina-0.1.4-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3fe6d6f0d7433e8b8b4e39614fd55b1d4ca362f66e4574f8983464681c7b57cc
MD5 111a4c3730af6c9efc6675058ae8db8a
BLAKE2b-256 5a7a009017dfe065bfc667f89ab9066a3b9fca37364c27349670cafa9a5748e9

See more details on using hashes here.

File details

Details for the file qhchina-0.1.4-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for qhchina-0.1.4-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 52de8935810dd4d1b5b1a729ac5c28552f8d83beca1d54f0d166376138069261
MD5 38a958d0ed7e38ae613438c1d3b8c4de
BLAKE2b-256 20327f93335e7888d494e1ddaf5de9faf0e8fa86954b71b68fea4e32f433e35e

See more details on using hashes here.

File details

Details for the file qhchina-0.1.4-cp314-cp314-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for qhchina-0.1.4-cp314-cp314-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 609854db53319184447ced57c77385b91cf81947ab3355ac31e4bc072dd08733
MD5 ef04c7b43529eebde5428ae368c71ac2
BLAKE2b-256 42e164b2205380b6c88c1028c89ec022c255fe093f8a0678dea6edcf050cbc73

See more details on using hashes here.

File details

Details for the file qhchina-0.1.4-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: qhchina-0.1.4-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 31.2 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for qhchina-0.1.4-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 af10583547241e0d61f98c4f269b13b7987b06f6fc70aa7cd11c8e3642da70bd
MD5 becb327b72e62c7fac3e1948f1967288
BLAKE2b-256 503d6618529c4030f5ba767529834116c35d358c2d7cc5ff94eaaf9ac0a497f5

See more details on using hashes here.

File details

Details for the file qhchina-0.1.4-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for qhchina-0.1.4-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dac7f64c03ce09ca9115fef1095839b45307056342d2597441a52e2d73f45bc7
MD5 d8282e0bdfee942c982180b97a84fc5d
BLAKE2b-256 6a0b0f8df205ae8ee81b583598ad1f9954918faee83a9d79e69502e19e0ddb02

See more details on using hashes here.

File details

Details for the file qhchina-0.1.4-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for qhchina-0.1.4-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 86d8708ed3e6ea813d20d085bdd770215ed4c4c4bec94e6785d0c9fdb37bac31
MD5 b752e0abcd0e0f02b50c3d18a3e951cb
BLAKE2b-256 4f9b4d6c37beca8c208aeb5466e1753004ad490f2cb5ff724209252b67fcc207

See more details on using hashes here.

File details

Details for the file qhchina-0.1.4-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for qhchina-0.1.4-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 1ab512bff9a3cce4a4ab491a1a7dbc10ae383fd463df486bd31d3447c1f5ffd1
MD5 c02a026165e243527e2fa193db4139bd
BLAKE2b-256 f0288334284020e979085707fcffd6f34daa9eb755dacfeda964e21893acfb2d

See more details on using hashes here.

File details

Details for the file qhchina-0.1.4-cp313-cp313-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for qhchina-0.1.4-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 52724c7a0a435f4c731fa4970710e9044d88f5abc878c6d6b47264552bd6ed0d
MD5 5da3c5a6c28bf09f025969c54b41f70e
BLAKE2b-256 d07545ef9d28880a0fe71ec310af94f9517b59a032f4e476cf5163abc9e1f9a3

See more details on using hashes here.

File details

Details for the file qhchina-0.1.4-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: qhchina-0.1.4-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 31.2 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for qhchina-0.1.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fcf25917810ca6e38f05f48c58c44337d1d942203d1017814991a0c76e6f33af
MD5 b594c9454bf96d72469d3bcdb330826a
BLAKE2b-256 b3c8eeee25fd5431844df81aa5cdf0ffab5f066a8edee99a8878dcf06b85e8c7

See more details on using hashes here.

File details

Details for the file qhchina-0.1.4-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for qhchina-0.1.4-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 33b8e853fc177c429d0e9b4d59d05f0ce73b3503f5d915e1321f7377d53ee376
MD5 b0d58cf03043c03cdc0a0b43a5fc1056
BLAKE2b-256 7b0e9e111a06bdf76c0db7116917f5af273f9488c4251989decba5a3b8e5ab0e

See more details on using hashes here.

File details

Details for the file qhchina-0.1.4-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for qhchina-0.1.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e086e5fa01ea81810f2b4d50270d7b9c2b44c41c2f8f3ff5aa84dcdd238e6171
MD5 1c923fe6a45debc6d5f41e9cb119f739
BLAKE2b-256 66499547738ade1f85d1c13dea4bf0eb3bf8de88c7bab44c10284bb5eab4be71

See more details on using hashes here.

File details

Details for the file qhchina-0.1.4-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for qhchina-0.1.4-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 fa075d604caa907cded1ad40967ab9610dda76d7ae26b0744745a7a472176229
MD5 6fd93a54341809fedeedd1e3254987e1
BLAKE2b-256 bb2f1149ba2870c59ebb7f92ff0bbc4ced41b2899204f4bee865a5042b14fc1d

See more details on using hashes here.

File details

Details for the file qhchina-0.1.4-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: qhchina-0.1.4-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 31.2 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for qhchina-0.1.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7fa4a51ccd8e3a8dc77ba98fd7ec5be77c3546871d8603618ba0063366c87d7b
MD5 f295ea92638b6cf6555740a04bbf941b
BLAKE2b-256 b0ac2b718def461af7d1fc083996e4196d20d2878e2e02c55d1bbec83ab44c82

See more details on using hashes here.

File details

Details for the file qhchina-0.1.4-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for qhchina-0.1.4-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1346b0512177891d4f37e15db146f79fc466bf6b4868aa71caff2a9af888479d
MD5 d9148c2032997a2bea139a220d61fa1b
BLAKE2b-256 489450b15f896406bfb90ca0299e00c56aaa1fdd7c3643f4ce760f828284a6ee

See more details on using hashes here.

File details

Details for the file qhchina-0.1.4-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for qhchina-0.1.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1dd627fb0433916613e3f78be16416ba53497f72e18a0fd521747e19743207f5
MD5 f243a542cda55f357ac4f19e37f5438c
BLAKE2b-256 43f895f552c759e93a1fe154b9842df4ab1a67ad911b6976726ab7e1328e8ea0

See more details on using hashes here.

File details

Details for the file qhchina-0.1.4-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for qhchina-0.1.4-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0523b3e37d71027ee391700885c018415d225a397863d6308ab9f588e5ab6054
MD5 d65ce8ea38cb415162bc61e0e2b0c5b7
BLAKE2b-256 5ec5e918e71075ef74bfc409996d858bf8ac1535aecf3d3019b11496ebaa7db3

See more details on using hashes here.

File details

Details for the file qhchina-0.1.4-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: qhchina-0.1.4-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 31.2 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for qhchina-0.1.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 21d35457ebb793fde8e1b07de1a1806434cd17476e173d0e31107b8caec83562
MD5 3bf9662de7f4de65a1b1f046bfa128a5
BLAKE2b-256 bdf9f90c1758643008e582317cd1e7cdc2ea36d3431d0a3c515343c54eca4d58

See more details on using hashes here.

File details

Details for the file qhchina-0.1.4-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for qhchina-0.1.4-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e5b660b9045e7916315a7deeed8e628da41e63f8f957b068aa8014ce97823229
MD5 55bdc435504f55f88f08a86628524221
BLAKE2b-256 36e84f5ce007ffcc6a2e88d2b1df5b57b262f20a7d1d2104329bfbeaf592e7b8

See more details on using hashes here.

File details

Details for the file qhchina-0.1.4-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for qhchina-0.1.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6463498059fb2e7b75b17f6a456e1cb354e24f4b932b71570a30071e122b11c0
MD5 efe28c38715320bcbdaf1d4bfbaaef29
BLAKE2b-256 a790fa61fef257878945b0fd60f886bb8c0df70ee3a52db7e7e9ef43bea7ebf5

See more details on using hashes here.

File details

Details for the file qhchina-0.1.4-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for qhchina-0.1.4-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 67929ec3e7b4563b41fa3c03c9cc7a7bcccf45ccb39fdda188041993cb9198ae
MD5 60a3921b07d1234b974220c594e09f41
BLAKE2b-256 78f1ab8d26d87f745e510be610f7aa472bc4eae256e16ba9b3f593dffd5d6768

See more details on using hashes here.

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