A series of Chinese processing tools
Project description
# A series of Chinese processing tools
There are some features in the package. If you need to use it can be installed directly
extract_chinese(self, text, symbols= “”, remove_letter=False)
Extract chinese from raw text. You can choose symbols to replace non-Chinese characters in the corpus
filter_words_in_corups(self, sensitive_list, raw_text_list)
Use AC automata to filter sensitive words
is_chinese(self, uchar)
Determine if a character is Chinese
get_json_data(self, path)
Read json data from a file, where each line is a Dict
save_data_to_npy(self, data, path)
read_data_from_npy(self, path)
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
File details
Details for the file chptools-0.0.1.tar.gz
.
File metadata
- Download URL: chptools-0.0.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2caf0ee60e53a6b9b6f18b90f459838a20e2a36a31790b56a81d285a66c97343 |
|
MD5 | 40e458d6d3cf0a1e01317b640107ef27 |
|
BLAKE2b-256 | 7edf3c766bdd725f34d30298feb4452aa95121563b9689f6cfe824f308db23cb |