Sketches in real implementation of get-term-weights.