In addition, the TF-IDF measurement allows us to assign a weight to the words that compose the questions and their contexts according to their frequency in a given document and in all the documents of the corpus.
it is a measure that takes into account their importance, the rarity and therefore the discriminative function of words within the corpus.