Skip to content

Commit

Permalink
linux path for stopwords file
Browse files Browse the repository at this point in the history
  • Loading branch information
karinashin committed May 1, 2022
1 parent 5a2759b commit 27e9a68
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions StopWord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 2 additions & 0 deletions UserInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ 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
void displayResults();
void showText(Document& d);
void stats();
void topWordsHelper(Node<Word>* 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();
Expand Down

0 comments on commit 27e9a68

Please sign in to comment.