'Learn a vocabulary dictionary of all tokens in the raw documents
Parameters
raw_documents: iterable
an iterable which yields either str, unicode or file objects
Returns
self'

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

    self.fit_transform(raw_documents)
    return self
