import pickle


def load_data_from_pickle(filepath):
	"""
	Loads the data from the pickle file created earlier

	"""
	all_data = pickle.load(open(filepath, 'rb'))

	data = all_data['data']
	labels = all_data['labels']
	label_names = all_data['label_names']
	val = all_data['imdb']
	val_labels = all_data['imdb_labels']
	
	return data,labels,label_names,val,val_labels