!tree - data/aclimdb out[ ]data/aclimdb +-test +-neg +-pos +-train +-neg +-pos directories files the pos folder contains all the positive reviewseach as separate text fileand similarly for the neg folder there is helper function in scikit-learn to load files stored in such folder structurewhere each subfolder corresponds to labelcalled load_files we apply the load_files function first to the training datain[ ]from sklearn datasets import load_files reviews_train load_files("data/aclimdb/train/"load_files returns bunchcontaining training texts and training labels text_trainy_train reviews_train datareviews_train target print("type of text_train{}format(type(text_train))print("length of text_train{}format(len(text_train))print("text_train[ ]:\ {}format(text_train[ ])out[ ]type of text_trainlength of text_train text_train[ ] 'words can\' describe how bad this movie is can\' explain it by writing only you have too see it for yourself to get at grip of how horrible movie really can be not that recommend you to do that there are so many clich\xc \xa smistakes (and all other negative things you can imaginehere that will just make you cry to start with the technical firstthere are lot of mistakes regarding the airplane won\' list them herebut just mention the coloring of the plane they didn\' even manage to show an airliner in the colors of fictional airlinebut instead used painted in the original boeing livery very bad the plot is stupid and has been done many times beforeonly muchmuch better there are so many ridiculous moments here that lost count of it really early alsoi was on the bad guys\side all the time in the moviebecause the good guys were so stupid "executive decisionshould without doubt be you\'re choice over this oneeven the "turbulence"-movies are better in factevery other movie in the world is better than this one you can see that text_train is list of length , where each entry is string containing review we printed the review with index you can also see that the review contains some html line breaks while these are unlikely to have working with text data