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
[Beta-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
For fixing text punctuation like [".", ",", ":", ";"] that need space or less space, and save it to a new .txt file.
decan -f path\text.txt dir\path text_name.txt
TAKE NOTE:
- In -d [deconstruct], the text has been fixed as well but saved as pickle or json file.
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.
- Add new function "-f" for saving text that has been fixed its punctuation position to a new txt file.
- This function use dependency from GenPy-karjakak.
- https://pypi.org/project/GenPy-karjakak
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.1.1.tar.gz
(5.2 kB
view details)
Built Distribution
File details
Details for the file DecAn-karjakak-0.1.1.tar.gz
.
File metadata
- Download URL: DecAn-karjakak-0.1.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1780f86d5cb77128934c644e3fefcf864c30ec7132313442792d733c8e45f371 |
|
MD5 | 7745cb8184df2a2bb1feeb59ae24aa11 |
|
BLAKE2b-256 | dd1885c35fcde2bffad52c4ccad33d1ff1dc85c94927762edab135b320cbb874 |
File details
Details for the file DecAn_karjakak-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: DecAn_karjakak-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c2bab03843504dab21a09305508d0df71b173f27f8d3b835f217de7d3555e4f |
|
MD5 | 1cee2a97f60551ece3dc0f6a6ebbd14e |
|
BLAKE2b-256 | 9dd12b2ee79240dbbdac6a93d5c1ca5934cf4f34aeec72a293cad7cca4b1cfc8 |