Finding the most relevant snippet from a document, based on the search query.
*** Most Relevant Snippet Selection Algorithm ***
This is a scoring based algorithm for finding the most relevant snippet
of a review, given a search query.
The process starts with producing all permutations of the search query.
Then these permutations are entered into a dictionary with their respective
scores. The permutations that are in original order of the search query get...