Created
April 27, 2020 05:57
-
-
Save lakshay-arora/7d09b4a355f757b08f5748be500d9ebf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# define the stages of the pipeline | |
pipeline = Pipeline(steps= [('tfidf', TfidfVectorizer(lowercase=True, | |
max_features=1000, | |
stop_words= ENGLISH_STOP_WORDS)), | |
('model', LogisticRegression())]) | |
# fit the pipeline model with the training data | |
pipeline.fit(train.tweet, train.label) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment