DecAn is a tool for Analyze and Deconstruct chars in text for its position.
Project description
DecAn
Tool to Analyze and Deconstruct chars in a text
[Under-Development]
Installation
pip install DecAn-karjakak
Usage
For analyzing text file or sentences
decan -a path\text.txt
For search chars or words in text file or sentences
decan -a "The Best is yet to come, yeayyy!!!" -s "Best" e y
# result:
"Best": {1: ((4, 8),)}
"Best" is 1 out of total 7 words!
'e': {5: (2, 5, 13, 22, 26)}
'e' is 5 out of total 34 chars!
'y': {5: (12, 25, 28, 29, 30)}
'y' is 5 out of total 34 chars!
For Deconstruct text file or sentences to .json file or .pickle file
# The text file, save as json/pickle filename, and save to a directory path.
decan -d path\text.txt text.json path\dir
For Constructing the deconstructed text that save in .json file or .pickle file
decan -c path\text.pickle
Note
- Still development process.
- Add write deconstruct to pickle, which much smaller and faster.
- Changes on analyze [-a]:
- Count real chars, without the space and other printable.
- Show the chars that used once and chars that used most.
- Details on chars type.
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
DecAn-karjakak-0.0.8.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for DecAn_karjakak-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ec1a857f3ee144dc51c6256189c618b943beb9b6c2d2cc13f45c2d207e747db |
|
MD5 | 8e68f9c59c31986456268afc748f214a |
|
BLAKE2b-256 | 6e138e65c60509239b341058ea5cbdf1b6fc37c859727f53cf0a18e87aa26fda |