Git Product home page Git Product logo

decan's Introduction

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.
  • Add multi-threading for analyzing.
    • Using "-m" after "-s".
    • decan -a path\text.txt -s "Best" e y -m

decan's People

Contributors

kakkarja avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.