'Store the shape of the features of X.
Parameters
X : array-like
The data to fit. Can be, for example a list, or an array of at
least 2d. The first dimension must be of length n_samples, where
samples are the independent samples used by the estimator
(e.g. n_epochs for epoched data).
y : None | array, shape (n_samples,)
Used for scikit-learn compatibility.
Returns
self : Instance of Vectorizer
Return the modified instance.'

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

    X = np.asarray(X)
    self.features_shape_ = X.shape[1:]
    return self
