Verbose is a python based application which helps you to search in txt as well as pdf files easily by using indexing and providing a good User Interface.
Setting Up
sudo apt-get install libgtk-3-dev
pip3 install -r requirements.txt
To run
python3 main.py
If the query is contained in quotes then the results will contain exactly those results otherwise it may be in some other order. ( Eg:- searching for good boy will show both good boy as well as boy good, but when exact search is selected “good boy” only results of good boy will be shown.
If a particular word is not found then we try to find best possible matches to the word.
When a particular file is selected, all occurences of the query are displayed and on click on a particular occurence the file opens from that particular Page Number or Line Number of the file.
The data structures used in the project are Dictionary, Lists and Sets.
Main Index Dictionary = { Word : { Book : { Page/Line : [occurrences] } } }
Individual File Dictionary(The one that is saved) = { Word : { Page/Line : [occurrences] } }
Answer = { Book : [Page/Line Numbers] }
Peter Norvig's Did You Mean Implementation Link
Quora's answer that gave us basic idea Link
GTK+ Documentation Link
Dataset by Project Guntenburg, 20Newsgroup & various other sites.