Contenido del Curso
Extracting Text Meaning using TF-IDF
Swipe to show menu
TF-ISF Score
The TF-ISF score for a word is derived by multiplying its TF score by its ISF score . This composite score encapsulates both the word's relevance within individual sentences and its distinctiveness within the broader textual landscape.
Swipe to show code editor
- Enumerate through tokenized sentences along with their indices.
- Сalculate TF-ISF scores for each word.
- Append calculated TF-ISF scores to the
tf_isf_scores
list.
¡Gracias por tus comentarios!