'Does nothing: this transformer is stateless.'

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

    if isinstance(X, six.string_types):
        raise ValueError(u'Iterable    over    raw    text    documents    expected,    string    object    received.')
    self._get_hasher().fit(X, y=y)
    return self
