

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: Inverted Index
incomplete
2: Use the Index
incomplete
3: Boolean Search
incomplete
4: Term Frequency
incomplete
5: Inverse Document Frequency (IDF)
incomplete
6: TF-IDF
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
Now that we can find documents that contain our search terms, let's measure how often each term appears.
Term frequency (TF) measures how often a word occurs in a document. For example:
Boots teaches students programming while enjoying his salmon for lunch. The students gather round as they learn debugging techniques, and all students leave with new coding skills.
Term frequencies:
students appears 3 timessalmon appears 1 timeThis is a signal that students is probably more important than salmon in this document.
Early internet search engines (pre-Google) used term frequency heavily. Sites could game the rankings by repeating keywords over and over: keyword stuffing. Modern search engines use more advanced signals.
Run and submit the CLI tests.