Add tf-idf to SFileFilter

You could be more pedantic, and also probably more robust to numerically induced test flakes if rather than inserting the numbers, you put in the formula, e.g.

{'word3': log(2.0 / 1),...}