def processTweets(X_train, X_test): X_train = [ sentiment.stem(sentiment.preprocessTweets(tweet)) for tweet in X_train ] X_test = [ sentiment.stem(sentiment.preprocessTweets(tweet)) for tweet in X_test ] return X_train, X_test
def processTweets(X_train, X_test): X_train = [sentiment.stem(sentiment.preprocessTweets(tweet)) for tweet in X_train] X_test = [sentiment.stem(sentiment.preprocessTweets(tweet)) for tweet in X_test] return X_train,X_test
def processtweets(x_train, x_test): x_train = [ sentiment.stem(sentiment.cleantweets(tweet)) for tweet in x_train ] x_test = [sentiment.stem(sentiment.cleantweets(tweet)) for tweet in x_test] return x_train, x_test