diff options
author | Tucker Evans <tuckerevans24@gmail.com> | 2017-12-17 05:25:36 -0500 |
---|---|---|
committer | Tucker Evans <tuckerevans24@gmail.com> | 2017-12-17 13:20:31 -0500 |
commit | 6904aef94596085fe4a857967da083f6c2ffc94e (patch) | |
tree | 6ee7834892d01305bb8274e8b1aad80f40c9b1bd | |
parent | d2ed2c54a5c6c901c32a93a159ff7afe08f348d1 (diff) |
CSC2621/assignments/search: -Updated assign.rst to better reflect pdf
-rw-r--r-- | search/assign.rst | 55 |
1 files changed, 21 insertions, 34 deletions
diff --git a/search/assign.rst b/search/assign.rst index 70d0b08..a8a62d5 100644 --- a/search/assign.rst +++ b/search/assign.rst @@ -114,34 +114,21 @@ arguments after the first. .. code:: bash - Results: - 1. docID - 2. docID - 3. docID - 4. docID - - 4 - 3, - 1, - 5, - 8, - - score - score - score - score - - 0.830 - 0.814 - 0.350 - 0.108 + Results: 4 + 1. docID, 3, score, 0.830 + 2. docID, 1, score, 0.814 + 3. docID, 5, score, 0.350 + 4. docID, 8, score, 0.108 **Bonus:** You can receive 5 bonus points by implementing phrase search. So when the user searches for “landmark college”, assume they want only documents with that exact phrase. To accomplish this, you will need to store the positions of the terms that are stored in the inverted index. Then use those positions to ensure the phrase matches -successive positions. Zip your entire project directory and submit it +successive positions. + + +Zip your entire project directory and submit it to Canvas before it is due. Make sure your output matches the specifications precisely to avoid losing any points. If you use any code you find in the Web, you must document the source in your @@ -185,24 +172,24 @@ Test Data .. code:: 123 - 1 0 0.200 + a 0 0.200 456 - 1 0 0.200 + a 0 0.200 another - 3 0 0.200 + b 0 0.200 cool - 1 1 0.200 - cowboys - 3 1 0.200 + a 1 0.200 + patriots + b 1 0.200 go - 3 1 0.200 + b 1 0.200 test - 1 1 0.200 - 2 0 0.500 - 3 0 0.400 + a 1 0.200 + c 0 0.500 + b 0 0.400 this - 1 0 0.200 - 2 0 0.500 + a 0 0.200 + c 0 0.500 Search for "test this" results in the following: |