def build(classifier, X, y=None):
    '\n        Inner build function that builds a single model.\n        '
    if isinstance(classifier, type):
        classifier = classifier()
    model = Pipeline([('preprocessor', NLTKPreprocessor()), ('vectorizer', TfidfVectorizer(tokenizer=identity, preprocessor=None, lowercase=False)), ('classifier', classifier)])
    model.fit(X, y)
    return model
Inner build function that builds a single model.
def build(classifier, X, y=None):
    '\n        \n        '
    if isinstance(classifier, type):
        classifier = classifier()
    model = Pipeline([('preprocessor', NLTKPreprocessor()), ('vectorizer', TfidfVectorizer(tokenizer=identity, preprocessor=None, lowercase=False)), ('classifier', classifier)])
    model.fit(X, y)
    return model