clone repository into a file
git clone https://github.com/muki119/informationSystemsCoursework.git
python3 -m venv .venv
python3 -m pip install -r requirements.txt
source .venv/bin/activate
py -m venv .venv
py -m pip install -r requirements.txt
.venv/bin/activate
By default - stemming will be used and no query expansion will be used
Turning on Lemmatization or Query expansion
In the "main.py" file there will be code as follows
def main ():
SearchEngineIns = SearchEngine (True )
SearchEngineIns .search ()
To change to Lemmatization , set the true value to false.
def main ():
SearchEngineIns = SearchEngine (False )
SearchEngineIns .search ()
Then delete the data folder and run the program.
To enable query expansion go the the main function in main.py
def main ():
SearchEngineIns = SearchEngine (True )
SearchEngineIns .search ()
Add another paramter with the value of true to the Search engine initiatior
def main ():
SearchEngineIns = SearchEngine (True ,True )
SearchEngineIns .search ()