dimanche 31 juillet 2016

TD/IDF in scikit-learn

Is there a complete Python 2.7 example about how to use TfidfTransformer (http://scikit-learn.org/stable/modules/feature_extraction.html) to generate TF/IDF for n-grams for a corpus? Look around scikit-learn pages and it only have code snippet (not complete samples).

regards, Lin

Aucun commentaire:

Enregistrer un commentaire