}
// support user defined vectorizers
if hasattr(vectorizer, "__class__"):
if hasattr(vectorizer, "fit_transform"):
vectorizer_models.update({"user_model" : vectorizer})
vectorizer = "user_model"
After Change
"http://scikit-learn.org/stable/data_transforms.html")
// support user defined text model
if ttype in ("class", "class_instance"):
if hasattr(text_model, "fit_transform"):
text_models.update({"user_model" : text_model})
text_model = "user_model"