Exercise 18: TF-IDF

I get the fist test on the provided data but fails on the unknown data.

How should I calculate the distance of vectors with different length?

I used padding with 0:s. Did anyone have more luck with truncating or overlapping?