Anonymous user
Inverted index: Difference between revisions
→Full inverted index: add note
(→{{header|Python}}: Fill in implementation of simple and full inverted index code.) |
(→Full inverted index: add note) |
||
Line 342:
=== Full inverted index ===
The <code>phrasesearch</code> function will return multiple matches in a text, and goes on to show how this can be used to pick the text with most matches.
<small>It is assumed that the following code is added to the end of the code for the simple case above and so shares its file opening and parsing results</small>
<lang python>from collections import Counter
|