berzi / uniqword Goto Github PK
View Code? Open in Web Editor NEWA simple program to count words in a text file and extract some statistical data from it.
A simple program to count words in a text file and extract some statistical data from it.
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.