I\'m using the nltk library\'s movie_reviews corpus which contains a large number of documents. My task is get predictive performance of these reviews
nltk
movie_reviews
from sklearn.utils import shuffle a = ['a', 'b', 'c','d','e'] b = [1, 2, 3, 4, 5] a_shuffled, b_shuffled = shuffle(np.array(a), np.array(b)) print(a_shuffled, b_shuffled) #random output #['e' 'c' 'b' 'd' 'a'] [5 3 2 4 1]