Build biword index and Build positional index.
Budget: $30 – $250 USD
Write the python code that:
1. Build biword index (do not remove stop words).
2. Build positional index (do not remove stop words).
3. Save the index in a file/load the saved index file.
4. Read the user queries from a text(.txt) file (each query is written in one line). This query consists of at least two words. Your code will display the following:
Submission
• The size of the biword index.
• The size of the positional index.
• The result (retrieved documents) using the biword index (the output should be sorted) for each query.
• The result (retrieved documents) using the positional index (the output should be sorted) for each query.
Sample Queries:
detailed history
word-occurrence frequency
general purpose computer programs
basis of recommendations
Department of Defense
1. Build biword index (do not remove stop words).
2. Build positional index (do not remove stop words).
3. Save the index in a file/load the saved index file.
4. Read the user queries from a text(.txt) file (each query is written in one line). This query consists of at least two words. Your code will display the following:
Submission
• The size of the biword index.
• The size of the positional index.
• The result (retrieved documents) using the biword index (the output should be sorted) for each query.
• The result (retrieved documents) using the positional index (the output should be sorted) for each query.
Sample Queries:
detailed history
word-occurrence frequency
general purpose computer programs
basis of recommendations
Department of Defense