Slide 30
Slide 30 text
30
Stuff a search engine can do
Indexing
token document_id frequency
he 1,2 2
who 1 1
control 1,3 2
the 1,3 2
spice 1 1
univers 1,3 2
a 2,3 2
mad 2,3 2
man 2,3 2
see 2 1
what 2,3 2
if 3 1
# document id 1
{"text": "He who controls the spice, controls
the universe."}
# document id 2
{"text": "A mad man sees what he sees."}
# document id 3
{"text": "What if a mad man controlled the
universe?"}
+ Stemmer