-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
8 additions
and
9 deletions.
There are no files selected for viewing
17 changes: 8 additions & 9 deletions
17
...nd Positional Indexing/Solution/readme.md → ...d and Positional Indexing/Solution/readme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,24 @@ | ||
### Files: | ||
Author @ Shreyash Arya (2015097) | ||
|
||
Code: ```'inverted_index.py', 'positional_indexing.py'``` | ||
Assignment 1: Information Retrieval (CSE508) | ||
|
||
Saved Dictionaries: ```'filename_mappings.pkl', 'file_to_index_mappings_with_stopwords_q3.pkl', 'index_to_file_mappings_with_stopwords_q3.pkl', 'inverted_index.pkl', 'phrasal_inverted_index_with_stopwords_q3.pkl'``` | ||
Files: | ||
|
||
Text files: ```'Analysis_ShreyashArya_2015097.pdf', 'readme'``` | ||
Code: 'inverted_index.py', 'positional_indexing.py' | ||
Saved Dictionaries: 'filename_mappings.pkl', 'file_to_index_mappings_with_stopwords_q3.pkl', 'index_to_file_mappings_with_stopwords_q3.pkl', 'inverted_index.pkl', 'phrasal_inverted_index_with_stopwords_q3.pkl' | ||
Text files: 'Analysis_ShreyashArya_2015097.pdf', 'readme' | ||
|
||
### To run the program: | ||
To run the program: | ||
|
||
* Keep all the dictionaries in the same folder as the code files. | ||
* Command: $ python 'code_file_name.py' | ||
|
||
For part 2, run the code file 'inverted_index.py' and options are provided to run specific queries. | ||
|
||
For part 3, run 'positional_indexing.py' and enter the phrase query (-1 to exit). | ||
|
||
### References: | ||
References: | ||
|
||
https://nlp.stanford.edu/IR-book/html/htmledition/processing-boolean-queries-1.html | ||
|
||
https://www.geeksforgeeks.org/python-intersection-two-lists/ | ||
|
||
https://www.geeksforgeeks.org/python-union-two-lists/ | ||
|