calculate length normalised TF-IDF