'Learn vocabulary and idf from training set.
Parameters
raw_documents : iterable
an iterable which yields either str, unicode or file objects
Returns
self : TfidfVectorizer'

def fit(self, raw_documents, y=None):

    X = super(TfidfVectorizer, self).fit_transform(raw_documents)
    self._tfidf.fit(X)
    return self
