Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Assuming we have comments in the form: { sentence(s): label }
comments_list = list(labeled_comments_dict.items())
random.shuffle(list_comments)
comments, categories = [], []
for comment, category in comments_list:
comments.append(comment.rstrip())
categories.append(category)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment