TF-IDF Model
Extract tools code from the main code