Here is the code:
from sklearn.model_selection import KFold def classify(training_tweets, test_tweets, ngram=(1, 1)): k_fold = KFold(n=len(training_