On mac type
pip install virtualenv virtualenv search_ve -p python3.7 source search_ve/bin/activate
here "search_ve" is my virtual environment.
$pip install -r requirements.txt
from Model/Pre_processing Run
from Model/Dictionary/ Run
python build_dict.py
from Model/InvertedIndex/build_ii.py run
python build_ii.py
from Model/CorpusAccess/corpusAccess.py
python corpuAccess.py
Model/vsm_bol_search/search.py
This will return us search results with their score based on weight, tf, tf-idf and boolean model if selected by default set to AND
python boolsearch.py
By default set to AND also gives out counter score.
python vsmSearch.py
- A templating language works in conjunction with a web server. It takes the output of your Python scripts (the back-end code), and makes it easy to output to the user using HTML (the front-end). It’s important to note that templates should not be used for logic! Keep the logic in Python, and use templates only for displaying the data. It gets very messy if you start trying to get complex with the template.