Accounting for Document Length in Retrieval
Long documents can offer more opportunities for a term to appear. A scoring scheme can account for length while preserving meaningful term evidence.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Trace equal count and unequal length
Two documents contain one match each, one among fifty tokens and one among five hundred. A ratio-based feature would give 0.02 and 0.002, respectively. See term frequency.
Choose a calibrated effect
Length adjustment is part of a model and can penalize useful long content if too strong. Test short and detailed relevant documents. Field weighting offers another distinguishable contribution.[1]
Compare raw counts with term density
Two documents each contain map three times. One has thirty indexed terms and the other three hundred. A simple length-normalized count gives 0.1 and 0.01. Actual ranking formulas can use other normalization to avoid penalizing long useful material too strongly. See term frequency.
Short document: 3 ÷ 30 = .1
Long document: 3 ÷ 300 = .01
Raw term count is 3 for both
Check variation across article genres
A very short title can rank well with one match, possibly too well for explanatory queries. Test titles and longer documents separately. Define what counts toward indexed length.