diff --git a/StopWord.cpp b/StopWord.cpp index 35afd24..d82f595 100644 --- a/StopWord.cpp +++ b/StopWord.cpp @@ -7,9 +7,9 @@ StopWord::StopWord() { ifstream stop;//make the stop words AVL tree - stop.open("stopWords.txt"); - if (stop.is_open()) - cout << "OPened stops" << endl; + stop.open("/mnt/c/users/18476/c++/finalProjectTest/stopWords.txt"); +// if (stop.is_open()) +// cout << "OPened stops" << endl; string curr; while (getline(stop, curr))//make an avl tree of stop words { diff --git a/UserInterface.h b/UserInterface.h index e3d7501..0942127 100644 --- a/UserInterface.h +++ b/UserInterface.h @@ -29,6 +29,7 @@ class UserInterface { public: UserInterface(); + void run(const string& file);//run search engine void clearIndex();//delete every tree void parseDocs(const string& direct);//parse all documents @@ -36,6 +37,7 @@ class UserInterface { void showText(Document& d); void stats(); void topWordsHelper(Node* n);//populates frequency and word vectors + void getTopWords();//prints out top 25 most frequent words DocParser& getDocParser();//used to access word/org/person avl trees QueryProcessor& getQueryProcessor();