From 27e9a6822ea183a220f7768d10edc604029d7780 Mon Sep 17 00:00:00 2001 From: karinashin Date: Sun, 1 May 2022 18:23:52 -0500 Subject: [PATCH] linux path for stopwords file --- StopWord.cpp | 6 +++--- UserInterface.h | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) 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();