New attempt to create a vectorizer, similar to ones in scikit