computation of the TF-IDFs