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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qhchina-0.1.0-cp314-cp314-win_amd64.whl.
File metadata
- Download URL: qhchina-0.1.0-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d1251388cbe6e032ac435154d79d8aadda87a4c765db1a91d4b89a46671ed67
|
|
| MD5 |
126c241fea82a381b2d2ebb5811cd8c0
|
|
| BLAKE2b-256 |
663e05419104a96c2b8ae05807867dde74e69af78693403c8fc6322a28b11f9b
|
File details
Details for the file qhchina-0.1.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: qhchina-0.1.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 32.8 MB
- Tags: CPython 3.14, manylinux: glibc 2.24+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d820ac6f6326fdf8e9f6de01fce7435fe39ebfb3981adaf3ebff7191fad45047
|
|
| MD5 |
918e5f5c30158e30e47e90eff7742299
|
|
| BLAKE2b-256 |
1136f4b15d278884244afe1e91b85eefd44b13cb90ab67acda7556f8eaa9bfb6
|
File details
Details for the file qhchina-0.1.0-cp314-cp314-macosx_11_0_arm64.whl.
File metadata
- Download URL: qhchina-0.1.0-cp314-cp314-macosx_11_0_arm64.whl
- Upload date:
- Size: 31.3 MB
- Tags: CPython 3.14, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e04a1618cb54977748426490e77c6222f9d5316311b8d74e3feaf8d87f09ceef
|
|
| MD5 |
f0cf11c3e2cd22e8047ee498f3167782
|
|
| BLAKE2b-256 |
93f427970c37161fade2879d902f083d65227476fef85013c8875f156a595bb2
|
File details
Details for the file qhchina-0.1.0-cp314-cp314-macosx_10_15_x86_64.whl.
File metadata
- Download URL: qhchina-0.1.0-cp314-cp314-macosx_10_15_x86_64.whl
- Upload date:
- Size: 31.3 MB
- Tags: CPython 3.14, macOS 10.15+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
406c78eee14ee9162b270853d46890e94e97440d3ab48ab63aa330db490da024
|
|
| MD5 |
eba5b4efdc93983655005c97309973e2
|
|
| BLAKE2b-256 |
32592d3dc31d8df999744665ef8d1dd830a64c8afbaacb54b6d96f7196c48a05
|
File details
Details for the file qhchina-0.1.0-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: qhchina-0.1.0-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad854a713c44c141302ddcee31644d33d43895bb7fbc5f6b9b8827c238097451
|
|
| MD5 |
5e1d4a19723034d03474e15f8afccec2
|
|
| BLAKE2b-256 |
a6859d902217c2cff74e6545edde44a592697a00dfd36b4b51c25b70e9b42426
|
File details
Details for the file qhchina-0.1.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: qhchina-0.1.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 32.9 MB
- Tags: CPython 3.13, manylinux: glibc 2.24+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fdd7696fee27df2318359998426c3d1ccd91ba662c3f52ea584726f678f59fc
|
|
| MD5 |
16dc6061bee9db1f42eb5f05ee8fa550
|
|
| BLAKE2b-256 |
4990b009da2dfaa3eb42bdeaf2f7d3817db530aa61bafb2b6db7a5755bef4e1b
|
File details
Details for the file qhchina-0.1.0-cp313-cp313-macosx_11_0_arm64.whl.
File metadata
- Download URL: qhchina-0.1.0-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 31.3 MB
- Tags: CPython 3.13, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48ee4ed459122e51ed9e4f63020b79d74145a2e85a7a0e7a20106ca11539796d
|
|
| MD5 |
219c4dca3460e0eacd1e30b7ec240dd8
|
|
| BLAKE2b-256 |
c5202232ddb8c76b07c263c32e1e1a2bea10ea5c3d9bf4360b9c283766296703
|
File details
Details for the file qhchina-0.1.0-cp313-cp313-macosx_10_13_x86_64.whl.
File metadata
- Download URL: qhchina-0.1.0-cp313-cp313-macosx_10_13_x86_64.whl
- Upload date:
- Size: 31.3 MB
- Tags: CPython 3.13, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a3312bc368ac51420c45a0abaa1798ee92f12472030d050633acba0c0876d78
|
|
| MD5 |
dd5c0aee71ad8bbc952bd81c21b298cb
|
|
| BLAKE2b-256 |
567b1d5375e2a00ba2c92a850ed3242d88a04d4a5f374e4d2c95d99d9c33194c
|
File details
Details for the file qhchina-0.1.0-cp313-cp313-macosx_10_13_universal2.whl.
File metadata
- Download URL: qhchina-0.1.0-cp313-cp313-macosx_10_13_universal2.whl
- Upload date:
- Size: 31.6 MB
- Tags: CPython 3.13, macOS 10.13+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbd757610ce5f2b0a14631b61e4908aa693cdf098c99385cb122d78861c8d2c3
|
|
| MD5 |
b7d6691fbed600d035c7748cbafa7091
|
|
| BLAKE2b-256 |
ac9df6a225a285c1e986926dc0afe5e9d24603602589a1099f8083b7b989faea
|
File details
Details for the file qhchina-0.1.0-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: qhchina-0.1.0-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
649891016f07b9696f8803606817b027681b62eb710dfef9ea45cca645e6596b
|
|
| MD5 |
1b5d6a75ab509584228848f8ac797fa7
|
|
| BLAKE2b-256 |
f4bd5f0f18b19e4197afaf3782e73ac6ae92f4e6cabf470add9ce0020764e7d5
|
File details
Details for the file qhchina-0.1.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: qhchina-0.1.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 32.9 MB
- Tags: CPython 3.12, manylinux: glibc 2.24+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ecc7571b51d6d0548df4f64fd736367ac63a085c541efaaf423b7d2ee5733bd
|
|
| MD5 |
2e1dc742bf1efa806d04b7b68be5a150
|
|
| BLAKE2b-256 |
7bb04ea4feff451f17096c7779630fe4e1bded9089c1a469b5883b4d8327e75c
|
File details
Details for the file qhchina-0.1.0-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: qhchina-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 31.3 MB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec8db441cf897444cac703b596f501b3e33073f3083352ff67dea81fbbfe193e
|
|
| MD5 |
c54deed6c6dce7c2f2611c7c2d2a30f5
|
|
| BLAKE2b-256 |
87e52bfcd7c861c536584aaac117f7997620ace71a9c22c1234de5fcaf1c99f7
|
File details
Details for the file qhchina-0.1.0-cp312-cp312-macosx_10_13_x86_64.whl.
File metadata
- Download URL: qhchina-0.1.0-cp312-cp312-macosx_10_13_x86_64.whl
- Upload date:
- Size: 31.3 MB
- Tags: CPython 3.12, macOS 10.13+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca0f82c89e6fe97d37b54902d165c03b30522c43d181609da812deb974961b62
|
|
| MD5 |
be83af16ccd5f8d90f5f2e44332fdf7a
|
|
| BLAKE2b-256 |
98adaa0b001515ee03df084ad5adbcdab75b3b558d1b34523e00ecfcd5ec301f
|
File details
Details for the file qhchina-0.1.0-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: qhchina-0.1.0-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0fd22d047411b38fa35278d062c0a48c491a89965bebec0883e8c8495092e52
|
|
| MD5 |
c57150d83ad7c900c9f69be384682b7b
|
|
| BLAKE2b-256 |
a1906432adf6b46f5287ded0d4059bfa9c56e74d9a4ee6c15b44a9cb17b09ecb
|
File details
Details for the file qhchina-0.1.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: qhchina-0.1.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 32.9 MB
- Tags: CPython 3.11, manylinux: glibc 2.24+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd7e0ed90cd1a613b856570b10fac6bcb11297f8106acee253e2fd7b8b297aba
|
|
| MD5 |
03a162c78277c78aad2e360fa3e97e9c
|
|
| BLAKE2b-256 |
ccd3ee2f82a3c232f6d81e4dd721d7423a4259737fd5538d6256e68ced517c30
|
File details
Details for the file qhchina-0.1.0-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: qhchina-0.1.0-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 31.3 MB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
700b1073b04701415af4092de95615cab797f4f4262a3e4551816d4b6f02add5
|
|
| MD5 |
3b178f31161d08c78f08ed5e27fc0bd1
|
|
| BLAKE2b-256 |
e238623a6ae626c72e2e651c21c7b7562d5bdc565db3adfbc4ccc05530c8a3e4
|
File details
Details for the file qhchina-0.1.0-cp311-cp311-macosx_10_9_x86_64.whl.
File metadata
- Download URL: qhchina-0.1.0-cp311-cp311-macosx_10_9_x86_64.whl
- Upload date:
- Size: 31.3 MB
- Tags: CPython 3.11, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
973fc465ba1a2b9a980f32dc92bab96368c7f4373849898d1b9b74c0b19a8618
|
|
| MD5 |
720b0f798572127d147ac0d838efa487
|
|
| BLAKE2b-256 |
d1c35b9707b6b5f22eaa0f2058a0e185095cf0a824c9ad2f2a7039219a23e512
|
File details
Details for the file qhchina-0.1.0-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: qhchina-0.1.0-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
003ce856c61c6bc02af12ba2d1190a2745a567e4b042aefd9fa8a3ba0fc34fd7
|
|
| MD5 |
71cdc7069ce084c149cccfc055de7e47
|
|
| BLAKE2b-256 |
0b1eac00b3dd0a2b8a4b11a48ea6b99b86c967f2ab6d962a569d2cca7ac9966f
|
File details
Details for the file qhchina-0.1.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.
File metadata
- Download URL: qhchina-0.1.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 32.8 MB
- Tags: CPython 3.10, manylinux: glibc 2.24+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0191b457dff59b885a84733b0306aace5122a6da9943012e9ac2d6f755c7af55
|
|
| MD5 |
19ad4d8ca19fd06e29b4fd8fc2a3687f
|
|
| BLAKE2b-256 |
0bb86cae7d544002b7aa8c6b8c526ea5064e909003f805d55c1baafe62393990
|
File details
Details for the file qhchina-0.1.0-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: qhchina-0.1.0-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 31.3 MB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5d2069268f24670fa7a6a0e44fdac67735783eb0170b9c8c6eca5014d3f805d
|
|
| MD5 |
f13e683374cd5185f97e33e77a042b12
|
|
| BLAKE2b-256 |
02a8c840f36c56bafff9b45cfdd04a550345b4325cbd53c0a4835a28541a8cc7
|
File details
Details for the file qhchina-0.1.0-cp310-cp310-macosx_10_9_x86_64.whl.
File metadata
- Download URL: qhchina-0.1.0-cp310-cp310-macosx_10_9_x86_64.whl
- Upload date:
- Size: 31.3 MB
- Tags: CPython 3.10, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22ca520e170c8f92d395aacc69ab2c77a244367eb6cabc1ea4c221fca621958b
|
|
| MD5 |
113fa7d278aa20d00b1a80cd66530f9a
|
|
| BLAKE2b-256 |
2a56087d33a3c942d59cb9978cb60fbb39b21684618c291ee15707aecec2b0ad
|