Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
<text type="manuscript">
<body>
<pb facs="loc.00001.001.jpg" xml:id="leaf001r" type="recto"/>
<lg type="poem">
<head rend="underline" type="main-authorial">
After
<subst>
<del rend="overstrike" seq="1">an</del>
<add place="supralinear" rend="insertion" seq="2">
the
<del rend="overstrike">unsolv'd</del>
</add>
</subst>
argument
</head>
<l>
<del rend="overstrike">The</del>
<add place="supralinear" rend="insertion">
<del rend="overstrike">Coming in,</del>
<subst>
<del rend="overwrite" seq="1">a</del>
<add place="over" rend="overwrite" seq="2">A</add>
</subst>
group of
</add>
little children, and their
<lb/>
ways and chatter, flow
<add place="inline" rend="unmarked">in, </add>
<del rend="overstrike">
<add place="supralinear" rend="unmarked">upon me</add>
</del>
</l>
<l>
Like
<add place="supralinear" rend="insertion">welcome </add>
rippling water o'er my
<lb/>
heated
<add place="supralinear" rend="insertion">nerves and </add>
flesh.
</l>
<closer>
<signed>Walt Whitman</signed>
</closer>
</lg>
<pb facs="loc.00001.002.jpg" xml:id="leaf001v" type="verso"/>
</body>
</text>

























<h2>Their Eyes are Watching God</h2>
<p><em>Their Eyes are Watching God</em> was written by Zora Neale Hurston in 1937.
</p>import nltk
text = word_tokenize("And now for something completely different")
nltk.pos_tag(text)
[('And', 'CC'), ('now', 'RB'), ('for', 'IN'), ('something', 'NN'),
('completely', 'RB'), ('different', 'JJ')]wordstring = 'it was the best of times it was the worst of times '
wordstring += 'it was the age of wisdom it was the age of foolishness'
wordlist = wordstring.split()
wordfreq = []
for w in wordlist:
wordfreq.append(wordlist.count(w))
print("String\n" + wordstring +"\n")
print("List\n" + str(wordlist) + "\n")
print("Frequencies\n" + str(wordfreq) + "\n")
print("Pairs\n" + str(list(zip(wordlist, wordfreq))))
String
it was the best of times it was the worst of times it was the age of wisdom it was the age of foolishness
List
['it', 'was', 'the', 'best', 'of', 'times', 'it', 'was',
'the', 'worst', 'of', 'times', 'it', 'was', 'the', 'age',
'of', 'wisdom', 'it', 'was', 'the', 'age', 'of',
'foolishness']
Frequencies
[4, 4, 4, 1, 4, 2, 4, 4, 4, 1, 4, 2, 4, 4, 4, 2, 4, 1, 4,
4, 4, 2, 4, 1]
Pairs
[('it', 4), ('was', 4), ('the', 4), ('best', 1), ('of', 4),
('times', 2), ('it', 4), ('was', 4), ('the', 4),
('worst', 1), ('of', 4), ('times', 2), ('it', 4),
('was', 4), ('the', 4), ('age', 2), ('of', 4),
('wisdom', 1), ('it', 4), ('was', 4), ('the', 4),
('age', 2), ('of', 4), ('foolishness', 1)]











