Hi Daniel, Thanks for reading the article.
Yes, the TdidfVectorizer function would do better as it is well tested but I wanted to demonstrate the inner implementation, so we can understand how the extractive summarization works.
Hope this satisfies your question.