Giter Club home page Giter Club logo

uniqword's Issues

List index out of range

So I was trying out your CLI with a huge study book of 1.2k pages (Thomas Calculus 13th edition).
I first did python uniqword.py and then did add_file Thomas_Calculus.pdf. And after 3 minutes of running it showed that the list index was out of range ๐Ÿค”

Welcome. I am uniQword, I can count all the words in your files and more.
To begin, select a file with the "add_file" or "add_dir" command or type ? to re                                                                                                    ad a list of commands.
uniQword, add_file Thomas Calculus.pdf
I couldn't decode the file. Please save it in UTF-8 before retrying.
uniQword, add_file Thomas_Calculus.pdf
Traceback (most recent call last):
  File "uniqword.py", line 829, in <module>
    CommandLineInterface().cmdloop()
  File "c:\users\gebruiker\appdata\local\programs\python\python36\Lib\cmd.py", line 138, in cmdloop
    stop = self.onecmd(line)
  File "c:\users\gebruiker\appdata\local\programs\python\python36\Lib\cmd.py", line 217, in onecmd
    return func(arg)
  File "uniqword.py", line 553, in do_add_file
    self.file.add_files(WordsFile(file, password))
  File "uniqword.py", line 52, in __init__
    self.store_all_words()
  File "uniqword.py", line 153, in store_all_words
    if word[0] == "-":
IndexError: list index out of range

Here's the error

[FEATURE REQUEST] CSV Export / All export

I had this idea that you could make it so that instead of a txt file, one could also export it to a simple csv file, with all the frequencies and words next to each other.

If you have more time maybe you could add a command that would export all unique word frequencies to a file. So that you don't have to type a number when you just want them all.

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.