with open('Korean_movie_reviews_2016.txt/Korean_movie_reviews_2016.txt', encoding='utf-8') as f: docs = [doc.strip().split('\t') for doc in f] docs = [(doc[0], int(doc[1])) for doc in docs if len(doc) == 2] texts, labels = zip(*docs) words_list = [doc.strip().split() for doc in texts]print(words_list[:2])[['부산', '행', '때문', '너무', '기대하고', '봤'], ['한국', '좀비', '영화', '어색하지', '않게', '만들어졌', ..