<jupyter_start><jupyter_text>Creating A Datasets<jupyter_code>def pretty_print_review_and_label(i):
     print(labels[i] + "\t:\t" + reviews[i][:80] + "...")
g = open('reviews.txt','r') # What we know!
reviews = list(map(lambda x:x[:-1],g.readlines()))
g.close()

g = open('labels.txt','r') # What we WANT to know!
labels = list(map(lambda x:x[:-1].upper(),g.readlines()))
g.close()
len(reviews)
reviews[0]
labels[0]<jupyter_output><empty_output><jupyter_text>lesson: Develop a Predictive Theory<jupyter_code>print("labels.txt \t : \t reviews.txt\n")
pretty_print_review_and_label(2137)
pretty_print_review_and_label(1816)
pretty_print_review_and_label(6267)
pretty_print_review_and_label(21934)
pretty_print_review_and_label(5297)
pretty_print_review_and_label(4998)<jupyter_output>labels.txt 	 : 	 reviews.txt

NEGATIVE	:	this movie is terrible but it has some good effects .  ...
POSITIVE	:	why does this have such a low rating  i really don  t get it . . . is it because...
NEGATIVE	:	comment this movie is impossible . is terrible  very improbable  bad interpretat...
POSITIVE	:	excellent episode movie ala pulp fiction .  days   suicides . it doesnt get more...
NEGATIVE	:	if you haven  t seen this  it  s terrible . it is pure trash . i saw this about ...
POSITIVE	:	this schiffer guy is a real genius  the movie is of excellent quality and both e...
{'fraction_non_alphanumeric': 0.12159174649963155, 'fraction_numerical': 0.022844509948415623, 'mean_word_length': 4.828326180257511, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '200950', 'license': 'Apache-2.0', 'n_tokens_mistral': 515, 'n_tokens_neox': 482, 'n_words': 133, 'path': 'Neural Networks/Sentiment Analysis/Sentiment Classification.ipynb', 'repo_name': 'Iamsdt/UdacityDeepLearningNanodegree', 'size': '1357'}