Stop Word Filtering: When to Remove Frequent Words?
Learn when filtering helps, when it loses useful signals, and how to align lists with tokenization.
Published Updated
Stop-word filtering removes tokens on a selected list. It may reduce vocabulary, but usefulness depends on the task: function words can help style analysis, and removing not may weaken a sentiment cue. scikit-learn warns that its built-in English list has known issues and may include informative terms such as computer. Align list preprocessing with tokenization: the default tokenizer splits we've into we and ve, so listing only we've may leave ve. Compare an unfiltered baseline and a task-specific list on the same validation data; check lost signals and errors. Apply the same search pipeline to documents and queries.