In [1]:
# The %... is an iPython thing, and is not part of the Python language.
# In this case we're just telling the plotting library to draw things on
# the notebook, instead of on a separate window.
%matplotlib inline
#this line above prepares IPython notebook for working with matplotlib
# See all the "as ..." contructs? They're just aliasing the package names.
# That way we can call methods like plt.plot() instead of matplotlib.pyplot.plot().
import numpy as np # imports a fast numerical programming library
import scipy as sp #imports stats functions, amongst other things
import matplotlib as mpl # this actually imports matplotlib
import matplotlib.cm as cm #allows us easy access to colormaps
import matplotlib.pyplot as plt #sets up plotting under plt
import pandas as pd #lets us handle data as dataframes
#sets up pandas table display
pd.set_option('display.width', 500)
pd.set_option('display.max_columns', 100)
pd.set_option('display.notebook_repr_html', True)
import seaborn as sns #sets up styles and gives us more plotting options
In [2]:
1+2
Out[2]:
3
Notice integer division and floating-point error below!
In [3]:
1/2,1.0/2.0,3*3.2
Out[3]:
(0, 0.5, 9.600000000000001)
Here is how we can print things. Something on the last line by itself is returned as the output value.
In [4]:
print 1+3.0,"\n",5/3.0
5/3
4.0
1.66666666667
Out[4]:
1
We can obtain the type of a variable, and use boolean comparisons tontest these types.
In [5]:
a=5.0/6.0
print(a)
print type(a)
0.833333333333
<type 'float'>
In [6]:
import types
type(a)==types.FloatType
Out[6]:
True
In [7]:
type(a)==types.IntType
Out[7]:
False
In working with python I always remember: a python is a duck.
What I mean is, python has a certain way of doing things. For example lets call one of these ways listiness. Listiness works on lists, dictionaries, files, and a general notion of something called an iterator.
But first, lets introduce the notion of a comprehension. Its a way of constructing a list
In [8]:
alist=[1,2,3,4,5]
asquaredlist=[i*i for i in alist]
asquaredlist
Out[8]:
[1, 4, 9, 16, 25]
Python has some nifty functions like enumerate and zip. The former gives a list of tuples with each tuple of the form (index, value), while the latter takes elements from each list and outs them together into a tuple, thus creating a list of tuples. The first is a duck, but the second isnt.
In [9]:
enumerate(asquaredlist),zip(alist, asquaredlist)
Out[9]:
(<enumerate at 0x108fb0410>, [(1, 1), (2, 4), (3, 9), (4, 16), (5, 25)])
Someone realized that design flaw and created izip.
In [10]:
from itertools import izip
izip(alist, asquaredlist)
Out[10]:
<itertools.izip at 0x108fafb48>
In [11]:
print enumerate(asquaredlist)
<enumerate object at 0x108fb05f0>
In [12]:
[k for k in enumerate(asquaredlist)]
Out[12]:
[(0, 1), (1, 4), (2, 9), (3, 16), (4, 25)]
Open files behave like lists too! Here we get each line in the file and find its length, using the comprehension syntax to put these lengths into a big list.
In [13]:
linelengths=[len(line) for line in open("hamlet.txt")]#poor code as we dont close the file
print linelengths
[9, 27, 2, 24, 2, 2, 2, 2, 22, 2, 28, 60, 29, 28, 27, 22, 22, 24, 25, 18, 24, 11, 21, 20, 22, 32, 10, 28, 31, 12, 22, 27, 2, 51, 32, 2, 67, 13, 2, 18, 2, 2, 2, 8, 2, 50, 2, 49, 2, 6, 14, 2, 7, 45, 2, 6, 21, 2, 7, 11, 2, 6, 5, 2, 7, 41, 2, 6, 53, 2, 7, 48, 25, 2, 6, 27, 2, 7, 23, 2, 6, 19, 39, 46, 2, 7, 48, 2, 32, 2, 6, 25, 2, 6, 27, 2, 7, 22, 2, 6, 30, 24, 2, 7, 24, 22, 2, 9, 2, 6, 18, 2, 6, 6, 25, 2, 6, 17, 2, 6, 45, 2, 6, 47, 2, 6, 22, 2, 6, 36, 42, 48, 38, 45, 37, 42, 2, 6, 32, 2, 6, 18, 41, 42, 31, 2, 6, 20, 41, 2, 6, 20, 51, 51, 43, 30, 2, 6, 51, 2, 23, 2, 6, 48, 2, 6, 43, 2, 6, 47, 2, 6, 49, 2, 6, 23, 2, 6, 23, 2, 6, 50, 42, 40, 54, 2, 6, 17, 2, 6, 22, 2, 6, 42, 2, 15, 2, 6, 33, 2, 6, 46, 42, 22, 2, 6, 41, 38, 19, 2, 6, 26, 2, 6, 25, 36, 40, 45, 42, 15, 2, 6, 48, 47, 2, 6, 48, 44, 48, 2, 6, 49, 47, 43, 43, 41, 50, 43, 46, 50, 30, 2, 6, 13, 47, 42, 44, 45, 53, 53, 53, 36, 50, 45, 39, 43, 35, 50, 39, 49, 36, 47, 41, 39, 48, 42, 39, 46, 45, 41, 50, 44, 2, 6, 37, 47, 49, 45, 2, 6, 41, 43, 41, 51, 45, 50, 43, 47, 43, 48, 42, 39, 45, 38, 46, 2, 19, 2, 53, 42, 14, 40, 44, 14, 42, 40, 11, 39, 41, 53, 19, 53, 2, 6, 40, 2, 6, 27, 2, 6, 12, 2, 6, 12, 2, 6, 12, 2, 15, 2, 38, 35, 38, 39, 2, 6, 44, 2, 6, 42, 38, 44, 48, 43, 42, 40, 41, 37, 2, 6, 38, 46, 44, 45, 49, 51, 48, 42, 2, 6, 45, 45, 47, 42, 42, 39, 45, 47, 44, 2, 6, 45, 44, 2, 11, 2, 2, 2, 52, 2, 63, 35, 2, 7, 47, 46, 52, 38, 47, 42, 41, 47, 47, 43, 42, 52, 45, 42, 45, 46, 47, 39, 46, 44, 46, 47, 40, 44, 49, 47, 47, 41, 43, 44, 46, 46, 43, 42, 45, 41, 48, 34, 49, 2, 16, 47, 2, 7, 41, 2, 35, 2, 45, 47, 41, 54, 45, 43, 42, 46, 34, 2, 7, 16, 44, 49, 37, 42, 50, 49, 2, 7, 51, 2, 6, 47, 37, 41, 41, 2, 7, 45, 45, 41, 2, 6, 54, 2, 7, 46, 2, 6, 44, 2, 8, 43, 50, 38, 40, 53, 37, 2, 6, 26, 2, 8, 11, 39, 2, 6, 45, 44, 38, 41, 40, 41, 49, 48, 45, 44, 47, 2, 7, 52, 47, 48, 53, 37, 43, 38, 46, 43, 40, 41, 44, 40, 43, 48, 46, 43, 48, 48, 48, 40, 45, 43, 35, 46, 41, 40, 38, 39, 43, 45, 2, 8, 46, 49, 2, 6, 41, 2, 7, 38, 41, 43, 45, 45, 48, 52, 41, 2, 26, 2, 6, 45, 38, 39, 49, 42, 40, 43, 53, 49, 50, 41, 46, 46, 47, 45, 38, 47, 55, 45, 47, 46, 48, 54, 49, 37, 44, 43, 46, 43, 40, 49, 2, 43, 2, 6, 24, 2, 6, 28, 34, 2, 6, 48, 2, 6, 54, 47, 12, 2, 6, 17, 2, 6, 47, 47, 2, 6, 37, 2, 6, 37, 40, 39, 45, 38, 47, 2, 6, 47, 2, 6, 43, 44, 2, 6, 41, 2, 6, 50, 47, 42, 41, 39, 2, 6, 17, 2, 6, 28, 2, 6, 39, 2, 6, 40, 39, 2, 6, 41, 2, 6, 10, 2, 6, 32, 2, 6, 21, 2, 6, 35, 41, 38, 21, 2, 6, 29, 2, 6, 42, 40, 43, 51, 35, 43, 49, 45, 55, 39, 46, 38, 49, 45, 50, 43, 32, 2, 6, 21, 2, 6, 46, 2, 6, 26, 2, 6, 17, 45, 39, 43, 43, 43, 30, 2, 6, 20, 2, 6, 44, 43, 24, 2, 6, 45, 30, 2, 15, 17, 2, 6, 17, 2, 7, 17, 2, 6, 18, 2, 7, 29, 2, 6, 28, 2, 6, 41, 2, 6, 29, 2, 6, 45, 2, 6, 14, 2, 6, 17, 2, 6, 30, 2, 6, 18, 2, 6, 27, 2, 6, 32, 2, 6, 39, 2, 6, 53, 2, 15, 17, 2, 6, 19, 2, 6, 30, 2, 6, 40, 19, 2, 6, 24, 30, 2, 6, 20, 2, 6, 40, 50, 43, 44, 42, 41, 42, 46, 46, 17, 2, 6, 26, 2, 6, 39, 2, 44, 2, 46, 52, 53, 53, 2, 9, 2, 2, 2, 40, 2, 30, 2, 7, 40, 40, 40, 27, 2, 6, 20, 2, 7, 45, 40, 40, 45, 41, 10, 2, 6, 17, 2, 7, 19, 43, 46, 41, 46, 42, 44, 49, 41, 37, 46, 44, 48, 42, 55, 42, 39, 47, 45, 46, 45, 50, 32, 44, 45, 39, 38, 39, 46, 44, 44, 41, 42, 41, 48, 2, 6, 45, 48, 40, 45, 47, 47, 29, 2, 7, 17, 45, 2, 19, 2, 38, 38, 2, 6, 47, 45, 56, 2, 38, 2, 38, 51, 41, 43, 52, 49, 45, 48, 42, 45, 46, 52, 40, 46, 40, 49, 45, 37, 44, 44, 45, 43, 42, 44, 2, 7, 42, 2, 6, 47, 2, 7, 38, 26, 2, 6, 27, 44, 2, 7, 11, 2, 9, 2, 6, 42, 2, 6, 52, 2, 6, 24, 39, 45, 53, 37, 46, 43, 45, 44, 2, 6, 45, 25, 2, 6, 47, 41, 47, 2, 6, 46, 2, 6, 47, 49, 54, 48, 45, 2, 6, 42, 24, 2, 6, 44, 2, 6, 52, 42, 2, 6, 45, 45, 48, 48, 45, 44, 47, 40, 44, 43, 38, 41, 50, 47, 39, 44, 43, 51, 40, 48, 42, 2, 6, 24, 2, 11, 2, 2, 2, 25, 2, 41, 2, 6, 42, 2, 6, 35, 2, 6, 16, 2, 6, 29, 2, 6, 19, 2, 6, 52, 43, 2, 57, 2, 31, 2, 6, 50, 52, 49, 43, 28, 2, 6, 17, 2, 6, 18, 43, 41, 50, 39, 47, 50, 42, 52, 39, 37, 48, 50, 42, 39, 50, 46, 50, 43, 45, 48, 35, 46, 46, 42, 21, 2, 6, 26, 2, 16, 2, 6, 44, 46, 55, 38, 42, 51, 41, 41, 44, 48, 39, 41, 44, 49, 43, 46, 38, 48, 49, 2, 25, 2, 6, 36, 37, 15, 2, 6, 33, 40, 24, 2, 6, 18, 2, 6, 43, 2, 6, 18, 2, 6, 31, 38, 42, 35, 43, 2, 6, 49, 40, 42, 43, 49, 41, 42, 39, 38, 28, 2, 6, 22, 26, 2, 6, 28, 2, 6, 22, 2, 6, 29, 2, 6, 20, 42, 40, 2, 18, 2, 45, 2, 28, 2, 53, 40, 2, 28, 2, 6, 38, 2, 6, 46, 2, 6, 44, 2, 6, 46, 2, 6, 24, 2, 6, 24, 2, 11, 2, 2, 2, 44, 2, 27, 2, 6, 55, 2, 8, 10, 2, 6, 9, 2, 8, 25, 44, 24, 2, 6, 19, 2, 8, 43, 25, 2, 6, 28, 2, 8, 47, 2, 6, 7, 2, 8, 27, 46, 44, 48, 49, 41, 43, 51, 58, 41, 42, 41, 37, 53, 43, 2, 6, 8, 2, 8, 45, 2, 6, 9, 2, 8, 41, 45, 2, 6, 49, 40, 26, 2, 8, 18, 47, 42, 51, 46, 49, 36, 44, 46, 22, 2, 6, 22, 13, 2, 8, 45, 54, 45, 41, 45, 41, 41, 45, 43, 45, 19, 40, 48, 44, 37, 22, 45, 47, 36, 38, 41, 40, 39, 40, 48, 43, 41, 43, 47, 41, 48, 21, 44, 50, 41, 37, 43, 39, 42, 43, 37, 39, 40, 47, 48, 46, 49, 42, 41, 36, 2, 9, 2, 6, 47, 51, 43, 41, 48, 42, 34, 42, 51, 42, 42, 41, 46, 26, 46, 39, 50, 47, 2, 12, 2, 43, 36, 17, 2, 6, 31, 2, 6, 26, 2, 6, 30, 2, 6, 11, 2, 6, 34, 2, 6, 39, 2, 32, 2, 6, 26, 2, 6, 21, 2, 6, 15, 2, 6, 24, 2, 6, 23, 2, 6, 28, 2, 6, 17, 2, 6, 55, 23, 2, 15, 25, 2, 6, 49, 27, 2, 6, 52, 18, 2, 6, 35, 43, 45, 54, 41, 43, 25, 2, 6, 49, 2, 6, 38, 23, 2, 6, 30, 2, 6, 47, 52, 46, 45, 49, 45, 27, 2, 6, 30, 2, 6, 47, 2, 15, 23, 2, 6, 19, 2, 6, 11, 17, 2, 6, 27, 2, 6, 16, 2, 6, 34, 2, 6, 32, 2, 8, 19, 2, 6, 58, 52, 19, 2, 6, 28, 2, 6, 44, 20, 2, 8, 19, 2, 6, 47, 25, 41, 45, 20, 2, 8, 19, 2, 6, 55, 51, 2, 6, 48, 2, 6, 46, 53, 40, 13, 44, 44, 45, 35, 49, 48, 44, 60, 62, 39, 48, 48, 8, 2, 8, 19, 2, 6, 47, 42, 37, 51, 53, 46, 44, 41, 31, 2, 11, 2, 2, 2, 9, 2, 38, 2, 32, 2, 6, 48, 2, 6, 18, 2, 6, 48, 39, 19, 2, 6, 27, 2, 6, 50, 46, 52, 45, 46, 48, 45, 53, 46, 47, 2, 6, 25, 2, 6, 50, 40, 43, 48, 42, 46, 40, 23, 2, 6, 21, 2, 6, 50, 31, 2, 6, 36, 2, 6, 48, 42, 34, 59, 43, 41, 36, 21, 2, 6, 22, 2, 6, 31, 2, 6, 14, 20, 2, 6, 30, 41, 43, 51, 11, 46, 44, 45, 41, 50, 41, 21, 2, 6, 21, 2, 6, 67, 64, 2, 6, 56, 13, 2, 6, 44, 50, 38, 56, 49, 45, 43, 39, 14, 50, 40, 42, 38, 38, 46, 2, 6, 18, 2, 6, 32, 2, 6, 15, 2, 6, 38, 2, 6, 19, 2, 6, 28, 2, 6, 16, 2, 6, 11, 2, 18, 2, 18, 2, 38, 2, 6, 43, 2, 6, 32, 2, 6, 41, 46, 45, 42, 51, 39, 38, 43, 2, 6, 19, 2, 6, 25, 25, 2, 6, 15, 2, 6, 44, 44, 45, 37, 41, 41, 48, 42, 40, 46, 45, 45, 46, 43, 2, 6, 44, 35, 40, 47, 36, 46, 50, 2, 6, 44, 36, 19, 2, 6, 25, 47, 51, 51, 34, 42, 38, 46, 57, 45, 2, 11, 2, 2, 2, 33, 2, 58, 2, 7, 45, 44, 41, 45, 43, 43, 43, 54, 44, 39, 51, 51, 48, 40, 45, 41, 50, 39, 2, 8, 45, 44, 48, 41, 40, 40, 43, 31, 2, 6, 21, 47, 44, 19, 2, 7, 15, 47, 41, 18, 2, 7, 46, 2, 8, 46, 38, 44, 44, 2, 7, 45, 30, 2, 8, 11, 2, 58, 2, 19, 2, 6, 44, 24, 2, 7, 47, 2, 6, 45, 36, 41, 45, 39, 43, 36, 2, 7, 43, 2, 6, 43, 49, 2, 7, 46, 2, 18, 2, 44, 50, 2, 8, 40, 48, 2, 7, 26, 2, 49, 2, 27, 47, 2, 7, 44, 41, 44, 41, 41, 50, 42, 47, 43, 44, 39, 49, 40, 48, 46, 42, 41, 18, 45, 45, 41, 26, 2, 7, 19, 45, 39, 50, 49, 20, 2, 35, 2, 6, 32, 38, 39, 51, 49, 46, 51, 42, 44, 43, 18, 2, 8, 29, 2, 6, 37, 49, 44, 41, 44, 44, 42, 43, 42, 10, 48, 39, 46, 10, 60, 13, 61, 35, 10, 44, 2, 8, 31, 2, 6, 46, 10, 35, 36, 30, 30, 63, 67, 12, 67, 15, 49, 39, 48, 24, 2, 7, 18, 20, 2, 6, 26, 2, 7, 38, 2, 6, 50, 46, 42, 47, 44, 41, 45, 45, 49, 43, 46, 50, 47, 41, 47, 44, 40, 44, 49, 40, 22, 2, 7, 25, 2, 8, 25, 2, 6, 52, 40, 27, 2, 7, 18, 2, 6, 44, 36, 39, 47, 20, 2, 7, 28, 2, 6, 48, 20, 2, 8, 20, 2, 6, 47, 36, 41, 43, 37, 30, 2, 7, 17, 2, 8, 53, 2, 6, 35, 46, 2, 39, 2, 26, 2, 31, 2, 6, 20, 2, 6, 26, 2, 6, 38, 2, 6, 17, 2, 6, 40, 2, 6, 18, 2, 6, 61, 29, 2, 6, 28, 2, 6, 65, 32, 2, 6, 18, 2, 6, 64, 52, 2, 6, 67, 64, 65, 65, 16, 2, 6, 22, 2, 6, 30, 2, 6, 14, 2, 6, 44, 2, 6, 63, 61, 61, 65, 67, 62, 64, 2, 6, 64, 40, 2, 6, 16, 2, 6, 65, 64, 64, 67, 67, 18, 2, 6, 57, 67, 7, 2, 6, 25, 2, 6, 26, 2, 39, 2, 6, 46, 2, 6, 35, 2, 18, 2, 7, 19, 2, 6, 20, 2, 6, 61, 41, 2, 6, 43, 2, 7, 38, 46, 2, 6, 28, 2, 6, 19, 2, 6, 56, 10, 2, 7, 25, 2, 6, 56, 28, 2, 6, 51, 2, 6, 58, 62, 64, 9, 2, 7, 18, 2, 6, 21, 2, 6, 24, 2, 6, 60, 43, 2, 6, 27, 2, 6, 62, 56, 2, 6, 65, 7, 2, 6, 61, 61, 2, 7, 63, 48, 2, 6, 33, 2, 6, 64, 30, 2, 6, 64, 64, 23, 2, 17, 22, 2, 6, 57, 62, 65, 23, 2, 6, 43, 2, 6, 62, 66, 58, 64, 2, 7, 30, 2, 6, 59, 67, 65, 20, 2, 6, 23, 2, 6, 63, 59, 64, 66, 38, 2, 6, 34, 2, 6, 65, 10, 2, 7, 28, 2, 6, 60, 60, 66, 64, 64, 67, 66, 64, 65, 60, 62, 64, 67, 66, 53, 2, 6, 50, 2, 6, 60, 2, 6, 59, 65, 62, 2, 6, 61, 67, 65, 63, 63, 63, 7, 2, 6, 56, 25, 2, 6, 54, 46, 2, 6, 57, 13, 2, 6, 61, 29, 2, 6, 27, 2, 6, 35, 2, 6, 62, 66, 65, 67, 65, 27, 2, 6, 58, 63, 57, 67, 66, 31, 2, 6, 64, 62, 66, 32, 2, 6, 16, 2, 7, 50, 2, 6, 28, 2, 6, 55, 2, 6, 62, 65, 67, 67, 31, 2, 32, 2, 7, 24, 2, 6, 63, 64, 63, 60, 64, 31, 2, 7, 24, 2, 6, 61, 29, 2, 19, 2, 6, 30, 2, 6, 67, 66, 2, 6, 64, 23, 2, 6, 67, 53, 2, 6, 35, 2, 6, 64, 9, 2, 6, 38, 2, 6, 13, 2, 6, 19, 2, 6, 36, 2, 6, 59, 59, 66, 64, 67, 15, 2, 6, 58, 2, 6, 32, 2, 6, 7, 37, 38, 2, 2, 6, 32, 2, 6, 38, 2, 6, 60, 20, 2, 6, 24, 2, 6, 30, 2, 6, 7, 26, 21, 45, 65, 28, 2, 31, 2, 64, 62, 60, 61, 63, 62, 67, 60, 64, 51, 2, 9, 23, 2, 6, 63, 65, 66, 67, 67, 64, 64, 61, 62, 67, 67, 64, 61, 2, 49, 2, 43, 2, 46, 49, 48, 53, 44, 44, 53, 50, 45, 54, 44, 51, 32, 2, 18, 2, 6, 60, 13, 2, 9, 23, 53, 48, 43, 51, 50, 53, 48, 49, 52, 42, 51, 44, 48, 17, 45, 52, 49, 48, 52, 44, 44, 47, 51, 26, 52, 43, 53, 53, 29, 2, 6, 19, 2, 6, 64, 65, 12, 2, 9, 49, 2, 6, 21, 2, 6, 38, 2, 9, 53, 46, 49, 45, 49, 53, 59, 49, 46, 51, 50, 49, 54, 29, 2, 6, 64, 27, 2, 6, 62, 62, 67, 65, 51, 2, 6, 53, 2, 6, 53, 64, 65, 28, 2, 6, 13, 2, 6, 51, 2, 55, 2, 60, 11, 2, 9, 14, 2, 6, 60, 66, 29, 2, 9, 14, 2, 6, 58, 2, 22, 2, 61, 37, 2, 6, 15, 2, 40, 2, 6, 24, 17, 41, 44, 42, 44, 45, 45, 48, 49, 13, 40, 48, 43, 50, 48, 42, 43, 38, 8, 40, 45, 41, 40, 42, 46, 46, 55, 48, 46, 40, 40, 43, 49, 56, 15, 44, 44, 44, 48, 38, 13, 49, 43, 39, 43, 42, 50, 53, 45, 44, 47, 47, 44, 46, 41, 43, 41, 48, 48, 2, 9, 2, 2, 2, 2, 10, 2, 32, 2, 57, 16, 2, 7, 43, 45, 42, 38, 2, 6, 46, 48, 2, 7, 43, 41, 47, 20, 2, 8, 26, 2, 6, 24, 2, 7, 43, 2, 6, 43, 25, 2, 8, 19, 17, 2, 6, 44, 50, 41, 42, 42, 32, 2, 6, 17, 47, 29, 2, 7, 48, 28, 42, 45, 2, 6, 20, 2, 40, 2, 7, 31, 45, 42, 18, 43, 48, 42, 38, 42, 27, 2, 8, 21, 39, 44, 52, 41, 23, 2, 6, 23, 2, 15, 2, 6, 51, 61, 42, 50, 52, 35, 20, 2, 7, 28, 55, 51, 45, 42, 17, 2, 6, 45, 2, 29, 2, 17, 2, 6, 47, 43, 45, 44, 49, 39, 48, 45, 45, 53, 50, 45, 41, 38, 50, 51, 46, 41, 43, 40, 51, 40, 48, 44, 42, 45, 41, 46, 39, 49, 43, 45, 45, 42, 28, 2, 6, 15, 43, 2, 6, 39, 2, 6, 39, 40, 31, 2, 6, 12, 25, 2, 6, 48, 49, 51, 41, 47, 17, 2, 6, 25, 2, 6, 10, 2, 6, 15, 2, 6, 27, 2, 6, 62, 27, 2, 6, 64, 2, 6, 58, 65, 66, 55, 2, 6, 42, 2, 6, 55, 64, 6, 2, 6, 26, 2, 6, 57, 65, 67, 66, 63, 67, 66, 60, 9, 2, 6, 19, 2, 6, 59, 39, 2, 6, 33, 2, 6, 65, 66, 64, 63, 63, 11, 2, 6, 33, 2, 6, 59, 67, 66, 67, 63, 66, 29, 2, 9, 2, 6, 42, 59, 44, 45, 52, 43, 42, 47, 50, 48, 37, 48, 2, 31, 2, 7, 44, 52, 53, 42, 43, 44, 31, 51, 42, 42, 36, 45, 48, 47, 2, 6, 40, 42, 48, 45, 46, 41, 44, 47, 47, 47, 43, 31, 2, 7, 17, 46, 2, 11, 2, 2, 2, 33, 2, 37, 2, 6, 58, 64, 65, 60, 62, 52, 65, 67, 67, 65, 67, 52, 2, 11, 24, 2, 6, 62, 66, 63, 66, 63, 64, 64, 66, 60, 62, 65, 65, 59, 64, 60, 64, 25, 2, 11, 58, 2, 6, 62, 63, 63, 64, 65, 64, 17, 2, 19, 2, 50, 2, 58, 2, 6, 40, 2, 6, 29, 2, 18, 2, 35, 2, 16, 19, 2, 25, 2, 6, 20, 2, 18, 2, 6, 36, 2, 6, 38, 39, 2, 6, 20, 2, 6, 30, 44, 45, 60, 46, 43, 50, 48, 44, 50, 49, 42, 52, 49, 47, 49, 50, 47, 46, 43, 46, 47, 47, 40, 43, 39, 41, 33, 44, 41, 45, 28, 2, 6, 16, 52, 44, 2, 6, 46, 18, 2, 66, 41, 2, 7, 30, 2, 6, 62, 45, 2, 7, 62, 7, 2, 6, 67, 21, 2, 6, 54, 2, 6, 21, 2, 6, 64, 12, 2, 6, 65, 20, 2, 6, 44, 2, 8, 41, 2, 6, 48, 2, 6, 41, 2, 6, 32, 33, 2, 6, 14, 2, 6, 32, 2, 6, 14, 2, 6, 39, 2, 6, 27, 2, 6, 51, 2, 6, 19, 2, 6, 10, 2, 6, 25, 2, 6, 9, 2, 6, 14, 2, 6, 60, 65, 22, 2, 6, 38, 2, 6, 62, 66, 66, 67, 62, 57, 2, 41, 2, 62, 60, 59, 57, 63, 66, 66, 61, 64, 67, 43, 2, 11, 2, 6, 27, 2, 6, 53, 2, 6, 52, 2, 19, 2, 6, 64, 19, 2, 6, 39, 2, 6, 61, 50, 2, 6, 53, 2, 6, 33, 36, 35, 2, 6, 44, 2, 6, 22, 2, 6, 18, 2, 29, 2, 10, 49, 47, 44, 50, 49, 39, 2, 11, 39, 44, 42, 47, 46, 43, 43, 36, 49, 41, 52, 56, 2, 10, 50, 48, 48, 42, 27, 2, 11, 23, 47, 38, 47, 2, 6, 30, 2, 11, 41, 48, 38, 39, 2, 10, 44, 40, 37, 38, 51, 40, 36, 45, 42, 44, 37, 46, 48, 47, 49, 54, 43, 50, 51, 45, 41, 46, 43, 33, 38, 40, 40, 52, 43, 51, 2, 11, 46, 46, 40, 42, 43, 46, 47, 35, 2, 6, 43, 2, 10, 49, 48, 29, 11, 2, 11, 23, 44, 2, 9, 2, 6, 32, 2, 8, 39, 2, 6, 30, 2, 7, 56, 2, 6, 61, 8, 2, 7, 28, 2, 6, 58, 63, 65, 61, 66, 14, 2, 19, 2, 43, 2, 6, 33, 2, 6, 61, 23, 2, 6, 38, 2, 6, 51, 2, 6, 26, 2, 6, 62, 64, 22, 2, 6, 58, 46, 49, 52, 37, 38, 2, 45, 2, 6, 64, 62, 66, 2, 6, 17, 2, 6, 33, 2, 8, 20, 2, 6, 21, 2, 7, 28, 2, 6, 25, 2, 38, 2, 6, 40, 30, 48, 32, 66, 62, 60, 2, 6, 15, 2, 6, 22, 38, 32, 41, 28, 2, 6, 24, 2, 6, 59, 24, 2, 6, 21, 2, 6, 35, 2, 6, 27, 2, 6, 51, 41, 45, 19, 2, 39, 2, 7, 45, 2, 6, 23, 2, 7, 17, 2, 6, 23, 2, 7, 48, 2, 6, 18, 2, 7, 34, 2, 6, 63, 62, 34, 2, 7, 61, 31, 2, 6, 29, 2, 7, 61, 22, 2, 6, 18, 2, 7, 61, 65, 62, 34, 2, 6, 16, 2, 7, 16, 2, 6, 64, 65, 65, 8, 2, 6, 57, 27, 2, 6, 65, 50, 2, 6, 64, 2, 6, 60, 24, 2, 6, 32, 2, 6, 51, 2, 6, 64, 63, 14, 2, 6, 26, 2, 6, 62, 33, 2, 6, 64, 8, 2, 41, 2, 67, 66, 14, 2, 7, 63, 2, 6, 62, 2, 7, 20, 2, 6, 13, 2, 7, 23, 2, 6, 19, 2, 7, 34, 2, 6, 56, 63, 63, 2, 7, 59, 21, 2, 6, 61, 64, 63, 64, 63, 65, 65, 26, 2, 19, 2, 21, 2, 6, 57, 2, 6, 60, 2, 6, 44, 2, 6, 31, 2, 6, 29, 2, 6, 18, 2, 6, 20, 2, 6, 63, 41, 2, 6, 16, 2, 9, 2, 6, 27, 2, 18, 2, 22, 2, 41, 2, 43, 53, 55, 40, 51, 44, 41, 33, 44, 45, 39, 45, 2, 9, 2, 2, 2, 34, 2, 46, 2, 7, 44, 50, 44, 41, 40, 39, 22, 2, 7, 28, 36, 37, 39, 2, 6, 40, 47, 45, 45, 41, 43, 46, 43, 49, 50, 42, 42, 46, 2, 7, 45, 41, 33, 2, 15, 19, 2, 25, 2, 19, 2, 6, 45, 37, 56, 43, 50, 50, 50, 39, 27, 2, 7, 23, 2, 18, 2, 45, 43, 38, 41, 45, 43, 45, 44, 50, 47, 48, 40, 48, 40, 44, 47, 49, 44, 48, 44, 45, 41, 45, 43, 42, 47, 49, 47, 45, 43, 41, 43, 44, 45, 57, 41, 18, 2, 23, 2, 17, 2, 6, 43, 47, 47, 42, 44, 12, 42, 43, 51, 50, 48, 48, 41, 46, 5, 46, 42, 43, 40, 41, 51, 46, 44, 43, 2, 9, 2, 32, 2, 7, 44, 44, 2, 9, 2, 2, 2, 39, 2, 29, 2, 6, 50, 55, 53, 47, 30, 2, 6, 35, 2, 8, 19, 44, 2, 35, 2, 17, 2, 6, 33, 2, 8, 45, 2, 6, 43, 2, 8, 45, 2, 6, 44, 2, 8, 23, 2, 6, 24, 2, 8, 21, 2, 6, 26, 51, 49, 2, 8, 50, 2, 6, 52, 38, 43, 2, 8, 47, 17, 2, 6, 39, 2, 6, 26, 25, 2, 35, 2, 6, 26, 2, 19, 2, 8, 28, 2, 6, 34, 2, 25, 2, 8, 41, 2, 6, 45, 44, 2, 8, 17, 2, 6, 28, 48, 16, 47, 47, 52, 46, 36, 40, 45, 2, 8, 51, 30, 2, 6, 13, 44, 44, 45, 47, 43, 40, 41, 47, 39, 44, 29, 2, 8, 18, 48, 2, 6, 45, 46, 43, 46, 44, 35, 39, 35, 43, 39, 52, 44, 48, 48, 45, 42, 48, 48, 54, 53, 42, 44, 41, 49, 46, 46, 48, 40, 20, 47, 43, 40, 45, 46, 43, 26, 2, 8, 26, 43, 46, 32, 2, 6, 18, 39, 48, 23, 2, 8, 25, 46, 24, 2, 6, 27, 46, 42, 40, 45, 27, 2, 8, 10, 2, 6, 33, 2, 16, 2, 44, 56, 2, 8, 17, 2, 6, 42, 46, 45, 9, 2, 8, 32, 44, 42, 46, 46, 23, 2, 6, 27, 2, 8, 26, 39, 48, 46, 45, 45, 42, 42, 46, 2, 6, 46, 52, 48, 43, 42, 51, 2, 8, 28, 2, 6, 27, 2, 8, 40, 2, 6, 27, 2, 8, 28, 2, 6, 47, 38, 50, 2, 15, 2, 8, 41, 32, 21, 2, 6, 10, 49, 49, 44, 46, 47, 46, 48, 47, 44, 45, 44, 45, 49, 41, 40, 45, 2, 8, 46, 2, 6, 38, 41, 45, 38, 46, 41, 42, 37, 41, 40, 45, 48, 45, 47, 41, 47, 25, 45, 43, 44, 41, 47, 35, 46, 27, 2, 8, 18, 2, 6, 43, 44, 49, 43, 51, 40, 39, 49, 48, 42, 46, 38, 38, 46, 41, 31, 2, 8, 46, 47, 28, 2, 6, 35, 2, 8, 8, 37, 2, 6, 53, 46, 47, 41, 40, 49, 45, 48, 46, 32, 46, 46, 49, 42, 46, 21, 2, 52, 2, 2, 2, 9, 2, 32, 2, 52, 2, 7, 54, 50, 20, 2, 8, 41, 2, 48, 2, 46, 2, 7, 34, 2, 8, 44, 43, 42, 45, 42, 26, 2, 7, 15, 44, 40, 39, 47, 41, 54, 46, 44, 40, 40, 45, 2, 8, 40, 43, 33, 47, 2, 7, 24, 45, 48, 40, 49, 2, 42, 2, 50, 40, 51, 49, 45, 2, 40, 2, 51, 43, 47, 42, 38, 51, 43, 40, 2, 11, 2, 39, 2, 17, 2, 6, 16, 2, 16, 32, 2, 6, 53, 2, 39, 2, 6, 50, 2, 6, 44, 2, 6, 49, 28, 2, 6, 20, 2, 6, 15, 2, 6, 64, 67, 12, 2, 6, 36, 2, 6, 61, 64, 64, 66, 65, 8, 2, 6, 32, 2, 6, 60, 2, 6, 63, 11, 2, 6, 63, 24, 2, 7, 19, 2, 6, 55, 2, 11, 2, 2, 2, 40, 2, 24, 2, 7, 47, 47, 44, 41, 49, 55, 53, 40, 44, 38, 16, 2, 22, 2, 30, 2, 6, 43, 25, 2, 7, 18, 2, 6, 51, 2, 7, 22, 2, 6, 37, 2, 34, 2, 7, 32, 2, 6, 12, 2, 7, 19, 2, 6, 53, 65, 65, 66, 64, 10, 2, 7, 13, 2, 6, 63, 41, 2, 7, 30, 2, 6, 62, 23, 2, 7, 20, 2, 6, 64, 66, 65, 28, 2, 7, 42, 2, 6, 29, 2, 22, 2, 7, 49, 41, 54, 50, 42, 45, 14, 2, 6, 14, 2, 7, 13, 2, 6, 7, 2, 7, 41, 2, 6, 59, 24, 2, 7, 28, 2, 6, 63, 51, 2, 9, 2, 7, 50, 45, 41, 54, 2, 40, 2, 51, 48, 43, 42, 47, 47, 38, 46, 43, 47, 44, 2, 9, 2, 2, 2, 31, 2, 42, 2, 6, 45, 43, 43, 44, 42, 39, 22, 2, 7, 23, 2, 6, 15, 2, 31, 2, 48, 2, 6, 35, 2, 7, 26, 2, 6, 32, 2, 7, 30, 2, 6, 25, 2, 7, 39, 2, 6, 42, 23, 2, 7, 39, 40, 41, 48, 41, 42, 2, 6, 44, 2, 7, 32, 2, 6, 47, 45, 50, 48, 45, 2, 7, 22, 2, 9, 2, 6, 32, 2, 6, 48, 2, 26, 2, 40, 42, 42, 45, 49, 39, 36, 42, 42, 43, 54, 45, 45, 54, 47, 45, 38, 44, 38, 36, 46, 44, 40, 40, 48, 46, 40, 46, 43, 40, 48, 43, 40, 46, 45, 2, 9, 2, 2, 2, 42, 2, 28, 2, 8, 28, 2, 7, 38, 32, 2, 8, 22, 2, 7, 47, 61, 53, 51, 38, 44, 51, 57, 53, 42, 53, 46, 2, 8, 18, 2, 17, 2, 43, 46, 39, 42, 2, 34, 2, 6, 44, 2, 8, 19, 2, 15, 37, 24, 33, 28, 2, 8, 43, 2, 6, 31, 10, 31, 27, 36, 28, 2, 8, 20, 2, 6, 17, 10, 43, 2, 15, 2, 8, 27, 2, 6, 10, 37, 37, 30, 2, 7, 26, 2, 6, 62, 67, 13, 2, 7, 26, 2, 6, 67, 25, 10, 39, 34, 33, 28, 2, 44, 35, 37, 27, 2, 7, 17, 2, 6, 53, 10, 33, 32, 43, 34, 2, 38, 30, 40, 40, 2, 7, 30, 2, 6, 59, 66, 63, 66, 33, 2, 9, 2, 7, 52, 2, 17, 2, 49, 52, 48, 45, 49, 45, 58, 56, 45, 45, 51, 44, 44, 47, 41, 48, 40, 42, 43, 43, 29, 2, 19, 2, 8, 28, 2, 7, 49, 2, 22, 2, 21, 2, 7, 25, 37, 46, 40, 51, 42, 37, 40, 46, 52, 40, 2, 8, 45, 44, 2, 19, 2, 7, 22, 2, 42, 2, 7, 51, 2, 8, 20, 2, 7, 28, 2, 8, 19, 2, 33, 2, 7, 49, 20, 2, 8, 23, 2, 7, 54, 47, 47, 20, 2, 7, 29, 43, 47, 42, 45, 45, 54, 13, 2, 7, 21, 2, 7, 7, 2, 8, 17, 2, 7, 26, 2, 7, 45, 51, 47, 45, 45, 44, 31, 2, 7, 21, 2, 7, 29, 46, 32, 2, 7, 15, 37, 56, 54, 19, 2, 7, 23, 2, 7, 26, 2, 7, 49, 44, 28, 2, 7, 20, 41, 45, 39, 43, 26, 2, 8, 27, 2, 7, 30, 2, 58, 11, 2, 51, 46, 49, 46, 42, 46, 43, 46, 43, 27, 2, 6, 10, 40, 35, 43, 2, 25, 2, 7, 50, 25, 2, 6, 59, 67, 20, 2, 7, 34, 2, 6, 55, 54, 2, 7, 58, 2, 6, 63, 58, 67, 67, 49, 10, 43, 2, 7, 47, 40, 2, 6, 10, 32, 32, 26, 27, 30, 2, 36, 29, 30, 29, 31, 2, 57, 2, 9, 2, 7, 25, 2, 7, 42, 37, 51, 50, 36, 49, 49, 37, 45, 44, 25, 2, 7, 17, 43, 49, 41, 50, 33, 2, 7, 15, 50, 24, 2, 11, 2, 2, 2, 39, 2, 32, 2, 6, 41, 2, 10, 51, 2, 6, 19, 2, 17, 2, 43, 47, 2, 18, 2, 11, 21, 2, 6, 25, 2, 9, 59, 67, 50, 2, 6, 52, 60, 63, 63, 66, 63, 67, 67, 66, 66, 66, 65, 65, 58, 44, 2, 51, 47, 36, 2, 11, 2, 2, 2, 40, 2, 27, 2, 7, 47, 47, 46, 44, 18, 2, 7, 31, 44, 39, 45, 29, 2, 7, 29, 49, 53, 46, 47, 43, 48, 43, 39, 48, 49, 52, 49, 43, 38, 33, 2, 7, 36, 41, 44, 42, 49, 2, 7, 53, 44, 49, 52, 43, 48, 2, 22, 2, 21, 2, 7, 32, 42, 2, 7, 32, 2, 7, 45, 50, 27, 2, 7, 31, 11, 2, 19, 2, 65, 63, 63, 64, 2, 52, 41, 2, 7, 20, 2, 7, 38, 44, 20, 2, 7, 45, 40, 46, 21, 2, 7, 25, 42, 26, 2, 7, 14, 41, 2, 7, 45, 46, 43, 36, 47, 42, 49, 23, 2, 7, 27, 38, 28, 2, 7, 17, 49, 45, 47, 43, 42, 27, 2, 7, 29, 2, 7, 36, 44, 45, 44, 52, 37, 51, 50, 45, 47, 43, 51, 42, 28, 2, 7, 17, 2, 7, 11, 2, 7, 23, 2, 7, 16, 2, 7, 42, 28, 2, 7, 28, 37, 39, 38, 46, 54, 47, 46, 37, 43, 44, 21, 2, 7, 28, 2, 7, 39, 43, 25, 2, 7, 19, 2, 7, 48, 40, 39, 42, 43, 45, 42, 37, 45, 55, 40, 49, 52, 56, 45, 44, 21, 2, 7, 34, 2, 7, 46, 51, 51, 47, 49, 38, 52, 44, 46, 47, 44, 46, 30, 2, 7, 14, 44, 38, 40, 44, 45, 47, 51, 52, 18, 2, 7, 30, 47, 47, 54, 51, 47, 49, 47, 9, 44, 48, 53, 47, 44, 29, 2, 16, 2, 23, 2, 8, 41, 55, 2, 7, 20, 2, 8, 41, 50, 44, 53, 45, 53, 48, 46, 42, 53, 45, 48, 39, 38, 45, 49, 47, 17, 2, 7, 28, 2, 8, 19, 2, 7, 44, 42, 43, 50, 41, 49, 31, 2, 9, 2, 7, 25, 40, 43, 25, 2, 11, 2, 2, 2, 8, 2, 24, 2, 38, 2, 10, 59, 26, 2, 10, 64, 57, 2, 10, 65, 2, 10, 21, 2, 10, 60, 66, 63, 39, 2, 10, 38, 2, 10, 59, 66, 66, 64, 56, 2, 10, 18, 2, 10, 39, 2, 10, 53, 67, 2, 10, 59, 67, 62, 67, 28, 2, 10, 21, 2, 10, 39, 2, 10, 19, 2, 10, 62, 65, 63, 29, 2, 10, 8, 2, 10, 60, 31, 2, 10, 64, 2, 10, 60, 63, 61, 67, 2, 10, 65, 2, 10, 31, 2, 10, 24, 2, 10, 7, 2, 10, 22, 2, 44, 2, 10, 60, 61, 62, 61, 9, 2, 22, 2, 19, 2, 40, 35, 49, 43, 2, 6, 62, 15, 2, 6, 52, 2, 6, 63, 8, 2, 10, 10, 38, 36, 39, 35, 2, 22, 2, 6, 61, 64, 63, 64, 15, 2, 6, 20, 2, 6, 61, 67, 57, 20, 2, 6, 14, 2, 6, 61, 65, 64, 62, 7, 2, 10, 10, 36, 33, 36, 32, 2, 28, 2, 6, 61, 66, 65, 65, 65, 64, 65, 65, 64, 65, 65, 66, 11, 2, 6, 26, 2, 6, 39, 2, 6, 37, 2, 6, 63, 54, 2, 10, 12, 10, 36, 32, 2, 6, 50, 2, 10, 67, 36, 2, 6, 62, 52, 2, 10, 59, 2, 6, 32, 2, 10, 18, 2, 6, 18, 2, 10, 19, 2, 6, 27, 2, 10, 60, 2, 6, 58, 62, 64, 66, 57, 2, 10, 60, 39, 2, 6, 25, 2, 10, 60, 64, 15, 2, 6, 42, 2, 10, 59, 47, 2, 6, 6, 2, 10, 66, 2, 6, 18, 2, 10, 27, 2, 6, 16, 2, 10, 35, 2, 6, 19, 2, 10, 61, 15, 2, 6, 50, 2, 10, 60, 66, 64, 16, 2, 6, 27, 2, 10, 61, 67, 67, 38, 2, 6, 15, 2, 10, 61, 2, 6, 18, 2, 10, 60, 61, 27, 2, 6, 7, 2, 10, 12, 2, 6, 64, 65, 67, 64, 65, 64, 65, 60, 61, 67, 20, 2, 6, 23, 2, 6, 64, 2, 6, 10, 2, 6, 20, 2, 26, 2, 6, 19, 2, 6, 55, 63, 23, 2, 6, 50, 2, 6, 62, 61, 66, 63, 50, 47, 45, 51, 52, 50, 2, 59, 66, 2, 52, 47, 47, 42, 27, 2, 26, 2, 7, 21, 2, 6, 18, 27, 2, 7, 21, 2, 11, 41, 48, 50, 47, 48, 54, 43, 46, 21, 2, 7, 29, 2, 11, 18, 43, 40, 27, 2, 7, 25, 40, 52, 40, 26, 2, 6, 25, 2, 8, 32, 23, 51, 53, 33, 2, 7, 15, 43, 44, 47, 48, 25, 45, 45, 42, 18, 2, 6, 14, 24, 48, 52, 41, 18, 25, 2, 7, 26, 23, 2, 6, 24, 46, 43, 39, 45, 2, 7, 21, 2, 8, 17, 2, 6, 14, 2, 6, 25, 2, 61, 2, 6, 44, 38, 2, 8, 23, 2, 6, 42, 45, 45, 2, 7, 24, 2, 8, 31, 2, 6, 36, 62, 41, 43, 42, 42, 49, 43, 45, 47, 28, 2, 8, 23, 44, 38, 46, 32, 2, 6, 16, 42, 40, 38, 46, 2, 9, 2, 7, 45, 2, 17, 14, 54, 45, 48, 42, 40, 42, 2, 11, 2, 2, 2, 33, 2, 29, 2, 6, 50, 39, 2, 6, 23, 2, 6, 47, 46, 49, 47, 43, 55, 42, 29, 2, 6, 23, 2, 6, 19, 43, 43, 47, 41, 40, 49, 38, 44, 48, 47, 43, 42, 31, 2, 6, 16, 2, 6, 49, 42, 2, 6, 16, 2, 6, 45, 42, 42, 42, 41, 45, 44, 44, 29, 2, 6, 19, 2, 6, 41, 40, 52, 48, 41, 44, 47, 43, 44, 28, 2, 6, 22, 2, 6, 40, 39, 42, 46, 57, 47, 49, 23, 2, 6, 42, 2, 6, 50, 47, 37, 44, 43, 22, 2, 6, 27, 2, 6, 50, 52, 46, 42, 53, 54, 39, 18, 2, 6, 46, 42, 2, 6, 40, 46, 36, 34, 36, 49, 48, 26, 2, 6, 24, 2, 16, 2, 6, 49, 2, 6, 52, 2, 6, 19, 2, 6, 65, 65, 67, 42, 2, 6, 56, 41, 2, 6, 58, 45, 2, 6, 39, 2, 6, 56, 2, 6, 42, 2, 6, 55, 2, 6, 63, 65, 58, 11, 2, 6, 28, 39, 2, 6, 61, 57, 61, 66, 66, 47, 2, 6, 61, 65, 64, 67, 67, 64, 45, 2, 6, 46, 2, 6, 64, 15, 2, 6, 6, 2, 6, 67, 14, 2, 6, 48, 2, 6, 13, 2, 6, 59, 2, 6, 14, 2, 6, 33, 2, 6, 63, 30, 2, 6, 55, 2, 6, 60, 58, 2, 6, 60, 43, 2, 6, 20, 2, 6, 20, 2, 6, 39, 2, 6, 58, 60, 67, 63, 63, 23, 2, 6, 30, 2, 6, 61, 2, 6, 38, 2, 6, 59, 67, 62, 67, 66, 2, 6, 58, 59, 63, 46, 2, 6, 21, 2, 6, 58, 2, 6, 62, 59, 64, 65, 25, 2, 6, 33, 2, 6, 60, 2, 6, 37, 2, 6, 15, 2, 15, 2, 63, 13, 2, 6, 52, 2, 6, 67, 67, 63, 60, 64, 43, 2, 17, 2, 7, 59, 66, 65, 24, 2, 6, 64, 67, 22, 2, 7, 45, 2, 6, 16, 2, 7, 59, 34, 2, 6, 24, 2, 14, 2, 6, 36, 2, 6, 61, 67, 63, 2, 6, 22, 2, 6, 60, 32, 2, 6, 64, 41, 2, 6, 61, 65, 66, 65, 29, 2, 64, 12, 2, 7, 49, 2, 46, 2, 6, 50, 39, 53, 42, 18, 47, 45, 45, 39, 47, 44, 45, 43, 37, 24, 41, 47, 42, 22, 2, 7, 27, 49, 42, 42, 44, 39, 45, 43, 24, 2, 6, 22, 47, 29, 2, 7, 19, 2, 6, 47, 53, 25, 2, 7, 19, 2, 6, 19, 2, 7, 50, 21, 2, 6, 21, 50, 2, 7, 41, 50, 2, 7, 40, 2, 6, 52, 2, 25, 2, 6, 19, 2, 7, 46, 41, 42, 46, 49, 41, 46, 49, 42, 39, 51, 50, 39, 2, 6, 15, 2, 7, 16, 2, 14, 2, 6, 6, 2, 7, 5, 2, 6, 11, 2, 6, 29, 2, 7, 15, 2, 7, 52, 25, 2, 47, 2, 19, 2, 6, 48, 35, 2, 14, 2, 7, 33, 2, 7, 20, 2, 8, 34, 46, 44, 2, 6, 13, 2, 7, 25, 2, 8, 40, 2, 7, 50, 2, 6, 41, 2, 8, 29, 2, 7, 28, 2, 7, 19, 2, 7, 53, 2, 6, 46, 42, 38, 2, 7, 22, 2, 14, 2, 6, 23, 2, 7, 18, 2, 50, 45, 2, 7, 31, 2, 6, 18, 2, 20, 2, 6, 30, 2, 6, 48, 2, 6, 20, 2, 7, 46, 45, 2, 6, 21, 2, 7, 31, 2, 8, 52, 39, 2, 9, 2, 6, 41, 25, 2, 18, 2, 7, 45, 44, 44, 44, 42, 43, 45, 48, 2, 6, 28, 27, 2, 19, 2, 18, 19, 2, 7, 43, 2, 6, 48, 44, 19, 2, 14, 2, 7, 22, 39, 45, 48, 18, 2, 9, 2, 6, 47, 47, 48, 45, 48, 50, 37, 44, 21, 2, 6, 19, 43, 30, 2, 6, 19, 52, 38, 53, 42, 35, 50, 21, 2, 36, 2, 29, 2, 6, 51, 37, 22, 2, 6, 20, 47, 46, 39, 39, 50, 45, 2, 9, 2, 6, 54, 46, 32, 2, 17, 2, 58, 2, 7, 22, 2, 6, 26, 47, 2, 7, 45, 45, 37, 26, 2, 15, 22, 45, 53, 42, 45, 34, 2, 6, 21, 42, 44, 47, 49, 48, 40, 45, 48, 39, 45, 47, 39, 48, 16, 2, 7, 26, 39, 43, 47, 48, 2, 6, 43, 51, 43, 54, 29, 2, 7, 19, 42, 40, 52, 42, 25, 43, 47, 29, 2, 17, 2, 65, 24]
In [14]:
sum(linelengths), np.mean(linelengths), np.median(linelengths), np.std(linelengths)
Out[14]:
(180718, 26.69394387001477, 26.0, 21.029872021427462)
But perhaps we want to access Hamlet word by word and not line by line
In [10]:
hamletfile=open("hamlet.txt")
hamlettext=hamletfile.read()
hamletfile.close()
hamlettokens=hamlettext.split()#split with no arguments splits on whitespace
len(hamlettokens)
print hamlettokens[:1000]
['\xef\xbb\xbfXXXX', 'HAMLET,', 'PRINCE', 'OF', 'DENMARK', 'by', 'William', 'Shakespeare', 'PERSONS', 'REPRESENTED.', 'Claudius,', 'King', 'of', 'Denmark.', 'Hamlet,', 'Son', 'to', 'the', 'former,', 'and', 'Nephew', 'to', 'the', 'present', 'King.', 'Polonius,', 'Lord', 'Chamberlain.', 'Horatio,', 'Friend', 'to', 'Hamlet.', 'Laertes,', 'Son', 'to', 'Polonius.', 'Voltimand,', 'Courtier.', 'Cornelius,', 'Courtier.', 'Rosencrantz,', 'Courtier.', 'Guildenstern,', 'Courtier.', 'Osric,', 'Courtier.', 'A', 'Gentleman,', 'Courtier.', 'A', 'Priest.', 'Marcellus,', 'Officer.', 'Bernardo,', 'Officer.', 'Francisco,', 'a', 'Soldier', 'Reynaldo,', 'Servant', 'to', 'Polonius.', 'Players.', 'Two', 'Clowns,', 'Grave-diggers.', 'Fortinbras,', 'Prince', 'of', 'Norway.', 'A', 'Captain.', 'English', 'Ambassadors.', 'Ghost', 'of', "Hamlet's", 'Father.', 'Gertrude,', 'Queen', 'of', 'Denmark,', 'and', 'Mother', 'of', 'Hamlet.', 'Ophelia,', 'Daughter', 'to', 'Polonius.', 'Lords,', 'Ladies,', 'Officers,', 'Soldiers,', 'Sailors,', 'Messengers,', 'and', 'other', 'Attendants.', 'SCENE.', 'Elsinore.', 'ACT', 'I.', 'Scene', 'I.', 'Elsinore.', 'A', 'platform', 'before', 'the', 'Castle.', '[Francisco', 'at', 'his', 'post.', 'Enter', 'to', 'him', 'Bernardo.]', 'Ber.', "Who's", 'there?', 'Fran.', 'Nay,', 'answer', 'me:', 'stand,', 'and', 'unfold', 'yourself.', 'Ber.', 'Long', 'live', 'the', 'king!', 'Fran.', 'Bernardo?', 'Ber.', 'He.', 'Fran.', 'You', 'come', 'most', 'carefully', 'upon', 'your', 'hour.', 'Ber.', "'Tis", 'now', 'struck', 'twelve.', 'Get', 'thee', 'to', 'bed,', 'Francisco.', 'Fran.', 'For', 'this', 'relief', 'much', 'thanks:', "'tis", 'bitter', 'cold,', 'And', 'I', 'am', 'sick', 'at', 'heart.', 'Ber.', 'Have', 'you', 'had', 'quiet', 'guard?', 'Fran.', 'Not', 'a', 'mouse', 'stirring.', 'Ber.', 'Well,', 'good', 'night.', 'If', 'you', 'do', 'meet', 'Horatio', 'and', 'Marcellus,', 'The', 'rivals', 'of', 'my', 'watch,', 'bid', 'them', 'make', 'haste.', 'Fran.', 'I', 'think', 'I', 'hear', 'them.--Stand,', 'ho!', 'Who', 'is', 'there?', '[Enter', 'Horatio', 'and', 'Marcellus.]', 'Hor.', 'Friends', 'to', 'this', 'ground.', 'Mar.', 'And', 'liegemen', 'to', 'the', 'Dane.', 'Fran.', 'Give', 'you', 'good-night.', 'Mar.', 'O,', 'farewell,', 'honest', 'soldier;', 'Who', 'hath', "reliev'd", 'you?', 'Fran.', 'Bernardo', 'has', 'my', 'place.', 'Give', 'you', 'good-night.', '[Exit.]', 'Mar.', 'Holla!', 'Bernardo!', 'Ber.', 'Say.', 'What,', 'is', 'Horatio', 'there?', 'Hor.', 'A', 'piece', 'of', 'him.', 'Ber.', 'Welcome,', 'Horatio:--Welcome,', 'good', 'Marcellus.', 'Mar.', 'What,', 'has', 'this', 'thing', "appear'd", 'again', 'to-night?', 'Ber.', 'I', 'have', 'seen', 'nothing.', 'Mar.', 'Horatio', 'says', "'tis", 'but', 'our', 'fantasy,', 'And', 'will', 'not', 'let', 'belief', 'take', 'hold', 'of', 'him', 'Touching', 'this', 'dreaded', 'sight,', 'twice', 'seen', 'of', 'us:', 'Therefore', 'I', 'have', 'entreated', 'him', 'along', 'With', 'us', 'to', 'watch', 'the', 'minutes', 'of', 'this', 'night;', 'That,', 'if', 'again', 'this', 'apparition', 'come', 'He', 'may', 'approve', 'our', 'eyes', 'and', 'speak', 'to', 'it.', 'Hor.', 'Tush,', 'tush,', "'twill", 'not', 'appear.', 'Ber.', 'Sit', 'down', 'awhile,', 'And', 'let', 'us', 'once', 'again', 'assail', 'your', 'ears,', 'That', 'are', 'so', 'fortified', 'against', 'our', 'story,', 'What', 'we', 'two', 'nights', 'have', 'seen.', 'Hor.', 'Well,', 'sit', 'we', 'down,', 'And', 'let', 'us', 'hear', 'Bernardo', 'speak', 'of', 'this.', 'Ber.', 'Last', 'night', 'of', 'all,', 'When', 'yond', 'same', 'star', "that's", 'westward', 'from', 'the', 'pole', 'Had', 'made', 'his', 'course', 'to', 'illume', 'that', 'part', 'of', 'heaven', 'Where', 'now', 'it', 'burns,', 'Marcellus', 'and', 'myself,', 'The', 'bell', 'then', 'beating', 'one,--', 'Mar.', 'Peace,', 'break', 'thee', 'off;', 'look', 'where', 'it', 'comes', 'again!', '[Enter', 'Ghost,', 'armed.]', 'Ber.', 'In', 'the', 'same', 'figure,', 'like', 'the', 'king', "that's", 'dead.', 'Mar.', 'Thou', 'art', 'a', 'scholar;', 'speak', 'to', 'it,', 'Horatio.', 'Ber.', 'Looks', 'it', 'not', 'like', 'the', 'King?', 'mark', 'it,', 'Horatio.', 'Hor.', 'Most', 'like:--it', 'harrows', 'me', 'with', 'fear', 'and', 'wonder.', 'Ber.', 'It', 'would', 'be', 'spoke', 'to.', 'Mar.', 'Question', 'it,', 'Horatio.', 'Hor.', 'What', 'art', 'thou,', 'that', "usurp'st", 'this', 'time', 'of', 'night,', 'Together', 'with', 'that', 'fair', 'and', 'warlike', 'form', 'In', 'which', 'the', 'majesty', 'of', 'buried', 'Denmark', 'Did', 'sometimes', 'march?', 'By', 'heaven', 'I', 'charge', 'thee,', 'speak!', 'Mar.', 'It', 'is', 'offended.', 'Ber.', 'See,', 'it', 'stalks', 'away!', 'Hor.', 'Stay!', 'speak,', 'speak!', 'I', 'charge', 'thee', 'speak!', '[Exit', 'Ghost.]', 'Mar.', "'Tis", 'gone,', 'and', 'will', 'not', 'answer.', 'Ber.', 'How', 'now,', 'Horatio!', 'You', 'tremble', 'and', 'look', 'pale:', 'Is', 'not', 'this', 'something', 'more', 'than', 'fantasy?', 'What', 'think', 'you', "on't?", 'Hor.', 'Before', 'my', 'God,', 'I', 'might', 'not', 'this', 'believe', 'Without', 'the', 'sensible', 'and', 'true', 'avouch', 'Of', 'mine', 'own', 'eyes.', 'Mar.', 'Is', 'it', 'not', 'like', 'the', 'King?', 'Hor.', 'As', 'thou', 'art', 'to', 'thyself:', 'Such', 'was', 'the', 'very', 'armour', 'he', 'had', 'on', 'When', 'he', 'the', 'ambitious', 'Norway', 'combated;', 'So', "frown'd", 'he', 'once', 'when,', 'in', 'an', 'angry', 'parle,', 'He', 'smote', 'the', 'sledded', 'Polacks', 'on', 'the', 'ice.', "'Tis", 'strange.', 'Mar.', 'Thus', 'twice', 'before,', 'and', 'jump', 'at', 'this', 'dead', 'hour,', 'With', 'martial', 'stalk', 'hath', 'he', 'gone', 'by', 'our', 'watch.', 'Hor.', 'In', 'what', 'particular', 'thought', 'to', 'work', 'I', 'know', 'not;', 'But,', 'in', 'the', 'gross', 'and', 'scope', 'of', 'my', 'opinion,', 'This', 'bodes', 'some', 'strange', 'eruption', 'to', 'our', 'state.', 'Mar.', 'Good', 'now,', 'sit', 'down,', 'and', 'tell', 'me,', 'he', 'that', 'knows,', 'Why', 'this', 'same', 'strict', 'and', 'most', 'observant', 'watch', 'So', 'nightly', 'toils', 'the', 'subject', 'of', 'the', 'land;', 'And', 'why', 'such', 'daily', 'cast', 'of', 'brazen', 'cannon,', 'And', 'foreign', 'mart', 'for', 'implements', 'of', 'war;', 'Why', 'such', 'impress', 'of', 'shipwrights,', 'whose', 'sore', 'task', 'Does', 'not', 'divide', 'the', 'Sunday', 'from', 'the', 'week;', 'What', 'might', 'be', 'toward,', 'that', 'this', 'sweaty', 'haste', 'Doth', 'make', 'the', 'night', 'joint-labourer', 'with', 'the', 'day:', 'Who', "is't", 'that', 'can', 'inform', 'me?', 'Hor.', 'That', 'can', 'I;', 'At', 'least,', 'the', 'whisper', 'goes', 'so.', 'Our', 'last', 'king,', 'Whose', 'image', 'even', 'but', 'now', "appear'd", 'to', 'us,', 'Was,', 'as', 'you', 'know,', 'by', 'Fortinbras', 'of', 'Norway,', 'Thereto', "prick'd", 'on', 'by', 'a', 'most', 'emulate', 'pride,', "Dar'd", 'to', 'the', 'combat;', 'in', 'which', 'our', 'valiant', 'Hamlet,--', 'For', 'so', 'this', 'side', 'of', 'our', 'known', 'world', "esteem'd", 'him,--', 'Did', 'slay', 'this', 'Fortinbras;', 'who,', 'by', 'a', "seal'd", 'compact,', 'Well', 'ratified', 'by', 'law', 'and', 'heraldry,', 'Did', 'forfeit,', 'with', 'his', 'life,', 'all', 'those', 'his', 'lands,', 'Which', 'he', 'stood', "seiz'd", 'of,', 'to', 'the', 'conqueror:', 'Against', 'the', 'which,', 'a', 'moiety', 'competent', 'Was', 'gaged', 'by', 'our', 'king;', 'which', 'had', "return'd", 'To', 'the', 'inheritance', 'of', 'Fortinbras,', 'Had', 'he', 'been', 'vanquisher;', 'as', 'by', 'the', 'same', "cov'nant,", 'And', 'carriage', 'of', 'the', 'article', "design'd,", 'His', 'fell', 'to', 'Hamlet.', 'Now,', 'sir,', 'young', 'Fortinbras,', 'Of', 'unimproved', 'mettle', 'hot', 'and', 'full,', 'Hath', 'in', 'the', 'skirts', 'of', 'Norway,', 'here', 'and', 'there,', "Shark'd", 'up', 'a', 'list', 'of', 'lawless', 'resolutes,', 'For', 'food', 'and', 'diet,', 'to', 'some', 'enterprise', 'That', 'hath', 'a', 'stomach', "in't;", 'which', 'is', 'no', 'other,--', 'As', 'it', 'doth', 'well', 'appear', 'unto', 'our', 'state,--', 'But', 'to', 'recover', 'of', 'us,', 'by', 'strong', 'hand,', 'And', 'terms', 'compulsatory,', 'those', 'foresaid', 'lands', 'So', 'by', 'his', 'father', 'lost:', 'and', 'this,', 'I', 'take', 'it,', 'Is', 'the', 'main', 'motive', 'of', 'our', 'preparations,', 'The', 'source', 'of', 'this', 'our', 'watch,', 'and', 'the', 'chief', 'head', 'Of', 'this', 'post-haste', 'and', 'romage', 'in', 'the', 'land.', 'Ber.', 'I', 'think', 'it', 'be', 'no', 'other', 'but', "e'en", 'so:', 'Well', 'may', 'it', 'sort,', 'that', 'this', 'portentous', 'figure', 'Comes', 'armed', 'through', 'our', 'watch;', 'so', 'like', 'the', 'king', 'That']
One can use the with syntax which cretaes a context. The file closing is then done automatically for us.
In [11]:
with open("hamlet.txt") as hamletfile:
hamlettext=hamletfile.read()
hamlettokens=hamlettext.split()
print len(hamlettokens)
31659
There are roughly 32,000 words in Hamlet.
In [13]:
print hamlettext[:1000]#first 1000 characters from Hamlet.
XXXX
HAMLET, PRINCE OF DENMARK
by William Shakespeare
PERSONS REPRESENTED.
Claudius, King of Denmark.
Hamlet, Son to the former, and Nephew to the present King.
Polonius, Lord Chamberlain.
Horatio, Friend to Hamlet.
Laertes, Son to Polonius.
Voltimand, Courtier.
Cornelius, Courtier.
Rosencrantz, Courtier.
Guildenstern, Courtier.
Osric, Courtier.
A Gentleman, Courtier.
A Priest.
Marcellus, Officer.
Bernardo, Officer.
Francisco, a Soldier
Reynaldo, Servant to Polonius.
Players.
Two Clowns, Grave-diggers.
Fortinbras, Prince of Norway.
A Captain.
English Ambassadors.
Ghost of Hamlet's Father.
Gertrude, Queen of Denmark, and Mother of Hamlet.
Ophelia, Daughter to Polonius.
Lords, Ladies, Officers, Soldiers, Sailors, Messengers, and other
Attendants.
SCENE. Elsinore.
ACT I.
Scene I. Elsinore. A platform before the Castle.
[Francisco at his post. Enter to him Bernardo.]
Ber.
Who's there?
Fran.
Nay, answer me: stand, and u
In [45]:
print hamlettext[-1000:]#and last 1000 characters from Hamlet.
nd, in this upshot, purposes mistook
Fall'n on the inventors' heads: all this can I
Truly deliver.
Fort.
Let us haste to hear it,
And call the noblest to the audience.
For me, with sorrow I embrace my fortune:
I have some rights of memory in this kingdom,
Which now, to claim my vantage doth invite me.
Hor.
Of that I shall have also cause to speak,
And from his mouth whose voice will draw on more:
But let this same be presently perform'd,
Even while men's minds are wild: lest more mischance
On plots and errors happen.
Fort.
Let four captains
Bear Hamlet like a soldier to the stage;
For he was likely, had he been put on,
To have prov'd most royally: and, for his passage,
The soldiers' music and the rites of war
Speak loudly for him.--
Take up the bodies.--Such a sight as this
Becomes the field, but here shows much amiss.
Go, bid the soldiers shoot.
[A dead march.]
[Exeunt, bearing off the dead bodies; after the which a peal of
ordnance is shot off.]
Lets split the word tokens. The first one below reads, give me the second, third, and fourth words (remember that python is 0 indexed). Try and figure what the others mean.
In [16]:
print hamlettokens[1:4], hamlettokens[:4], hamlettokens[0], hamlettokens[-1]
['HAMLET,', 'PRINCE', 'OF'] ['\xef\xbb\xbfXXXX', 'HAMLET,', 'PRINCE', 'OF'] XXXX off.]
In [17]:
hamlettokens[1:8:2]#get every 2nd world between the 2nd and the 9th: ie 2nd, 4th, 6th, and 8th
Out[17]:
['HAMLET,', 'OF', 'by', 'Shakespeare']
range and xrange get the list of integers upto N. But xrange behaves like an iterator. The reason for this is that there is no point generaing all os a million integers. We can just add 1 to the previous one and save memory. So we trade off storage for computation.
In [18]:
mylist=[]
for i in xrange(10):
mylist.append(i)
mylist
Out[18]:
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
In [19]:
adict={'one':1, 'two': 2, 'three': 3}
print [i for i in adict], [(k,v) for k,v in adict.items()], adict.values()
['three', 'two', 'one'] [('three', 3), ('two', 2), ('one', 1)] [3, 2, 1]
The keys do not have to be strings. From python 2.7 you can use dictionary comprehensions as well
In [20]:
mydict ={k:v for (k,v) in zip(alist, asquaredlist)}
mydict
Out[20]:
{1: 1, 2: 4, 3: 9, 4: 16, 5: 25}
You can construct then nicely using the function dict.
In [46]:
dict(a=1, b=2)
Out[46]:
{'a': 1, 'b': 2}
In [21]:
import json
In [22]:
s=json.dumps(mydict)
print s
{"1": 1, "2": 4, "3": 9, "4": 16, "5": 25}
In [23]:
json.loads(s)
Out[23]:
{u'1': 1, u'2': 4, u'3': 9, u'4': 16, u'5': 25}
In [24]:
lastword=hamlettokens[-1]
print(lastword)
off.]
In [25]:
lastword[-2]="k"#cant change a part of a string
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-25-55dfef3ad2e5> in <module>()
----> 1 lastword[-2]="k"
TypeError: 'str' object does not support item assignment
In [26]:
lastword[-2]
Out[26]:
'.'
In [ ]:
You can join a list with a separator to make a string.
In [27]:
wierdstring=",".join(hamlettokens)
wierdstring[:1000]
Out[27]:
"\xef\xbb\xbfXXXX,HAMLET,,PRINCE,OF,DENMARK,by,William,Shakespeare,PERSONS,REPRESENTED.,Claudius,,King,of,Denmark.,Hamlet,,Son,to,the,former,,and,Nephew,to,the,present,King.,Polonius,,Lord,Chamberlain.,Horatio,,Friend,to,Hamlet.,Laertes,,Son,to,Polonius.,Voltimand,,Courtier.,Cornelius,,Courtier.,Rosencrantz,,Courtier.,Guildenstern,,Courtier.,Osric,,Courtier.,A,Gentleman,,Courtier.,A,Priest.,Marcellus,,Officer.,Bernardo,,Officer.,Francisco,,a,Soldier,Reynaldo,,Servant,to,Polonius.,Players.,Two,Clowns,,Grave-diggers.,Fortinbras,,Prince,of,Norway.,A,Captain.,English,Ambassadors.,Ghost,of,Hamlet's,Father.,Gertrude,,Queen,of,Denmark,,and,Mother,of,Hamlet.,Ophelia,,Daughter,to,Polonius.,Lords,,Ladies,,Officers,,Soldiers,,Sailors,,Messengers,,and,other,Attendants.,SCENE.,Elsinore.,ACT,I.,Scene,I.,Elsinore.,A,platform,before,the,Castle.,[Francisco,at,his,post.,Enter,to,him,Bernardo.],Ber.,Who's,there?,Fran.,Nay,,answer,me:,stand,,and,unfold,yourself.,Ber.,Long,live,the,king!,Fran.,Bernardo?,Ber.,He.,Fra"
In [28]:
def square(x):
return(x*x)
def cube(x):
return x*x*x
square(5),cube(5)
Out[28]:
(25, 125)
In [29]:
print square, type(cube)
<function square at 0x109a66500> <type 'function'>
In Python, functions are "first-class". This is just a fancy way of saying, you can pass functions to other functions
In [47]:
def sum_of_anything(x,y,f):
print x,y,f
return(f(x) + f(y))
sum_of_anything(3,4,square)
3 4 <function square at 0x109a66500>
Out[47]:
25
Python functions can have positional arguments and keyword arguments. Positional arguments are stored in a tuple, and keyword arguments in a dictionary. Note the "starred" syntax
In [50]:
def f(a,b,*posargs,**dictargs):
print "got",a,b,posargs, dictargs
return a
print f(1,3)
print f(1,3,4,d=1,c=2)
got 1 3 () {}
1
got 1 3 (4,) {'c': 2, 'd': 1}
1
YOUR TURN create a dictionary with keys the integers upto and including 10, and values the cubes of these dictionaries
In [4]:
#your code here
import numpy as np
mydic = {k:v for (k,v) in zip(range(11), np.array(range(11))**3)}
print mydic
{0: 0, 1: 1, 2: 8, 3: 27, 4: 64, 5: 125, 6: 216, 7: 343, 8: 512, 9: 729, 10: 1000}
In [32]:
a=[1,2,3,4,5]
1 in a
Out[32]:
True
In [33]:
6 in a
Out[33]:
False
Python supports if/elif/else clauses for multi-way conditionals
In [34]:
def do_it(x):
if x==1:
print "One"
elif x==2:
print "Two"
else:
print x
do_it(1)
One
In [35]:
do_it(2), do_it(3)
Two
3
Out[35]:
(None, None)
You can break out of a loop based on a condition. The loop below is a for loop.
In [36]:
for i in range(10):
print i
if (i > 5):
break
0
1
2
3
4
5
6
While loops are also supported. continue continues to the next iteration of the loop skipping all the code below, while break breaks out of it.
In [37]:
i=0
while i < 10:
print i
i=i+1
if i < 5:
continue
else:
break
0
1
2
3
4
In [38]:
try:
f(1)#takes atleast 2 arguments
except:
import sys
print sys.exc_info()
(<type 'exceptions.TypeError'>, TypeError('f() takes at least 2 arguments (1 given)',), <traceback object at 0x109a75050>)
In [16]:
print len(hamlettokens)
hamletlctokens=[word.lower() for word in hamlettokens]
hamletlctokens.count("thou")
print len(hamletlctokens)
31659
31659
We then find a unique set of words using python's set data structure. We count how often those words occured usinf the count method on lists.
In [19]:
uniquelctokens=set(hamletlctokens)
print uniquelctokens
set(['foul', 'four', 'sending.', 'considered:', 'conjuring', 'conjure', 'confines,', 'battalions!', 'nonce;', 'mutinies', 'lord', 'advice,', 'advice;', 'fingers,', 'bringing', 'nettles,', 'rages,', 'prize', 'accidents;', 'abatements', 'stars,', 'succession', 'ocean,', 'spoken,', 'glassy', 'her.', 'her,', 'transformation;', 'second', 'her?', 'valiant', 'tether', 'sterile', 'errors', 'nature,', 'thunder', 'fingers', "hamlet.'", 'nature:', 'shocks', 'insinuation', "so.'", 'herb', 'hamlet.]', 'up,', 'here', 'else,--be', 'reasons;', 'substance', "i'm", '[exit', 'circumstance,', 'golden', 'sledded', 'norway,', 'rosencrantz', 'norway.', 'time,--as', 'brought', 'norway;', 'circumstance?', 'norway?', 'stern', 'fire;', 'fame,', 'fire:', 'spoke', 'aloof;', 'porcupine:', 'exhort', 'music', 'therefore', 'strike', 'until', 'skill.', 'holy', 'brings', 'whirling', 'hurt', 'glass', 'portentous', 'hole', 'hold', 'unpack', 'mirth,', 'circumstances', 'drink!--i', 'pursue', 'brows:', "liv'd!", 'want', "by'r", 'stowed.', 'absolute', 'provincial', 'rites?', 'youth:', 'keep,', 'travel', 'feature', 'machine', 'how', 'hot', 'win.', 'youth,', 'place', 'buzz!', 'beauty', 'unworthiest', 'blood,--', 'wrong', "unforc'd", "forgot!'", 'passage?', "hold'st", 'event,--', 'ho!', 'post-haste', "embark'd:", 'keeps', 'wind', 'wine', 'something:--where', 'sadness;', 'effect,', 'govern', 'throne;', 'drab,', 'effect;', 'fit', 'died,', 'ready;', 'mayst', 'ready?', 'fie', 'nobler', 'easier', 'ready.', 'welcome,', 'welcome.', 'unsatisfied.', 'unpeg', 'vouchers', 'effects', 'welcome:', 'sixteen', "better'd,", 'incontinency;', 'truant.', 'forgiveness', 'bewept', 'arrow', 'addicted', 'loins,', 'expectancy', 'burial', 'brain,', 'horrors,--he', 'sir:--pronounce.', 'borne', 'speed,', 'diction', 'ha', 'indiscretion', 'away!--go', 'hobby-horse,', 'millions', 'impetuous', 'woe;', 'flourishes,', 'faculties', 'woe.', "if't", 'exposing', 'perhaps,', 'tricks,', 'damnation:--to', 'speedy', 'clothes', 'tricks?', 'purpose', 'bloodily', 'occurrents,', 'wash', 'thing,--', "confin'd", 'force', 'detecting,', 'service', 'marry,', 'easy;', 'marry!', 'shipwrights,', 'nation.', 'blossoms', 'bitter', 'danish', 'others.]', 'rewards', 'spilt.', "honour'd,", 'satyr;', 'wisdom', 'task', 'was,', 'was.', 'positively', 'up.--remember', 'project', 'idle', 'sheen', 'feeling', 'old,', 'well?', 'groaning', 'well;', 'well:', 'osric;', 'well,', '[laying', 'well.', 'controversy:', 'dozen', 'affairs', "pronounc'd:", 'wholesome', 'aboard;', 'hymen', 'aboard,', 'father,--methinks', 'doors', 'indite', 'willing,', 'long;', 'rest;', 'long?', 'himself.--', 'shall', 'object', 'accurst!', 'brood;', 'mouth', 'long.', 'letter', 'tropically.', 'shalt', 'unripe,', 'affair:', 'door,', 'door.', 'pretty', 'affair.', 'came', 'marvel', 'saying', 'droppings', 'liest', 'fennel', 'cannot,', 'cannot.', 'touches', 'busy', "maids'", 'lights', "in't;--", 'theme', 'rich', 'heartily', 'green,', 'haste.', "dispatch'd:", 'conveniently.', 'meeting:', 'spheres;', 'relish', "unmatch'd", 'them?', 'them;', 'them:', 'patch', 'men,', 'men.', 'cousin,', 'earth;', 'them.', 'them,', 'boarded', 'fair', 'consummation', 'return,', 'flaxen', 'fain', 'best', "behav'd,", 'estate.', 'pressures', 'countrymen.--', 'reasons,', 'scorn', 'upon,--', 'pirate', 'never', 'nature', 'extent', "purpos'd", 'pity', 'country', 'view;', 'pressure.', 'demanded', 'ambition;', 'pith', 'lot,', 'ambition,', 'asked', 'nay,', 'doubt,', 'vain', 'ilium,', 'falconers,', 'union', 'vii.', 'much', 'kites', "follow'd", "so,'", 'light!', 'god-kissing', 'doubts', 'doth', 'such-like', 'commerce', "strew'd", 'sponge,', 'tried,', 'employ', 'parle,', 'wonted', 'skirts', 'consent!', 'declension,', 'played', 'truster', 'voyage;', "to't", 'said;', 'player', 'top,', 'levied', 'consent:', 'said,', 'said.', 'horseback:', 'things', 'shards,', 'rebellion', 'split', 'fairly', "disclos'd,", "disclos'd:", 'differences,', 'mischance', 'thing?', 'alas,', 'bonny', 'which,', 'visitation?', 'thing,', "in't", 'is,--', "in's", 'opinions', 'bellow', 'sleeps', 'circumstance.', 'outlives', 'divide', "come:--'the", 'ease', 'had', 'winking,', 'laer.', "ha't", 'innocent', 'prison', 'hap', 'sleep;--', 'east', 'hat', 'worse.', 'sleep?', 'possible', 'sleep:', 'sleep!', 'birth', 'sleep,', 'shadow', 'sleep.', 'opinion,', 'desire', 'dallying.', 'ha,', 'ha!', 'collection,', '[exeunt,', "ha'", 'ha?', 'peace-parted', 'collection;', 'right', 'old', 'people', 'crown', "proclaim'd", 'left.', 'creep', 'perchance', 'for', 'fencing,', 'burns,', 'foe', 'voltimand', 'suits,', 'losing', "incorps'd", 'attendants].', 'o', 'son.--', 'twain.', 'twain!', 'slightly', 'university,', 'son', 'laertes,--', 'in,--the', 'here,--', 'often', 'waits', 'altitude', 'humble,', 'tame', 'device,', 'greatness', 'trappings', 'happy', 'offer', 'so,', "hallow'd", 'so.', 'dream:--ay,', 'so;', 'so:', 'so?', 'extremity', 'virtue,', 'devices', 'hall:', 'lays', 'mighty', 'ignorance;', 'liberal', 'recorders:--let', 'smelt', 'woodcocks.', 'vanquisher;', 'minds.', 'spade:', 'crowns', 'conjures', 'warms', 'ambitious', 'spade.', 'spade,', 'superfluous', "'t", 'intend', 'servants;', 'holla!', 'palmy', 'maimed', 'intent', "'a", 'smelling', "'o", '&c,', "'i", 'diadem', 'well-took', 'crown,', 'crown.', 'time', 'dotes', 'breadth', 'stay!', "reliev'd", 'stay,', 'nephew', 'food,', 'honour,', 'up-spring', "'while", 'persevere', 'arm?', 'choice', 'apt;', 'exact', 'child.', 'arm;', 'howling.', "siz'd,", 'tear', "pour'd", 'majesty,', 'leave', 'lucianus,', 'carpenter?', 'inclination', 'prevent', 'be', 'sigh', '&c.]', 'service,--two', 'dust;', 'dust:', 'dust?', 'ophelia--', 'falling', 'dust,', '[to', "o'erteemed", 'blunted', "in't;", "in't:", 'quicksilver,', 'understanding', 'charge,--', 'address', 'alone', 'finding,', 'along', "pleas'd", 'shirt;', "in't.", 'saws', 'ourself', "&c.'", 'love', "gonzago's", 'bloody', 'method,', 'bended', 'working', 'angry', 'only', 'believe,', 'imaginations', 'vigour', 'opposed', 'scope', 'loving', 'chapless,', "gonzago'?", 'blood:', 'blood;', 'refrain', 'ignorant', 'virtue', 'blood.', 'blood,', 'epitaph', 'anything', 'sanctified', 'imagination.', 'privy', 'locks', 'heard,', 'allowed', 'first.]', 'stole', 'cornelius.]', "belov'd,", 'divided', 'thunder.', 'grosser', 'cannon', 'blasting', 'otherwise?--', 'weasel.', 'spring!--i', 'such', 'hide?', 'lids', 'natural', 'yielding', 'thunders', 'doom,', 'garlands', 'se', 'years', 'course', "conceal'd", 'below:', 'dead;', 'buzz,', 'limbs', 'dead?', 'rites,', 'did,', 'did.', 'troubles', 'honesty?', 'dead.', 'dead,', 'subject:--and', 'did;', 'instantly', 'year:', 'thine,', 'nation', 'year,', 'year.', 'compelled', 'dole,--', 'thine:', 'thine;', 'favours:', 'tongues,', "grows'--the", "inventors'", 'hugger-mugger', 'disasters', 'paper.]', "such-a-one's", 'daughter,--have', 'friends.', 'quite', 'tatters,', 'evermore,', 'learning;', 'eats,', 'at--closes', 'mercy,', "grave-maker;'", 'spoken', 'one', 'mercy:', 'spokes', 'open', 'thyself;', 'thyself:', 'wrath', 'thyself?', '2', 'brevity', 'on.', 'blazon', 'much,', 'on:', 'on;', 'antic', 'calves', 'much:', 'gently:', "lodg'd", 'once,--but', 'scourge', "esteem'd", 'wandering', 'ho,', 'cunnings,--', 'argument', 'say', 'buried', 'saw', 'well', 'sat', 'law,', 'law.', "mov'd,", 'massy', 'note', 'goodman', 'law?', 'take', 'law;', 'bad,', 'touch,', 'opposite', 'chariest', 'remiss,', 'afternoon,', 'horridly', 'knee', 'not?', 'drive', 'not;', 'not:', 'bade', 'axe', 'not,', 'not.', 'salt', 'new-born', 'scarce', 'umbrage,', 'slow', "remember'd.", 'kneels,', 'try,', 'tears', 'going', 'him;--do', 'wilfully', 'godlike', 'infallibly', 'aught,', 'aught.', 'aught:', "importun'd", "law's", 'hinges', 'where', 'vision', 'shoon.', 'temperance', "fortune's", 'responsive', 'commanded.', 'bodiless', "digg'd:", 'impartment', 'man;', 'converse,', 'man!', 'horatio,--or', 'sable', 'moons', 'man,', 'man.', 'ducats,', 'ostentation,--', 'matter,--', 'apparition', 'benetted', 'rage!', 'impression;', 'behove,', 'reigns', 'rage;', 'spark', 'rant', 'hearsed', 'moon,', 'many', 'verity', 'loudly', 'stops;', 'moon:', 'allowance', 'daughter.--my', 'reading.', 'love!', 'harshly', 'then:', 'poll:', 'west', 'cerements;', 'breath', 'combined', 'wants', 'thousand', "trick'd", 'pastime?', 'me:--we', 'reechy', 'observe', "wot,'", 'swords,', 'doomsday.', 'former', 'pastime.', 'you:--keep', 'players,--as', 'profane', 'motive,', 'nill', 'vial,', 'ready,', 'conveyance', "bestow'd,", 'fail;', 'birth:', 'brow', 'edge,', 'edge.', 'pursy', 'birth,', 'heat,--extinct', 'fame', 'combination', 'lunacy.', 'distilment;', 'husbandry.', 'lunacy?', 'damon', 'sickness', 'thee.--', 'iv.', 'weight,', 'pah!', 'thou,--', 'few,', 'play.--', 'weapon?', 'madness,', 'plurisy,', 'madness.', 'collected,', 'trains', "call'd;--unhand", 'madness?', 'straws;', 'wormwood!', 'guildenstern!', 'being', 'guildenstern.', 'officers,', 'guildenstern,', 'rest', 'wormwood,', 'followed?', 'guildenstern?', 'aspect,', 'wheaten', 'acquittance', 'joint-labourer', 'strange;', 'instrument', 'strange!', 'strange,', 'strange.', 'bernardo', 'fawning.', 'skull.]', 'gestures', 'inexplicable', 'sorry,', 'world', 'process;', 'stranger', 'overdone,', 'inter', 'slings', 'gifts;', 'destroy:', 'tunes;', 'destroy!', 'gifts,', 'likely,', 'divine', "shipp'd", 'lend', 'beckons', 'pelican,', 'robustious', 'think.', 'gonzago:', 'think,', 'power', "encumber'd", 'sprung', 'think?', 'carrion,--have', 'five,', 'frenchman', 'joyfully', 'such;', 'countenance,', 'partial,', 'slender', "devotion's", 'act', 'revenge.', 'revenge,', 'mean', 'scandal.', 'such,', 'perturbed', 'commingled', 'burning', 'image', 'heaven-kissing', 'vantage.', 'wit,', 'dirt.', 'her', 'abuse,', "receiv'd", 'withal.', 'hey', 'withal,', 'dirt?', 'withal:', 'another:', 'another?', 'complete', 'wits', 'ourselves.--[to', 'plucks', 'pelion', 'hath,', 'level', 'with', 'handsome', 'unbated,', 'will!--', 'rage', 'he?', 'dirty', 'abuses', 'he,', 'he.', 'gone', 'knavish', 'certain', 'stealing', 'am', 'an', 'as', 'at', 'walks', 'tremble', "e'en", 'trick;', 'laboursome', 'contend', 'up;--', 'walk.', 'gifts', 'madam,--to', 'tricks', 'you:--', 'mass', 'adam', 'presentment', "to't.", "to't,", 'consider', 'beware', "doom'd", 'hit,', "to't;", 'showing:', 'hyrcanian', "design'd,", "restrain'd,", 'duty,', 'duty.', 'to', 'dead:', 'duty?', 'periwig-pated', 'cause,', 'appointment', 'easiness', 'conscience;', 'this.--', 'conscience!', 'cause;', 'cause:', 'conscience.', 'sans', 'marvellous', 'laying', 'large', 'danger,', 'wholesome;', 'small', "'sblood,", 'hour.', 'hour,', 'mandate;', 'sighs.', 'honourable', 'pass', 'yaughan;', "laps'd", 'forestall', '[behind.]', 'full', 'leaping', 'hours', 'meet.--', 'crowner', 'harsh;', 'hunts', 'yourself:', 'yourself,', 'yourself.', 'spake,', 'branches;', 'action', 'murdering', "gall'd", 'followed', '[retiring', '[takes', 'conceive:--friend,', "o'erdoing", 'select', "turn'st", 'flowers:', 'watch:', 'head.]', 'watch,', 'watch.', 'morn', 'burial,--', 'more', "subscrib'd", "'well,", 'door', 'marriage;', 'vi.', 'marriage,', 'marriage.', 'jangled,', 'cunning', 'vailed', 'sent', 'knocked', "drown'd?", 'neglected', 'sense', 'players.', "do't.--dost", 'struck.', 'huge', 'imminent', 'late,--but', 'unpregnant', "'now", 'bestowed?', 'creature', 'never,', 'salt,', 'sprinkle', 'anoint', 'state.', 'state,', 'carbuncles,', 'waves', 'libertine,', 'resemble', 'protestation', 'cases,', 'army,', 'passages', 'idol,', 'shrill-sounding', 'looks;', 'trade', 'replies', 'looks,', 'tyrant,', 'drives;', 'truth:', 'dally;', 'occulted', 'salvation?', 'course.', 'truth.', 'sides;', 'it.', 'rapier', 'it,', 'propose', 'resort,', 'it!', 'it?', 'it:', 'it;', 'weeds', 'passage,', 'nighted', 'great,', 'caesar;', 'deed;', 'hereafter', 'always', "play's", 'all,', 'courses', 'solicitings,', 'deed,', 'caesar,', 'found', 'all;', 'outward,', 'deed!', 'england', 'quick;', 'quick:', 'worn.', 'enters.]', 'distemper.', 'unhappily.', 'sleeping,', 'affliction,', 'entreaty,', 'entreaty.', "plac'd", 'belief', 'pickaxe', 'goblins', 'rash,', 'rises', 'kings', "woman's", 'so', 'insolence', 'longer,--married', 'black,', "do't", '[makes', 'asunder.', 'purport', 'made,--', 'remember,', 'tristful', 'guest', 'threatening', 'remember?', 'remember:', 'saint', 'justly', 'first,', 'first.', 'vantage', 'immediate', 'satirical', 'forward,', 'stairs', 'grace', 'frock', 'sure,', 'arrant', 'head;', 'head:', 'uneffectual', 'marriage', "touch'd,", 'head.', 'head,', 'a-cursing', 'naught:', 'livery', 'was:', 'was?', 'fashion,', 'extorted', 'fashion.', 'distemper', 'fires,', 'unshaped', 'also', "abus'd;", 'ope', 'fashion;', 'play', 'fight?', 'wards,', 'speaks:', 'gyves', 'sometimes', 'make,--', 'barren', 'recks', "o'er-crows", 'ends,', 'strutted', "braz'd", 'push.--', 'beam.', "stain'd,", 'pleasure:', 'shouldst', 'pleasure.', "prov'd", 'niggard', 'coach!--good', "puff'd", 'closely', 'distraction', 'enemy', 'pleasures', 'cry', 'proclaim', 'cease', 'obscure', 'river', 'rivet', 'greetings', 'set', 'jade', 'potent', 'see', 'sea', 'outward', 'knees', 'spirits', 'rite', 'monsters', 'endure', 'knowing', 'bulk;', 'conjectures', 'aunt-mother', 'last', 'thou', 'spirit:', 'spirit;', 'weary,', 'lash', 'spirit,', 'approve', "was't", 'load', 'majesty', 'drunk', 'loam', 'loan', 'silence.', 'me:--this', 'jowls', 'ranker.', 'wisdom,', 'budge;', 'devil', 'condolement', 'loves.', 'loves,', 'extravagant', 'firm', 'too;--at', 'infect', "what's", 'awake', 'revengeful,', 'prison-house,', 'stalks', 'remains,', 'bones,', 'forgetting', 'robin', 'mote', 'waist,', 'clouds,', 'vow', 'wrist,', 'seem', 'kills', 'maids', 'blown,', "pull'd", 'heads:', 'rusty?', 'commune', 'ubique?', 'nickname', 'yet?', 'expend', 'slander,--', 'breathe;', 'loathsome', 'person', 'yet,', 'maid,', 'osric.', 'osric,', "canoniz'd", "pr'ythee,", 'graces;', 'arrests', 'hercules', 'unto', 'sandal', 'cuffs', 'ladies,', 'ladies;', 'eager', 'recorders!--', "o'ersized", 'instructs', 'swinish', 'reverted', 'thee.', 'rheum;', 'thee,', 'demands', 'couple', 'dull,', 'thee!', 'thee?', 'tweaks', 'suffering', 'quest', 'thee;', 'thee:', "express'd", 'cabin,', "ophelia's", 'formal', "encounter'd.", 'bruit', 'scape', 'bosom:', 'fast;', 'canst', "b'", 'spring', 'necessaries', 'palm', 'sight', "scann'd:", 'pale', 'deserve,', 'didest', 'religion', 'capitol;', 'foul,', 'temple', 'rapier,', "son's", 'might,', 'judgments,', "'should'", 'requiem', 'sigh,', 'nowhere', 'moods,', 'whit,', 'by', 'worlds,', 'rapiers', 'dido,', 'be.--horatio,', 'deserved', 'synod,', 'sleep,--', 'repair', 'honest.', 'into', 'eleven', 'again.--what', 'custom', 'marcellus.]', 'suit', "harlot's", 'eisel?', 'belike', 'dead!--nay,', 'legs.', 'line', 'observation', 'glean,', 'up', 'us', 'flagon', 'slander', 'faded', 'side.', "pigeon-liver'd,", 'likewise', 'element:', 'influence', 'haunt', 'lost,', 'changes,', 'lost;', 'lost:', 'stiffly', "is't--crowner's", 'hell?', 'actors', 'hell,', "'tween", 'that?--[aside.]', 'polonius', 'sail,', 'sail.', 'actor.', 'age', "consequence'--ay,", 'lank', 'summit', 'having', 'bernardo,', 'dawning', 'knotted', 'bernardo!', 'petition;', 'bernardo?', "frown'd", 'impatient;', 'desperation,', "show'd", 'young', 'send', 'herein;', 'keen.', 'keen,', 'dislike', 'rests?', "sexton's", 'scanter', 'garden', "rain'd", "'not", "thou'rt", 'melt,', "all's", 'wipe', 'magic', 'marry', 'curd,', 'glow;', 'try', 'race', 'rack', 'son.--go,', 'unprofitable', 'crook', "rul'd", 'odd', 'that,', 'that.', 'make,', 'unbated', "observ'd", 'sweaty', 'that?', 'that:', 'that;', "thou.'", 'bird', 'denmark.--madam,', 'led', 'license,', 'contagion,', 'let', 'great', 'calumny.', 'receive', 'carrying,', 'defeat', 'makes', 'cuckold', 'last,--a', 'dearly;', 'fit.', 'standing', 'dreams.', 'dreams,', 'ministers', 'unknown,', 'next', 'weakness;', 'doubt', 'resolutes,', 'feelingly', 'proportions', 'free;', 'sir!', 'field,', 'counsel,', 'sir.', 'sir,', 'purposes', 'mend', 'opposing', 'box;', 'baby', 'sir;', 'counsel;', 'sir?', 'fit;', 'this', 'pour', 'minister.', 'thin', 'weaker', 'bent', 'fit,', 'process', 'lock', 'none;', 'none:', 'high', 'lordship,', 'bend', 'none.', 'none,', 'trumpet', "see'st", 'shuffled', "king's", 'delay', 'ended.--', 'pales', 'especial', 'near.', 'near,', 'sea-gown', 'purpose.', 'purpose,', 'lines.', 'fits', 'marrow', 'hawk', 'near;', 'pale.', 'courtier,', 'courtier.', "have't.--", 'writ', 'pale:', 'provide:', 'mute', 'move', 'doubtful', 'comma', 'romage', 'norman.', 'hamlet!--', 'meantime', 'priam,', 'thieves', 'wharf,', 'sounded,', 'bat', 'ship', 'volt.', 'soldiers,', 'flourish.', 'mine,--an', "mourn'd", 'ecstacy', 'whither', '[the', 'truth', 'stock', 'curls;', 'capable.--do', 'doing', 'dipping', 'society', 'yawn,', 'switzers?', 'witness', 'following;', 'eyelids', 'good-night:', 'venom', 'fifty,', 'good-night.', 'purpose,--to', 'shut', 'liege:', 'tempt', 'liege,', 'ghost.]', 'book;', 'against,', 'dismantled', 'hasten', "honour's", 'fantasy,', "'twere--i", 'could', 'compulsive', 'suppliance', 'length', 'hand,--sends', 'fantasy?', 'it?--', 'blown', 'have?', 'scene', 'short:', 'affliction', 'short,', 'joy,--', 'scent', 'have.', 'ulcerous', 'have,', 'slain!', 'traveller', 'slain,', 'eale', 'two:', 'slain;', 'slain:', 'stomach', 'blow,', 'quarry', 'takes,', 'devoutly', 'vouch', 'feast.', 'coinage', 'proud,', 'me,--', 'colleagued', 'steep', 'ingenious', 'noise?', 'false', 'beggar', 'happily,', 'poisons', 'gentle', 'clearly', "do;'", "perceiv'd", "lack'd", 'pebbles', 'snuff', 'courtesy', "time,--i'd", 'hobby-horse', 'mermaid-like,', 'hat.]', 'babe!', 'stronger', 'whensoever,', 'face', "topp'd", "you'll", 'wounded', 'painting', 'exchange,', 'stood,', 'mean?', 'bernardo.]', "return'd", 'bring', 'mean,', 'trivial', 'stood;', 'pause', 'should', 'buttons', 'loth', 'maggots', 'confederate', 'hope', 'meant', 'means', 'begin:--', 'natural,', 'pit!', 'died:--they', 'wring', "offence's", "well.'", "donn'd", 'denmark', 'button.', 'gleaned,', 'stuff', 'frame', 'end:', '[flourish', 'once;', 'skull,', 'once!', 'once.', 'end,', 'end.', 'rather,', 'figure,', 'figure?', 'figure;', 'exactly,', 'perfect', 'ends', "rais'd", 'wonder-wounded', 'imagine,--', 'zone,', 'drum', "despis'd", 'invites', 'coil,', "neptune's", 'guildenstern', 'ophelia!--', 'sir:', 'gambols?', "answer'd?", 'bodkin?', 'waste', 'ring?', 'blazes,', 'judges,', "unfledg'd", 'neighbour', 'stonish', "'there", 'sith', 'ripe', 'bounteous;', 'lightness;', 'lust', 'sits', 'seeming.', 'stooping', 'of.', 'of,', 'melancholy,--', 'of:', 'outbreak', 'of?', 'lights!', 'wisest', 'upon', 'lights,', 'capt.', 'flourish;', 'infinite', "o'erthrown!", 'audit', 'assigns,', 'off', 'doubtful;', 'colour', 'command', 'oft', 'sight?', 'lest', 'enemy.', 'less', '[hamlet', 'generous', 'wed', "soldiers'", 'crack', 'checking', 'whispers', 'five', 'desk', 'fools', 'england!', 'we!', 'we.', 'garments,', 'we,', 'altogether.', 'england;', 'england:', 'england?', 'residence,', 'sinews', 'immortal', 'flush', 'avoid', 'orchard,', 'does', 'passion', 'husbands.--begin,', 'seed;', 'out;', 'vows,', "wither'd", 'mystery;', 'rawer', 'disappointed,', 'secrecy,', 'proceeded', 'coldly', 'stage', 'sister', 'murder.', 'farewell;', 'farewell:', 'farewell,', 'farewell.', 'hies', 'natures.', 'gaming;', 'farewell!', 'letters', 'deliver,', 'deliver.', "incens'd.", 'now!', 'succession?', 'mere', 'privates', 'garb;', 'spots', 'watchman', 'out.]', 'place,', 'place.', 'function', "'one", 'neither;', 'vows;', 'remorseless,', 'neither.', 'neither,', 'they,', 'count', 'places', 'shrunk', 'smooth', 'placed', 'whoreson', 'arms?', 'rightly', 'arms;', '\xef\xbb\xbfxxxx', 'life', 'denote', 'arms.', 'arms,', 'hearers', 'erring', 'sings.]', 'arms!', 'lobby.', 'garden,', 'me.--well,', 'didst', 'reach,', 'since?', 'along:--or', 'woman!--', "dragg'd", 'reckless', 'again.', 'repulsed,--a', 'monday', 'oppression', 'again!', 'in,', 'again;', 'in.', 'again?', 'end,--', 'hearer:', "queen'?", 'ghost', 'tear.--', 'trial.', 'trial,', 'child', 'down:--he', "soe'er", 'tickle', 'was,--as', 'common,--all', 'rosencrantz,', 'rosencrantz!', 'quarrelling,', "women's", 'rosencrantz:', 'fantastically', 'knowest', "we'll", 'pinch', 'ending,', 'red', 'incorporal', 'triumph', "unsinew'd,", 'seas,', 'soul,--', 'follow', 'others,', 'others.', 'you.--good', 'deliberate', 'above', 'majesties', 'churches', 'son?', 'told', "bles'd", 'fathers,', 'die,--as', 'arrest,--o,', 'hor.', 'mistress!', 'counter,', 'daughter', 'study', 'homage', "me:'", 'envious', 'secure', 'gentleman,', 'gentleman.', 'gentleman?', 'total', 'gentleman;', 'plot', 'goose-quills', "saw't.", "world's", 'mightiest', 'springe,', 'infusion', 'alack,', 'drinking,', 'continual', 'it,--i', "plac'd,", "clamb'ring", 'springes', 'word', 'wore', "'man", 'books,', 'work', 'worm', 'ere', "punish'd", 'to-morrow', 'spendthrift', 'favour,', 'la,', 'custom?', "beggar'd,", 'serpent', 'dumb;', 'custom,', 'plautus', 'dumb,', 'reading.]', 'indifferent', 'cautel', 'rareness', 'recovery', 'meet.', "honour'd", 'rome,--', 'voyage,', 'hast,', 'after', 'lay', '[digs', 'law', 'hasty', 'greet', 'purging', 'haste', 'wouldst', 'modesty', 'consent', 'satisfied', 'polonius?', "polonius'", 'ears,', 'ears.', 'polonius,', 'polonius.', "deck'd,", 'feed,', 'beating;', 'feed?', 'then', 'them', 'bawdry,', 'young;', 'ulcer:--', 'thee', 'safe', 'madness,--thoughts', 'break', "winter's", "laertes's", 'shameful', 'they', 'bank', 'married:--', 'gallows', 'distance.]', 'beer-barrel?', 'better,--their', 'feeds', 'goodness,', 'lifted', 'crimes', 'odds', 'owner', 'baptista:', 'blows', 'forts', 'forty', 'foils;', 'fellows', 'fellowship', 'remorse', 'medicine', 'foils,', 'forth', 'lawless', 'mourning', 'sadly', 'clad,', 'fellow:', 'fellow,', 'fort.', 'baby;', 'on.--', 'vulgar', 'render', 'espials,--', 'another', 'thick', 'notes,', 'guil.', 'can;', 'scene.', 'airs', 'power;', "i'", 'airy', 'heaven:', 'alas!', 'happily', 'tithe', 'mercy', 'dog,', 'buzzers', 'rate,', 'air,', 'seated', 'guilt', 'air;', 'powers', 'distract:', 'excitements', 'swallowed:', "mind's", 'sconce', 'manner', 'yaw', 'drossy', 'strength', 'realm', 'luxury', 'forces', 'thing.', 'all,--', 'pioner!--once', 'maiden', 'quit', 'horrible!', 'proverb', 'grave', 'peevish', 'knows,', 'clowns,', "return'd.", 'accounted', 'deeply', "me'?", 'reserve', 'purples,', 'wrung', 'fordoes', 'gore,', 'scrimers', 'villany!--ho!', 'hither,', 'them.]', 'hither?', 'do', 'leisure', 'nasty', "'twould", 'runs', 'chase.', 'son--', "be:'", 'steal', 'sailor.', 'abominably.', 'into,', 'ourself;', 'offended.', 'depends', 'groan.', "envenom'd:", 'draws', 'request.', 'away', 'laertes', 'gentleman', 'bier', 'capons', 'props', "saviour's", 'foe,', 'accord', 'terms', 'loves', 'mincing', 'torrent,', 'wastein', "seem'd", 'unfold', 'received', 'essentially', 'bray', 'encounter;', 'encounter:', 'receives', 'stake.', "seal'd", "labour'd", 'gentlewoman,', 'advancement', "match'd,", 'speak', 'petty', 'kettle-drum', 'enginer', 'buffets', 'examples,', 'glares!', 'thrice', 'duties', 'entreatments', 'easy', 'equivocation', "thus,--you'll", 'wide;', 'hoist', "aim'd", 'gracious', 'ordnance', 'has', 'known;', 'air', 'aim', 'voice', 'known,', 'known.', 'faith.', "demi-natur'd", 'faith,', 'beetles', 'sting', 'faith:', 'faith;', 'penetrable', 'dizzy', 'blame.', 'emphasis?', 'conclusions,', 'centre.', 'grapple', 'birth,--wherein', "th'", 'wheel', 'fust', 'discourse?', 'inheritor', 'hang', 'rain', 'hand', 'discourse,', 'palpable', 'kept', 'thy', 'avoid,', 'taint', "stay'd", 'humbly', 'mason,', 'the', "she'll", 'may!', 'quoted', 'gods', 'may.', 'repose', 'thanks', 'bastard;', 'may;', 'you:--why', 'ass,--', "grave's", 'suddenly', 'spread', 'board', 'fares', 'god?', 'swear.', 'line;--let', 'god,', 'god!', 'grinning?', 'chide,', 'hill:', 'nature;', 'country,', 'evidence.', 'night', 'antique', 'sends', 'born', 'dane.--', 'bore', 'woodcock', 'ungracious', 'month;', 'asking', 'honoured', 'denied', 'beating', 'you;--though,', 'prologue', 'ply', 'posy', 'post', "pursu'd", 'months', 'accepts', 'spies,', 'treble', 'snow?', 'mantle', 'pays', 'bound', 'observance.', "poison'd:", 'snow,', 'cry!', 'why?', 'why;', 'familiar,', 'wag', 'beckons.]', 'sovereign', 'fight', 'importunity.', 'why,', 'dews', 'now-a-days', 'way', 'wax', 'brave,', 'was', 'war', 'so!--you', 'lowest', 'poisoning?--', 'him.]', 'murders:', 'diligence', "king!'", 'priam', 'hoodman-blind?', 'same.', 'pay,', 'same,', 'true', 'dew!', 'giant-like?--', "for's", 'bilboes.', 'funeral.', 'funeral,', 'brother;', 'postscript', 'easing.', 'prayer', 'brother.', 'brother,', 'mole', 'pace:', 'dying', 'bed.', 'bed,', 'falsely', 'holding', 'bed;', 'unwilling', 'seeming-virtuous', 'brothers', 'welcome', "pin's", "let's", 'joint:--o', 'promise,', 'ours,', 'moor?', 'berattle', 'methinks.', 'unsanctified', 'together', 'precedent', 'sultry,--as', 'brow,', 'brow;', 'tenable', "o'ertop", 'varnish', 'turn?', 'flash', 'ophelia!--nymph,', 'turn.', 'perceive?', 'shakespeare', 'more:--the', 'trouble', 'blast', "soul's", 'turns', 'shot,--may', 'right!--', 'hum!', 'appear.', 'brave', 'termagant;', 'beneath.', "tennis':", 'cost', 'shoulder.]', "thing's", 'curse', 'appear', 'avouch', "barr'd", 'safety,', 'repent?', 'collateral', 'repent;', 'gorge', 'hoops', 'appears', 'change', 'sending', 'flames', "rul'd;", 'a-foot,', 'share.', "country's", "'down", 'polacks', 'paragon', 'invulnerable,', "valanc'd", 'is;--and', 'reynaldo?', 'market', 'breed.', 'primrose', 'prove', 'gather,', 'drabbing:--you', 'live', 'mouse;', 'angels', 'polack;', 'soft,', 'entrance', "'havior", 'daughter:--yet', "beard.--pr'ythee", 'repentance', 'soft!', 'gentlemen,', 'plum-tree', 'italian;', 'defeats', 'fortified', 'cap', "for't.", 'angel!', 'cat', 'can', "for't:", 'heart', "com'st", 'hears', 'packing:', '[dies.]', 'heard', 'fortunes', 'ducat,', 'trumpet;', "polonius's", 'danish:', 'nose?', 'bonds', 'trophies', 'write', 'fortune!', 'bawd', 'ducats', 'hear?', 'use', 'fortune,', 'brazen', 'outface', 'pause,', 'heroes', 'hear.', 'flourish', 'fortune?', 'indifferently', 'remember', 'trumpets', 'memory;', 'greeks:', 'disposition.', 'disposition,', 'memory,', "fail'd", "'thus", 'no,', 'no.', 'woundless', 'indeed', 'counsellor', 'no!', 'brain', 'no?', 'no;', 'cold', 'still', 'birds', 'wiseness', 'willow', 'forms', 'osr.', 'spacious', 'dreadfully', 'norway', 'aside!--here', 'spirits,', "deliver'd,", 'halt', "seal'd:", 'obedience,', 'half', 'not', 'now', 'hall', 'nor', 'conqueror:', 'for;', 'servant', 'drop', 'form,', 'likeness:', 'prompted', "another's", 'operant', 'advantage,', "mars's", 'challenger', 'year', 'et', '[within]', 'worst.', 'lack.', 'could,', 'increase', 'kingdom,', 'kingdom.', 'wax,', 'shows', 'fire!', 'yea,', 'carp', 'fire,', 'cart', 'fire.', 'intruding', "rat!'", 'obligation', 'ominous', 'card', 'show,', 'honest', 'fetters', 'show;', 'semblable', 'brain:', 'striking', 'yourself', 'directly', 'brain!', 'true-love', 'horatio!--', 'folk', "valentine's", 'carouses', 'caught', 'breed', 'ignorant,', 'friend', 'artless', 'wed.', 'that', 'fiends!', 'violence,', "duke's", 'within.]', 'wronging', 'wed;', "unproportion'd", 'behind.--', 'larded', 'violence:', 'violence;', 'than', "sin's", 'truly:', 'truly;', 'rugged', "o'erbears", 'to-morrow.', 'cockle', "weigh'd,", 'truly,', 'fruits', 'sterling.', 'down-gyved', 'angel', 'slay', 'bugs', 'recover', 'slave,', 'shoot.', 'armed;', 'lucianus.]', 'begin', 'prick', "usurp'st", 'fishmonger:', 'venom,', 'successive', 'brutus', 'normandy,--', "as's", 'caution,--i', 'treason!', 'honour.', 'tenantless,', 'german', 'while.', 'while,', 'pride,', 'while;', 'ground', 'horatio,', 'horatio.', 'being:', 'girdle,', 'seen;', 'horatio!', 'rises.', 'carnal,', 'horatio;', 'loser?', 'seen.', 'seen,', "'tis", "dupp'd", 'truly', 'cannot', 'builds', '[beneath.]', 'friends;', 'friends:', 'next,', 'stream;', 'ignorance.', 'friends,', 'good-night.--indeed,', 'friends!', 'husband', "popp'd", 'burst', 'hurt.', 'ring.--masters,', 'fanned', 'moan:', 'actively', 'sport', 'tutor:', 'come,', 'severally;', 'come.', 'wheel,', 'come!', "walk'd", 'come?', 'complexion', 'come;', 'between', "truncheon's", 'whipped', 'alexander', 'pluck', 'blame', 'hurts', 'article', 'cleave', 'israel,', 'colour,', 'already,', 'colour;', 'colour:', 'comes', 'madness', 'pestilent', 'dispatch', 'moreover', 'fruitful', 'rub;', 'oaths:', 'highness;', "allow'd.", 'dalliance', 'beds;', 'wounds', 'rabble', 'fair:', 'aery', 'these', 'full,', 'trick', 'cherub', 'sicklied', 'danger:', 'forbear', 'soil', 'siege.', 'embrace', 'bestial', 'heels', 'beaver', 'blench,', 'purse,', 'pure:', 'pester', 'gentlemen', 'bated,', 'inquiry', 'charge.', 'charge,', 'document', 'swore,', 'noble', 'multitude,', 'heel,', 'overpeering', '[retires', 'fruit', 'packet;', 'canopy,', 'purer', 'am,', 'am.', 'armour', 'certain.', 'roscius', "look'd", 'rule,', 'touch', 'chance,', 'speed', 'death', 'thinking', 'senseless', 'pocky', 'lender', 'verse', 'pound!', 'struck', 'hover', 'read', 'offence', 'stung', 'guildenstern;--and', 'earnest', 'lady', 'rear', 'fortune', 'greeting', 'benefit', 'twelve', 'falsehood', 'ecstasy!', 'brainish', 'hangers', "unbrac'd;", 'changeling', "'s", 'peace,', 'capability', 'peace.', 'peace!', 'peace;', 'gum;', 'supervise,', 'sheep-skins?', 'business', 'prove,', 'pox,', "'beautified'", 'knees;', 'hectic', 'play,--i', 'throw', 'greatly', 'without,', 'without.', 'passion,', 'passion.', 'distemper?', 'protests', 'welcome,--his', "liv'st;", 'variable', 'your', 'strokes:', 'prepare', 'cicatrice', 'start', 'low', 'stars', 'thick,', 'hellish', 'you.', 'you,', 'drains', "wan'd;", 'you!', 'you?', 'curiously', 'you;', 'you:', 'hire', 'lo!', 'are!', 'are.', 'star,', 'are,', 'appliance', 'lo,', 'bloody,', 'murder!--pray', 'intents', 'grizzled,--no?', 'remembrances', 'marcellus', 'foolery;', 'nero', 'trace', 'moves', "maid's", 'courtiers:', 'yon', 'core,', 'thither', 'you', 'forcing', 'poor', 'intent;', 'drift', 'remembrance;', 'peal', 'move;', 'remembrance.', 'fool,', 'fool.', 'flints,', 'fool;', 'come;--', 'embracing', 'bounty.', 'strings', 'robe,', 'religious', 'dreadful', 'howsoever', 'meant?', 'safety', 'very', 'witching', 'bravery', 'star,--', 'rogue', "find'st", 'mess;', 'pledge.', 'heaven', 'wantonness', 'heaves', 'divulging,', "i'll", 'answer;', 'perfections:--but', 'throughly', 'love.--how', 'answer,', 'answer.', 'charitable,', 'casual', 'conscience', 'him?', 'him:', 'him;', 'him.', 'him,', 'repugnant', 'him!', 'knavery!', 'crowflowers,', 'loose', 'knavery.', 'praises', 'strong', 'soldier', 'adieu!', 'adieu,', 'adieu.', "'twas", 'courtier', 'perdy.', 'toys', 'lewdness', 'story,', 'takes', 'die,--to', 'sir.--', "cyclops'", 'started,', 'taken', "tax'd", 'thrown', "a-down-a.'", 'globe.', 'instrumental', 'sovereignty', 'mazard', 'horses:', 'nine', 'flaw!', 'modesty;', 'fellow-student.', 'implorators', 'chopine.', 'visage', 'reynaldo.', 'reynaldo,', 'phrase', 'lacks', 'complexion,', 'complexion.', 'craft.', 'ratified', 'dagger.', 'bread;', "heart's", '[polonius', 'rude', "odd's", 'apt,', 'a', 'fishmonger.', 'enactures', 'soul,', 'daggers', 'dread', 'crafts', 'dream', 'crafty', 'help', 'wrote?', 'held', "ta'en", 'hell', 'authorities.', 'raves,', "o'ermaster't", 'speechless,', 'theme?', 'fair,', 'occasion.', 'if,', 'observers,--quite,', "'lord", 'fair?', 'fool', 'food', 'ye', 'foot', 'towering', 'cup;', 'fine,', 'labour:', 'fine.', 'elder', 'occasions', 'bless', 'mark,', 'water-fly?', 'fairy', "sir,'", 'duller', 'heavy', 'jaws', "'choose", 'house.', '[falls', 'beyond', 'as,', 'unnatural', 'since', "temper'd", 'stoups', 'table-book,', 'sustain', 'issue', 'ass', 'jaw;', 'drink', 'even,', 'ponderous', 'houses', 'reason', 'base', 'v.', 'dire', 'put', "know'st", 'beggars', 'blush', 'dear,', 'unkind.', 'fortinbras;', 'fortinbras:', 'carters.', 'knocking', 'antiquity', 'loved:', 'dust', 'fortinbras,', 'fortinbras.', 'flatter;', 'miss', 'sheep', 'thoughts;', 'horse', "offender's", "an't", 'station', 'see:--', 'hundred', 'wart!', 'them.--but,', 'guildenstern.]', 'sir,--it', 'lament', 'grey', 'sea-fight;', 'toward', 'greeted,', 'reynaldo.]', 'brains.', 'brains,', 'brains!', 'juice', "slave's", '[draws.]', 'toward,', 'lie', 'flaming', 'officers', 'players.]', 'labour', 'performance.', 'fee.', 'presently.', 'organ.', 'organ,', 'quoth', 'comrade.', 'diet,', 'stealers.', 'majesty.', 'clear', 'officer.', "perform'd,", 'lordship', 'tree;', 'undergo,--', 'nations:', "'as", 'melt', 'heavens', 'sailors.]', 'with,', 'messengers,', 'say?--', 'flights', 'thought-sick', 'with:', 'heaven,', 'heaven.', 'heaven!', 'dismal;', 'bespeak:', 'famous', 'feels', 'heaven;', 'heaven?', "promis'd", 'poisoner', 'perfume', 'courteous', 'tinct.', 'throwing', "o'ersways", 'close', 'excuse.--ho,', 'secret?', 'horrid', 'hang,', 'pictures', 'potently', 'liberty.', 'woo', 'years.', 'honour', 'woe', 'funeral', 'ranker', "unmix'd", "in't?", 'invisible', 'work,', 'both', 'above;', 'assistant,', 'secrets', 'seeing;', 'anon', 'above,', 'picture,', 'forgotten', 'seeing,', 'live.', 'live,', 'you.--for', 'live;', 'stamp', 'mutine', 'here.--gracious,', "in't,", 'strengthen', 'damn', 'kisses,', 'think,--or', 'collected', 'threaten', '[enter', 'delights', 'sinners?', 'steel,', "'twixt", 'like.', 'like,', 'else', 'steel;', 'determination', 'hideous,', 'lasting;', 'look', 'pace', 'while', 'compulsatory,', 'match', 'born,--he', 'costly', 'lawyer?', 'overlooked', 'danes', 'herein', 'confound', 'warning,', 'bellowed', 'hoar', 'use;', 'riotous', "'noyance;", 'grant', 'imponed,', 'rags,', 'grand', 'axe,', 'impious', 'sleeps:--say', 'dane;', 'read,', 'censure', 'read.', 'dane.', 'dane,', 'uses', 'easiness.', 'leaves,', 'chronicles', 'forms,', 'weakest', 'ambassador', 'judgments', 'wise,', 'moment,', 'merely.', 'roasted', 'limbs,', 'melodious', 'translate:', 'botch', 'pronouncing', 'adieu!--', 'decayer', 'longer.', 'cock,', 'longer,', 'cock.', 'march', 'wince;', 'dominions', 'judgment:', 'judgment!', 'dearly', 'judgment,', 'judgment.', 'wings', 'thews', 'throat;', 'kings;', 'opposites.', 'last,', 'creation', 'some', 'england,', 'lips', 'besides,', 'england.', "'adieu,", 'delivered', 'absurd;', 'voltimand,', 'providence', 'indentures?', 'clemency,', 'them?--to', 'father;', 'father:', 'run', 'father?', 'rub', 'tongue?', 'rue', 'step', 'father,', 'father.', 'father!', 'ache', 'head-shake,', 'forget.', "on't;", "on't:", 'debatement', "on't.", "on't,", '[leaps', 'silence', 'seeing', 'panders', 'within', 'ways.', 'smells', 'brought,', 'grave-diggers.', 'tongue,', 'extant,', 'himself', 'healthful', 'frost', 'danger.--', 'warlike', 'dull', 'skull', 'politic', "knew'st", "envenom'd", 'wicked', 'distracted,', 'france;', 'life-rendering', 'metals', "reliev'd,", 'france,', 'pyrrhus:--', 'smile,', 'shown,', 'heat,', 'fears', 'smiling,', '[scattering', 'nay', 'excellent,', 'done,--must', 'smiles', 'draw', 'bodies,', 'spectators', 'gracious;', 'william', 'bodies;', 'dram', 'fear?', 'fear;', 'fear:', "upon't,--", 'question:--', 'politician,', 'unreclaimed', 'fear,', "she's", 'ambassadors;', "new-hatch'd,", 'perpend.', 'ambassadors.', 'coward,--i', 'ambassadors,', 'roughly.', 'margent', 'suits', 'graveness.--two', 'exit.', 'doctor;', "reform'd", 'ophelia!', 'reconcilement', "lock'd,", 'more:', 'all.--my', "lock'd:", 'felicity', 'more!', 'singeing', 'ophelia:', 'yourselves', 'shent,', 'ophelia?', 'barbary', 'suit;', 'gender', 'teeth,', 'evil?', 'dignity:', 'thence,', 'jump', 'go', 'fellies', 'plays', 'paintings', 'jephthah,', 'messenger.]', 'rotten', 'jephthah?', 'melancholy', 'mischief.', 'force,--', 'brooch', 'conveyances', 'conceited', 'generous,', 'adulterate', 'convert', 'play?', 'climature', 'play;', 'play:', 'repel', 'play.', 'play,', 'commendable', 'danger', 'win', 'clout', 'wit', 'distinguish,', 'cloud', 'following.]', 'remains', 'hypocrites,--', 'servant.', "wi'", 'with;', "appear'd", 'becomes', 'nonny,', 'love.]', 'cheek,', 'mockery.', 'meed', "forc'd", 'revenge!', 'servants', 'cheek;', 'meet', 'withdrew', 'quillets,', 'incestuous,', 'falls.]', 'far.', 'pastoral-comical,', 'wonderful', 'ungalled', 'defective', 'speech;', 'digested', 'pray,', 'pray.', 'calumnious', "'mobled", 'pray;', 'speech,', 'speech.', 'fare', 'corruption,', 'oath,', 'farm', 'peace', 'canker', 'argal,', 'marcellus?', "do't,", 'slightly,', 'frontier?', 'marcellus.', 'marcellus,', "serv'd;", 'affectation;', 'trumpets,', 'hand!', 'arithmetic', 'hand,', 'hand.', 'sweet,', 'offences', 'unyoke.', 'purgation', 'sweet:', 'imminent.', 'hand?', 'turf,', 'bethought:', 'thence', 'event;', 'cunning.', 'stone.', 'stone,', 'sword', 'offence.', 'offence,', 'sweets', 'stoup', 'hands', 'front', 'offence?', 'masters', 'hangers.', "murder'd,", 'loneliness.--we', 'wretched,', 'shaking', 'beshrew', 'ills', 'special', 'gallant', 'death-bed,', 'time:', 'time;', 'confess', 'time,', 'lord:', 'time.', "beseech'd", 'lands,', 'wick', 'cause', 'heart.--good', 'fly,', 'ill:', 'that--', 'ankle;', 'undo', 'index?', 'ask', 'times', 'gaudy:', 'us,--thou', 'spite,', 'clamour', 'yond', 'list,', 'there,--my', 'precisely', 'quality', "you're", 'be.', 'be,', 'bears', 'be:', 'be;', 'crescent,', 'declines', 'beard', 'punish', 'herself', 'omen', 'visage,', 'aught', 'bloat', 'fell,', 'beg', 'bed', 'claim', 'bear,', 'bare', 'sultry', 'bet', 'city?', 'cannoneer', 'thereto', 'need', 'bark', 'sings', 'able', 'consequence;', 'instance', 'one,--', 'cutpurse', 'villain?', 'they?', 'negligence,', 'sewing', 'villain;', 'very,', 'basket', 'vengeance', 'villain!', 'awe', 'villain,', 'sing?', 'them,--that', 'mother!--but', 'affair', 'hits:', 'argues', 'soldiers', 'obsequious', 'envy', 'untimely', 'winner', 'rash', 'baser', "scholar's,", 'tune', 'thee.--something', 'secret,', 'enseamed', 'pass,', 'soldier;', "woul't", 'buyer', 'christians,', 'faithful.', 'works,--', 'imperious', 'dejected', 'safety,--', 'she', 'dangerous', 'base;', "denmark's", 'aye;', 'blastments', 'strumpet.', 'freeze', "grop'd", 'desperate', 'mind;', 'joys', 'hit;', 'trespass,', 'mind,', 'state', 'mind.', "silver'd.", 'lug', 'neither', 'excellence;', 'tent', 'powers,', 'jig', 'key', 'precious', 'thank', 'slanders,', 'hits', 'inventorially', 'surmise.', 'admit', 'joy,', 'estimation', "undiscover'd", 'together;', 'together:', 'bearing', 'sense:', 'murder!--', 'beteem', 'together.', "'gentleman'--", 'arms:', 'represented.', 'sense,', 'sense.', 'osric.]', 'poem', 'tread', 'addition', 'wills', 'riband', 'cowards', 'edified', 'poet', 'own:', 'own;', 'battlements', 'king.', 'king,', 'brief:--your', 'king!', 'king:', 'king;', 'king?', 'impress', 'speak!--stop', 'loggets', "fellow's", 'dead!', 'will:', 'will,', 'will.', 'coward?', "that.--pr'ythee,", 'thanks?', 'excrements,', "'horatio,", 'parts', 'kingly', 'party', 'firmament,', 'husband.--look', 'since,', 'grave-maker?', 'flesh', 'effect', 'nightly', 'sooner', 'fierce', 'steals', 'scarcely', "'closes", 'i', 'part,', 'stand,--', 'admirable!', 'osric', 'drowns', 'part:', 'restore', 'discord', 'angels!', 'out.--adieu,', 'fat,', "stirr'd", 'distant', 'knaves,', "finger'd", 'skill', 'parchment', 'milch', 'reckoning', 'statutes,', 'warrant', 'kick', 'unlimited:', 'fate', 'grandsire', 'wooes', "ungart'red,", 'queen,--', 'loss', 'necessary', 'lost', "kill'd", 'rots', 'nipping', 'clown', "revisit'st", 'lose', 'parching', 'likes', 'therein', 'motive', 'home', 'retirement,', 'before,', 'sits:', "heaven's", 'madam.', 'again,', 'madam,', 'broad', 'madam!', 'grinding', 'madam;', 'fretted', 'demonstrated', 'proof,', 'proof.', 'stole,', 'dies.--i', 'she,', 'bisson', "o'erstep", 'again:', 'nemean', 'sweepstake,', 'chance', "scarf'd", 'tongue', 'indeed?', 'times;', 'primal', 'due', '[writing.]', 'treads', 'court?', 'dug', 'hercules:', 'cups;', 'weeps', 'imperial', 'cell,', 'prophetic', 'effects:', 'addition,', 'enact?', 'gait', 'neutral', 'gain', 'highest', 'eat', 'he', 'weep?', 'eyes?', 'eyes;', 'therefore,', 'carriage', 'converted', 'weep,', 'empty', 'eyes.', 'piece', 'signet', 'friend.', 'friend,', 'devise', 'kisses', 'friend!', 'friend?', 'beats', 'friend;', 'ground.--', 'philosophy.', 'perdition', 'concernings', 'lazar-like,', 'down,--', 'charity,', 'yours.', 'yours,', 'star', 'stay', 'methinks', 'foil', 'inclining?', 'friends', 'pestilence', "'we", 'lives', 'denies', 'commencement', "know';", 'forgone', 'pardon', 'better,', 'reason,', 'appears:--but', 'compact,', 'straws', "swear't.", "o'erhanging", 'better:', 'up.', 'whose', 'grace,', 'pardon.', 'pardon,', 'common.', 'up:', 'grace;', 'sorry', "''tis", 'drink!--o', 'drunkards,', 'appal', 'hadst', 'gules;', 'otherwise:', 'who?', 'otherwise?', 'straw:', 'vast', 'jointress', 'companies', 'convenience', 'sexton', 'answerest', 'attendants.', 'graces', 'whirlwind', 'lips,', 'me!', 'me,', 'me.', 'indirections', 'me?', 'me;', 'me:', 'even', 'elsinore.', 'maggots:', "ne'er", 'wreck', 'desirous', 'gold,', 'unwholesome', 'rest,', 'it:--stay,', 'new', 'rest!', 'ever', 'orbed', 'men', 'met', 'showers.', 'battery?', 'interpret', 'contraction', 'dry', 'cried,', 'light.', 'gentlemen;--', 'rankly', 'prison,', 'prison.', 'deceived.', 'heedful', 'war;', 'drowned', 'amities;', 'circumvent', "sleeper's", "soil'd", 'remainder', 'arms', 'right;', 'call', 'calm', 'right,', 'right.', 'tell', 'calf', 'lungs', 'wary', 'paradox,', 'shepherds', 'room', 'rights', 'bedtime,', 'roof', 'majesty;', 'arm,', 'mother.--come,', 'exercises;', "serv'd", 'give', 'honey', 'ophelia.]', 'blank,', 'masterly', "quarter'd,", 'faults', 'sate', 'answer', 'shortens', 'blanks', 'guild.],', 'vicious', 'laugh,', 'cold;', 'third', 'still;', "'gins", 'still,', 'cold.', 'cold,', 'unsmirched', 'fault:', 'down;', 'down?', 'down,', 'down.', 'down!', 'leperous', 'before', 'then.', 'then,', 'mount,', 'personal', 'crew', 'better', 'then;', '[within.]', 'then?', 'returneth', 'carve', 'luc.', 'overcome', 'prithee', "thou'lt", 'weakness', 'within,', 'partisan?', 'unfold.', 'manners,', 'heavy,', 'gent.', 'remember,--', 'us!--', 'week;', 'went', 'sliver', 'side', 'lofty', 'nave', 'fortinbras,--', 'ministering', 'begun,--', 'on,', 'forgot', 'assault.', 'is;', 'by-and-by', "'em?", 'content', 'message,', 'is.', 'you.--if', 'is,', 'is!', 'oblivion,', 'truepenny?--', 'quaintly', 'whiff', 'revenge', 'aid:', 'bestow', 'abate', "bear't", 'mistress', 'rebels,', 'marriages:', 'patrick,', 'prodigal', 'loud', 'thereon', 'thereof', 'rashness', "cop'd", 'pansies,', 'acquaint', "howe'er", "vulcan's", 'piece,', 'begin.', 'pooh!', 'begin,', 'dilated', 'guards!--what', 'naught,', 'feats,', 'fiction,', 'peculiar', 'lads,', 'begins', 'creatures,', "barber's,", 'body.', "think't.", 'imputation', 'preparation', 'matter', 'body;', 'girl,', 'body?', 'foresaid', 'sees', 'mind', 'mine', 'seen', 'profanely,', 'seek', 'tells', 'dove,', 'harrows', 'do,', 'dove!', 'daughter?', 'impotent', 'do:', 'fitting', 'do?', 'point:', 'tell.', 'wing,--', 'see?', 'see;', 'see:', 'on,--', 'tell;', 'see!', 'see.', 'see,', 'records,', 'alarm', 'dog', 'breathes', 'points', 'strong.', 'general;', 'celebrated,', 'retire', 'treachery!', 'incest.', 'treachery.', 'eaten:', 'ear,', 'ear.', 'divinity', 'dangerous,', 'folded', 'sugar', 'ear:', 'worser', 'wearing', 'third,', 'oft.', 'him,--', 'guild.', 'stop', 'lecherous,', "watch'd.", "anchor's", 'comply', 'debt:', 'bar', 'judge;', 'lisp,', 'bad', 'softly', 'ban', 'ears', 'brothers.', 'folly', 'unworthy', "cozen'd", 'sailors,', 'prophesy', 'prate', 'march.]', 'subject', 'wits,', 'lunacies.', 'wits.', 'said', 'continent', 'heaven!--', "there's", 'matters?', 'sorts', 'wears', 'vows', 'ambitious;', 'ignorance', 'weary', "'and", 'gentry', 'cousin', 'sort,', 'malefactions;', 'beck', 'against', 'damned', "pursu'st", 'springs', 'nutshell,', 'goes,--mark', 'now,', 'now.', 'wars,', 'murder,', 'puts', 'murder!', 'three', 'commission', 'now?', 'vows:', 'now;', 'gaming,', 'less,', 'suppress', 'rosencrantz.]', 'daisy:--i', 'exception', 'particular:', 'ugly', 'near', 're-deliver', 'unfellowed.', 'thought,', 'seven', 'is', 'it', 'defeated', 'lord.]', 'shame', 'thought;', 'in', 'solicited.--the', 'mouse', 'if', 'grown', 'lords.', 'lords,', 'make', 'practice,', 'offendendo;', 'practice:', 'grows', 'heraldry,', 'bells', 'jocund', 'i;', 'i:', 'i?', 'conjunctive', 'delight', 'i,', 'i.', 'i!', 'can:', "he'll", 'thoughts', 'shrewdly;', 'practices', 'grow:', 'paris;', 'investments', 'left', 'chamberlain.', 'dream.', 'givers', 'just', 'behold!', 'feet,', 'yet', 'exploit,', 'royal', 'straw', 'sum.--what', 'lord,--', 'save', 'ago,', "befall'n?", 'ye.', 'ye!', 'trippingly', "unanel'd;", 'auspicious', 'impasted', 'dreamt', 'dreams', 'shoulder', 'dignity', 'satisfaction;', 'baseness', 'table:', 'justice;', 'deal', 'state,--', 'meaning:', 'dead', 'revel', "nothing's", 'dear', 'absent', 'theatre', "milldew'd", 'bold,', "fix'd", 'valentine.', 'beget', 'knew', 'bold', 'burn', 'sift', 'musty.', "'it", 'haply', "'if", "'in", 'marshal', 'strucken', 'foil,', 'lief', 'for.', 'for,', 'down', 'lies', 'for?', 'ber.', 'door.]', 'unseal', 'bounds.', 'jealousy', 'bound,', 'stage;', 'prevent,', 'form', 'what?', 'unmanly', 'lie,', 'err;', 'powerfully', 'murderer;', '--leave', 'surrender', 'garbage.', 'arras.]', 'seneca', 'discovery,', 'sticks', 'unweeded', '[ghost', 'die,', 'awhile', 'pernicious', 'unholy', 'discretion.', 'profit,', 'distress,', 'dowry,--', 'last;', "o'ertook", 'tardy', 'widow,', 'stirring.', 'garland', 'faction', 'dies', 'stick:', 'a-making,--', 'fell', 'mass,', 'died', 'feeling,', 'assume', 'honeying', 'daily', 'groans:', 'teeth', 'mountains,', "passion's", 'customary', 'peruse', 'eldest', 'chaunted', 'skin', 'vacancy,', 'horatio:--welcome,', 'anticipation', 'depend', 'hairs,', 'father', 'deject', 'praised', 'trains,', 'sundays:--o,', 'suffered', 'off.', 'travel?', 'forth,', "'would'", 'soul:', 'soul;', 'singeth', 'anon,', "soldier's,", 'merit', 'attractive.', 'anon;', 'pious', 'soul!', 'did', 'die', 'mark.', 'dig', 'limed', 'counsel.--come,', 'excellence', 'praise,', 'dip', 'round', 'fearing', 'else,', 'else.', 'wherefore', 'else?', 'favour', 'sphere,', 'sphere;', 'wail', 'french', 'unknowing', 'target;', 'thither.', 'wait', 'here?', 'shift', 'bow', 'here.', 'here,', 'here!', 'shook', "revenge.'", 'hither', 'mothers,', 'attended.', 'merely', 'guilty,', 'plots', "columbines:--there's", 'wealth', "unus'd.", 'stoops', 'visit', 'france', "poison'd", "on't?", 'repast', 'fly', 'ay,', 'soul', 'unimproved', 'growing', 'making', 'bites', 'grained', 'amiss:', 'haps,', 'till', 'sunday', 'pure', 'assistant', 'amiss.', "speak';", 'may', 'lord;', 'lord?', 'portal!', 'lord!', 'mad', 'lord.', 'grow', 'lord,', 'man', 'neck', 'borrowing', "'to", 'tale', 'thorny', 'falls,', "on't!", 'falls.', 'thorns', 'talk', 'shoes', "devis'd", 'exceedingly,', 'cruel,', 'rapiers,', 'shake', 'guil.]', 'gibber', 'chiefest', 'months,', "see't.", 'maid', 'policy', 'main', 'wisely,', 'shoe?', 'shatter', 'to-night', 'pyrrhus', 'begun.', 'touching', 'king.]', 'killed', 'possess', "phoebus'", 'guil.,', 'arrows', 'peasant', 'careless', "consequence,'", 'rock', "in-urn'd,", "seeks.'", 'slaughters;', 'replication', "us'd", 'treacherous', 'brook,', 'or,', 'brook.', 'preaching', 'aloof', 'chough;', 'living', 'yes,', 'both,', 'goes.', 'assurance', 'goes,', 'obsequies', 'monster', 'across?', 'ore', 'orb', 'both;', 'hyperion', 'honour,--', 'souls', 'thing', 'thine', 'think', 'first', 'dwelling', 'eye;', '[re-enter', 'crib', 'but,', 'sent;', 'fast', 'carry', 'eye,', 'eye.', 'little', 'chanson', '[they', 'fiery', 're-speaking', 'eyes', 'sound,', 'sound.', "here's", 'murderous,', 'cracks', 'asking?', 'were', 'historical-pastoral,', 'queen,', 'queen.', 'lick', "queen'", 'queen!', 'coming:', 'spent.', 'queen?', 'queen:', 'coming.', 'sheet;', 'merriment,', 'tokens.', 'wretch', 'green', 'fill.', 'pranks', 'daisies,', 'norman', 'voice:', 'voice;', 'iii.', 'paid', 'blackest', 'voice,', 'brief,', 'gallows-maker;', 'queen.]', 'pair', 'mettle', 'especially', 'alone;', 'order', 'stockings', 'alone.', 'shot', 'usurp', 'show', 'bitter;', 'contract,', 'corner', 'slaughter:', 'treasure', 'behind', 'black', "say'st:", 'get', "kiss'd", "assur'd,", 'or,--not', 'ears;', 'gem', 'beseech', "adjoin'd;", 'yield', 'morning', 'storm,', 'rosemary,', 'streets,', 'honesty', 'seat', 'relative', 'infected,', 'streets;', 'calendar', '[exit.]', "father's", 'enough', 'this.--the', 'honest?', 'honest;', 'chorus,', 'couplets', 'honest,', 'countenance', 'fellowship,', 'sea,', 'necessity,', 'denmark.', 'according', 'denmark,', 'blasts', 'denmark:', 'gratis;', 'denmark?', 'among', 'rendezvous.', 'sensible', 'capable', 'mark', 'mart', 'sensibly', "will't", 'clepe', 'innovation.', 'spills', 'wake', 'those', 'sound', 'plastering', "is't", 'story.--', 'mar.', 'employment;', '[breaking', 'stops.', 'say,--', 'cock', 'art,', 'art.', 'command,--', 'sleeping', 'middle', 'sudden', 'arrows,', 'wisely', 'forgery', "cain's", 'harsh', 'pay', 'horatio', 'same', "unhous'led,", 'opposition,', 'speech', 'this,--he', 'afflicts', 'struggling', "reserv'd", "foul'd,", 'bouts', 'forgot:', 'been,', 'forgot,', 'conference.', 'argument,', 'roughly', 'morrow,', 'nonny', 'argument?', 'gates', 'blanket,', 'money', 'asleep;', 'sere;', 'asleep,', "conjoin'd,", 'pile', '[pours', 'grating', "'laertes", 'wife,', 'wife.', 'withal,--except', 'wife!', 'sight.', 'sight,', 'secrecy', 'found,', 'slain', 'serves', 'chamber', 'audience', 'miraculous', 'either', 'passionate', 'crocodile?', 'thereunto,', 'breath.--', 'unrighteous', 'broke;', 'afflict', 'witchcraft', 'broke.', 'second,', 'gross', 'pocket!', '[draws', 'moderate', 'knife', 'image,', 'fitness', 'broken', 'shadows.', 'understanding,', 'contagion', 'roar', 'out:', 'violence', 'knave', 'out,', 'out.', 'allegiance!', 'imitated', 'quietly', 'lands', 'schoolfellows,--', 'morning;', 'unnerved', 'strike,', 'distracted', 'brute', 'mole!', 'fates', 'wild;', 'land;', 'gods.', 'strikes', 'strife,', 'shroud', 'corse', 'land,', 'wild,', 'land.', 'spirit!--so,', 'follow:--your', 'fate,', "brother's", 'treacherous,', 'faces,', 'affection', 'importunate;', 'celestial', 'deer', 'deep', 'fellow', 'imagination', 'planets', 'importing', 'deed', 'film', 'tedious', 'again', 'weapons:--but', 'appurtenance', 'bung-hole?', 'repent', "'doubt", 'itself?', 'important', 'itself,', 'brands', 'overcame', 'sequent', 'nods,', 'remote', 'attendant.]', 'resembles', 'ditchers,', 'resolution', 'needful', 'forget', 'vile', "difference.--there's", 'worms', "hamlet's", 'over-happy;', 'forged', 'behooves', 'children', 'prolongs', 'really.', 'hebenon', 'laid', 'mother:', 'mother;', "'twill", 'mother!', 'mother,', 'mother.', 'hideous', 'sun:', 'sun;', 'allowance,', 'sitting', 'fantastic', 'foh!--about,', 'uphoarded', 'overdone', 'worm.', 'lain', 'bosom,', 'sun.', 'rascal,', 'sun,', 'fall', 'eye!--', 'vouchsafe', 'nine;', "on't,--frailty,", "advanc'd", 'too!--', 'range.', 'patches!--', 'quiet.', 'groundlings,', 'ourselves.', 'further', 'ourselves,', 'creatures', 'milk,', 'stood', "wish'd.", 'defence,', 'niobe,', 'coronet', 'judicious', 'tribute', 'everlasting', 'public', 'yorick!--i', 'own.', 'speeches', 'kibe.--how', 'enmity', 'fatted', 'temperately', 'narrow', 'merry?', 'apprehension,', 'confess.', 'merry,', 'amazement', "lion's", 'armed', 'lady,', 'lady.', 'eye', 'two', 'guard,', 'lady?', 'quickness:', 'squeezing', 'guard?', 'leisure.', 'leisure,', 'play,--and', 'pyrrhus,', 'canon', 'stays:', 'particular', 'town', 'none', 'hour', 'abroad;', 'nothing;', 'nothing:', "season'd", 'nothing!', 'nothing,', 'nothing.', 'marble', 'stubborn', 'compare', 'hecuba?', 'charm;', "prick'd", 'hecuba,', 'hecuba.', 'sharp', 'strangely,', 'needs', 'comfort', 'eat,', 'sacred', 'steps,', 'stir', 'pyrrhus,--he', "claw'd", 'ophelia,', 'coming', 'more;', 'thou!', 'act:', 'well.--welcome,', 'thaw,', 'thou,', 'thou.', 'act,', 'act.', 'pleasure', 'need,', 'pomp;', "that's", 'northerly.', 'glowworm', 'grossly,', 'more,', 'grief:', 'through', 'ophelia;', 'a-piece', 'more.', 'king?--sirs,', 'forthwith', 'habit,', 'bosom', 'late', 'coted', 'amaze,', 'awry,', 'compound', 'masters;', 'easily', 'pregnant', 'habits', 'boisterous', 'hark', 'house', 'fish', 'hard', 'stages,--so', 'hart', 'steward,', 'muddied,', 'violets,', 'rogue!', 'crowing', "england's", 'acting', "they'll", 'defy', 'pitied.', 'circumstance', 'pleasant', 'disposition', 'backed', 'demands,', 'primy', "vanish'd", 'stir,', 'instances', 'done', "to,--'tis", 'clouts.', 'plentiful', 'carriages?', 'carriages:', 'twenty', 'entreated', "incens'd.--let", 'paint', 'skull].', 'cup.', 'neglect.', 'part', 'believe', 'pain,', 'health.--', 'drink.--hamlet,', 'youth', 'contrary', 'grieves,', 'service.', 'ordinant.', 'mountain', 'built', 'drift;', 'awhile.--', 'couch', 'build', 'griefs', 'order,', 'harbingers', 'most', 'age,', 'trifle,', 'idle:', 'madness:', 'gentry;', 'charitable', 'weigh', 'nobility', 'fardels', 'sepulchre,', 'choler.', 'spades,', 'noblest', 'carefully', 'fine', 'find', "character:--'naked!'--", "neighbour'd", 'slain?--o,', "matron's", 'commission:', 'commission;', 'blush?', 'batten', 'express', 'swaddling', 'obligation,', 'resolve', 'frankly', 'contagious', 'tempest,', 'common', 'manners;--that', 'doublet', 'beautified', 'volley.', 'air.', 'tender', 'holds,', 'falling-off', 'please', 'dispatch,', 'flame', 'bourn', 'devil:', "prov'd,--that", 'devil!', 'devil,', 'applaud', "is't;", 'annual', 'sons,', 'foreign', "is't,", 'danes.', 'afar', 'point', 'simple', 'probation.', 'smote', 'tears;--why', 'rivals', 'secret', 'dropping', 'meeting', 'summons.', 'slips', "kill'd,", 'beasts,', 'understand', 'beasts:', 'fretful', "kill'd:", 'pierce', 'survivor', 'solid', 'further?', "talk'd", 'further.', 'further,', 'delver,--', 'husband,', 'itself', 'prayers,', 'how?', 'wherein', 'discourse', 'whore,', 'how.', 'how,', "priam's", 'heraldry', 'moment', 'ardour', 'brothel,--or', 'dark', 'returns,', 'salvation', 'craven', 'craves', 'inhibition', 'withdraw', 'spend', "indu'd", 'wife;', 'matter.', 'matter,', 'shape', 'tables,--meet', 'matter:', 'matter;', 'matter?', 'follow;', 'cut', 'follow?', 'cup', 'source', 'cue', 'follow.', 'dare', 'follow,', 'bid', 'matters', 'three-and-twenty', 'knock', 'follows', 'wag.', 'admiration.', 'savoury,', 'foolish', 'virtue;', 'humorous', 'back', 'martial', 'strongest', 'content.', 'mirror', 'ourselves', 'pronounced', 'scale', 'good:', 'good;', 'good!', 'good,', 'good.', 'nose', 'patient', 'clay', 'virtues', "'this", 'presence;', 'myself,--', 'blasted,', 'fellow.--whose', 'sipping,', 'boy!', 'hope,', 'hope!', 'boy,', 'remembrance', 'lesson', 'hamlet,--with', 'whereto', 'forward', 'translate', "sulph'uous", 'invite', 'frame,', "'good", 'boys', 'pickers', 'hopes;', 'he,--and', 'likely.', 'possession', 'constant', 'royally:', 'thereabout', 'deprive', 'single', 'cure', 'curb', 'dragging', "borrow'd", 'pastoral,', 'honourable.', 'confine', 'accidental', 'spurns', 'favourite', 'red?', 'actor', 'whipping?', 'neck:', 'credent', 'kindless', 'strew', 'graves', 'mother.--', 'compost', 'helps', 'wassail,', 'pleasing', 'it.--you', 'assay', 'presently', 'players,', 'ophelia', 'players;', 'accuse', 'horse,--', "pardon'd", "dicers'", "steep'd,", 'help!', 'grave?', 'knight', 'help,', 'grave.', 'grave,', 'beast:', 'bleeding', 'sin,', 'beast,', 're-word;', 'rough-hew', 'mew,', 'other;', 'giving', 'access', 'honours.', 'exercise', 'body', "wrong'd", 'exchange', 'sinews,', 'sins', 'jointly', 'others', 'anything--but', 'sing', 'imperfections', 'pipe?', 'conceit', 'eternity.', 'hams:', "offer'd", 'delights.', 'jest;', 'too-much-changed', 'private', 'methought', 'scandal', 'ii.', 'jest,', "possess'd", "shadow's", "again;--i'll", "o'errule", 'themselves', 'impotence', 'name.', 'name,', 'trail', "nephew's", 'ashamed', 'enviously', 'name;', 'perchance,', 'account', 'procession;', 'contriving,', 'villain', 'praise', 'fetch', "t'is", 'water;', 'marriage-vows', 'parley.', 'lordship?', 'lordship!', 'bones', 'lordship.', 'native', 'holds', 'eterne,', 'forest', 'splenetive', 'says:', 'fitted.', 'philosophy', "return'd--", 'physic', 'trifling', 'priests,', 'ambiguous', 'gone,', 'such.', 'gone!', 'lines', 'noise:', 'gone:', 'gone;', 'chief', 'hold,', 'gone?', 'region;', 'looking', 'furnish', 'foreknowing', 'reels;', 'all:--i', 'shreds', 'flattering', 'thyself', 'waxes,', 'whereon', 'cudgel', 'whereof', 'acres', "o'ergrowth", '--my', 'pangs', 'danskers', 'polonius.]', 'day', 'upshot,', 'radiant', 'least,', 'uncurrent', 'mars,', "o'erhear", 'lists,', 'fran.', "reveng'd.--that", 'incensed', 'origin,--', 'defend', 'lungs?', 'messenger', 'flushing', 'lecture', 'backward.', 'sergeant,', 'likelihood', 'bleed', 'smoothness.', 'yard', "hamlet.'--come,", 'mortal', 'retain', 'rhenish', 'reaches', 'alleys', 'moiety', 'city.', 'ancient', 'thirties', "pardon't,", 'love,', 'scenes,', 'love.', 'scant', 'love?', 'love;', 'assay:', 'forfeit,', 'tribute:', 'readiness', 'gertrude;', 'acquire', 'gertrude?', 'fines,', 'gertrude,', 'loved', 'lap?', "o'er", 'heavens,', 'calamity', 'upon.', 'assays', 'lover', 'flashes', 'abstracts', 'heavens!', 'gambol', 'caps,', 'have', 'throat', "engag'd!", 'patience!', 'patience.', 'marcellus!', 'dismay.', 'wild:', 'unless', 'clothes,', "poison'd.", 'business.', 'business,', "where's", 'coronation;', 'eight', 'gods,', 'prisoner', 'profoundest', 'gather', 'door.--o', 'absurd', 'occasion', "outstretch'd", 'beauteous', 'outlive', 'another.', 'wonderful!', 'hamlet', 'rebuke', 'thicker', 'staff', 'knowledge', 'mope.', 'porches', 'which,--', 'one.--to', 'crab,', 'supposal', "sale,'--", 'bear', 'rebellious', "name's", 'loam;', 'littlest', 'soon.--', 'anything,', 'dearest', 'straight.', 'dish:', 'we', 'straight:', 'sweet;', 'life,--', 'attribute.', 'desires.', 'reform', "master's", 'bias,', 'progress', 'monarchs', 'thanks:', 'thanks;', 'king,--', 'offal:', 'sorrow', 'thanks.', 'thanks,', 'exclaim', 'instant', 'egg-shell.', 'freely', 'equal', 'assure', 'wringing', 'passing', 'comment', 'tragical-historical,', "e'er", 'jester.', 'done?', 'done;', 'done:', 'commend', 'done!', 'laugh', 'done,', 'done.', 'home:', "it's", 'muddy', 'home!', 'attends', 'ah', "lady's", 'copied', 'home,', 'define', 'bulk', 'liegemen', 'juggled', 'beguile.', 'general', 'plain', 'pity;', 'sponge!--what', 'article,', 'ill', 'sister,', 'almost', 'unction', 'sister;', 'suspiration', 'scholar;', 'shame,', 'shame!', 'videlicet,', 'tumbled', 'statists', 'fates,', 'practice', 'bands.', 'breaks,', "bark'd", 'good-night.--', 'judgment', 'closet:', 'besmirch', 'diet:', 'fox,', "damn'd,", 'thought', 'windlaces,', 'sets', 'posset', 'usual', "in't.--", 'liberty;', 'interim', 'tragical-comical-historical-pastoral,', 'ha!--come,', 'test,', 'liberty,', 'north-north-west:', 'vengeance!', 'work.', 'knave.', 'shoes,', 'work:', 'work;', 'good-will', 'work?', 'cellarage,--', 'ravel', 'smart', 'raven', "traduc'd", 'quiddits', 'it,--might', 'peating', 'there.--be', 'armour,', 'seat;', 'insert', 'like', 'confusion,', "so;'", "night's", 'valour,', 'out-herods', 'heed', 'arraign', 'soft', 'heel', 'worth,', 'wittenberg.', 'wittenberg,', "inclin'd.--", 'hail', 'worth!', 'hair', 'wittenberg?', 'convey', 'proper', 'eyes.--pray', 'corpse', 'blessing,', 'discretion', 'flesh;', 'yesty', 'whine?', 'noise', 'slight', 'swoons', 'ceremony:', 'highly,--not', 'host', 'worthy', 'promise-crammed:', 'simples', 'stuff;', 'damnable', 'about', 'churchyards', 'quills', 'certainty', 'hilts,', '[king', 'lamond.', 'conjuration', 'tomb', 'happen.', 'adheres.', 'uncle-father', 'hangers,', 'guard', 'female', 'signify', "yorick's", 'prince;', 'minute;', 'still.--', 'prince,', 'children?', 'sequel', 'but', 'plague', 'children,', 'ventages', "o'erreaches;", 'wise', 'princes', 'wish', "lord?'", 'minutes', 'christian,', 'constantly.', 'deaths', 'whisper', 'vapours.', 'ambassadors', 'pit', 'accident,', 'accident.', 'dressed', 'poniards,', 'morn,', '[throws', 'seduce!--won', 'indeed.', 'indeed,', 'phrase;', 'overthrown;', 'death:', 'death;', 'proceed?', 'death!', 'death,', 'gifts,--', 'death.', 'church;', 'bulwark', "adam's", 'entertainment', 'news?', 'entreat', 'news.', 'news,', 'ever.', 'admiration?', 'hath', 'sleep', '[gives', 'ever:', 'appetite', 'hate', 'yonder', "o'er-raught", "dar'd", 'self-slaughter!', 'whatsoever', 'under', 'wondrous', 'rise', 'every', 'tears:', 'winnowed', 'encounter', 'school', 'withers', '[stabs', 'mutes,', 'razed', 'direct', 'hundred.', 'persuade', 'pat,', 'blue', 'favours?', 'hide', 'leave?', 'solemn', 'terms,', 'beaten', 'poison', 'fatness', "ophelia,'--", 'sheeted', 'change;', 'leave,', 'leave.', 'seeks', 'dishes,', 'friendship,', 'faults,', 'acted;', 'feather.', 'pate', 'wedding.', 'path', 'wrinkled;', 'property', 'fay,', 'leaves', 'hid,', 'settled', 'pendant', 'company,', 'imposthume', 'reply:', 'breath,', 'passeth', 'sorrows', 'patience', 'meats', 'salary,', 'breath?', 'reply.', 'breath;', 'would', 'used;', 'tenders', 'hamlet,--', 'breathe', 'off;', 'portraiture', 'sorrow,', 'grief', "fear'd", 'excellent', 'sorrow:', 'off,', 'must', 'me', '[grappling', 'join', 'praying;', 'ratifiers', 'tender,', "wit's", 'foils', 'my', 'quarrel', 'dies.]', 'bevy', 'estate', 'not,--lost', 'loosed', 'cataplasm', 'mouth,', 'keep', 'ceremony', 'end', 'harmony;', 'rouse;', "whor'd", 'heart,--for', 'play.]', 'rouse,', 'writers', 'enquire', 'both.', 'sallets', 'mouths', 'nunnery,', 'nunnery.', 'loose!', 'hence', 'forty,', 'both?', 'nunnery:', 'commutual', 'prosperously', 'enter', 'roused', 'over', 'unwrung.', 'sickly', 'crimeful', '[lying', 'disease,', 'clapped', 'heart:', 'vouchers,', 'whilst,', 'heartily.', 'whips', 'shadow.', "bles'd,", 'me!--', 'diseases', 'history,', 'history.', 'herald', 'in,--he', 'each', 'waving', 'hems,', 'lasting', "amaz'd", 'amble,', "seiz'd", 'scope!', 'truant', 'undertakings,', 'clothe', 'day?', 'day:', 'day;', 'god', 'horatio.]', 'day.', 'day,', 'heavenly', 'got', 'newly', 'scopes', 'ghost,', 'ghost.', 'ghost!', 'eternal', 'free', 'evil', 'defence?', 'fret', 'go,', 'go.', 'rewards,', "pyrrhus'", 'days', 'quintessence', "know't,", 'go;', 'go:', 'grief;', 'already', 'too.', "hop'd", 'too,', 'rank', 'hearing', 'fantasy', 'grief,', 'traitorous', 'too;', 'mercury', 'toy', 'their', 'murder,--', 'top', 'too', 'wildly', 'mouse-trap.', 'she,--', 'toe', 'murder', 'not:--withdraw;', 'events,--', 'enough,', 'serve', 'took', 'lying:', 'beggar.', 'affrighted!', 'dungeons,', 'height,', 'precurse', 'to.', 'expostulate', 'to,', 'mirth', 'combat;', 'light:--away!', 'fashion', 'wanton,', 'raw', 'mightier:', 'aught,--', 'hatch', 'cleft', 'though', 'tormenting', 'glimpses', 'me?--', 'scuffling,', 'scripture?', 'metal', 'letters,', 'orderly', 'reputation', 'enterprise', 'him.--', 'letters;', 'wild', 'bait', 'queen', 'earth', 'ruin.', 'ground,as', 'gertrude:--', 'delays', 'commandment', 'may,', 'scripture', 'anger.', 'mixture', 'about:', 'watch', 'borrower', 'despite', 'report', 'about,', 'countries', 'method', 'twice', 'delay,', 'habit', 'churlish', 'liquor', 'proclaims', "o'erhasty", 'winks,', 'face,', 'face.', 'conceit.', 'player.', 'hypocrite;', 'finger', 'tush,', 'conceit?', 'face?', 'face;', 'havoc.--o', 'liest.', 'weal', 'weak', "reveng'd,", 'wear', 'news', 'blasted', 'definement', 'fault', 'jelly', 'players', 'tediousness', 'faces', "o'erwhelm", "dar'st", 'myself,--lawful', 'does--what', 'enterprise,', 'hast', "hecate's", "seal'd?", 'gentleman.]', 'trust', '[march', 'been', 'quickly', 'celestial,', 'drugs', 'enterprises', 'craft', 'catch', 'church.', "gentleman.'", 'lesser', 'stopping', 'cracked', 'foot.', 'mouthed,', 'working,', 'character.', 'lust,', 'exterior', 'peak,', 'containing', 'heart.', 'heart,', 'alarm,', 'forehead', 'heart;', 'heart?', 'whoreson,', 'several', 'thumb,', 'censure,', 'expense;', 'milky', 'vienna:', 'made,', 'made.', "forg'd", 'mallecho;', 'shortly', "mother's", 'incapable', 'mother', 'francisco,', 'hearts', 'francisco.', 'burn,', 'departed', 'shriving-time', 'proposer', 'rhymed.', 'break.', "cov'nant,", 'speaks,', 'foot;', 'office,', "fall'n", 'pitiful', 'humanity', 'gave', 'jealousy!', "beggars'", 'breaks', 'propose,', '[sleeps.]', 'consequence,', 'judge', 'something-settled', 'burnt', 'scruple', 'apart', "'thine", 'opinions;', 'hung', 'country.', 'cor.', 'cornelius,', 'seems,', 'seems.', 'election', 'escape', "tellus'", "sister's", "say'st", 'proceeding', '[francisco', 'ear', 'companions', "'fore", 'everything', 'purchases,', 'mess.', 'taints', "depriv'd", 'encompassment', 'pagan,', 'watch;', 'flowers;', 'betimes?', "'for,", 'majestical,', 'sorry,--', 'you,--', 'remove:', 'presence', 'warranties:', 'remove,', 'difference.', 'gis', 'pearl', 'transform', 'virgin', '[a', 'fought', 'all:', 'questionable', 'head', 'visitation', 'bat,', 'ah,', 'herod:', 'heat', 'uncle', 'this,--', 'objects,', 'removed', 'hands,', 'hands.', 'admiration', 'grave.]', 'crew.', 'motion', 'so:--', "him;--but,'", 'sometime', 'supper!', 'supper.', 'trip', 'willingly', 'looked', 'faithful', 'no', 'away.--', 'when', 'whereat', 'whet', 'picture', 'incestuous', 'ever-preserved', 'preceding', 'advancement.', 'shine:', 'ham.', 'younger', 'to-day', 'longer', "gave't", 'longed', "might';--", 'douts', 'serious', 'forgeries', 'leads', 'ros', 'row', 'peep;', 'wars.', 'post.', 'charge', 'month,', 'hammers', "would';--", 'freely;', 'playing,', 'congregation', 'monument:', 'sables.', 'cool', 'grave-makers:', "mortis'd", 'clouds', 'hamlet:', 'best,', '[laertes', 'brother', 'hamlet,', 'hamlet.', 'quick', 'hamlet!', 'stands,', 'says', 'liquor.', 'hits.', 'dew', 'drinks', 'darkest', 'stately', 'contracted', 'remain', 'debate', 'goes', 'guilt,', "fulfill'd", 'one?', 'bearers', 'drink,', 'drink.', 'forth.--', 'nearer', 'friends.--o,', "worm's;", 'afterwards,', 'say;', 'water', 'witch', 'twentieth', 'say!', 'say.', 'say,', 'thirty', 'guilty', 'obeys;', 'oph.', 'stand.', 'stand,', "flatter'd?", 'myself.', 'myself,', 'true!', 'jig-maker!', 'peep', 'wings,', 'prey', 'memory', 'struck?', 'true:', 'drown', 'strangely?', 'bent.--i', 'and,', 'chapel.', 'julius', "and'", 'means,', 'means.', 'wrong,', 'wrong:', 'numbers', 'corrupted', 'figure', 'hours.', "'friend,'", 'brokers,--', 'bride-bed', 'speedier,', 'provoke', 'inheritance', 'eloquent', "o'erweigh", 'lovingly;', 'stones,', 'speaks', 'rites', 'dry,--', 'dogs!', 'contumely,', 'beg,', 'speak,', 'liquid', 'different,', "o'er-leavens", 'speak!', 'enemies.', 'inform', 'speak:', 'speak;', 'unskilful', 'fadoms', 'promontory;', 'acts', 'hence:', 'midnight', 'plausive', 'souls?', 'them.--stand,', "ghost's", 'abhorred', 'chalice', 'platform', 'souls,', 'gentlemen!--', 'songs,', 'to-night:', 'motion,', "warr'nt", '[danish', 'observance,', 'songs?', 'motion:', "'twere,", 'term', 'name', 'by.--they', 'crows.]', 'ape,', 'word.--', 'twenty,', 'gape', 'base,', 'state!', 'farewell', 'begun', "call't", 'grave-making?', 'like:--it', 'thus?', 'thus:', 'profit', 'strumpet,', 'thus,', 'thus.', 'stuck,', 'sober,', "prais'd", 'jig,', 'wildness:', 'ill-breeding', "screen'd", 'other,--', 'turn', 'turk', "was--'", 'blood', 'origin', 'revenue', 'hor.,', "baker's", 'arras', 'state;', 'cheerfully', 'given', 'card,', 'thyself,--', 'horatio?--', 'white', 'gives', 'million,', 'hue', 'greenly', 'season', "men's", 'unmannerly.', "purpos'd,", 'grunt', 'give,', 'wide', 'friending', 'earth?', 'return.', 'earth!', 'earth.', 'earth,', 'illo,', 'and', 'rend', 'fall:', 'hearers?', 'eats', 'fall,', 'fall.', 'gardeners,', "sworn't.", 'come.--another', 'any', 'late:', "ungor'd.", 'late?', 'mourners', 'bed-rid,', 'mine,--', 'late,', "bak'd", 'late.', 'hands:', 'inky', 'sure', 'falls', 'bodikin,', 'strength,', 'proud', 'hear', 'quantity', 'monstrous', 'convoy', 'prisoner.', 'wager,', 'uncle:', 'dirge', 'uncle!', 'uncle,', 'shuffling;--there', 'gulf', 'clown.', 'written', 'well.--follow', 'wood', 'flood,', 'dreaded', 'up;', 'ossa', 'lighted', 'ground:', 'ears.]', 'odds.', 'horrible', 'space,', 'dye', 'hedge', 'reveal', 'so,--as', 'naked', 'clowns', 'bawds,', 'it,--let', 'hit.', 'grieve;', "prepar'd", 'potency.', "apoplex'd;", 'jot', 'sanctuarize;', 'smiling', 'suffer', 'ways', 'priest,', 'priest.', 'halfpenny.', 'whereof,', 'come', 'way;', 'way:', 'region', 'quiet', 'way.', 'weapon;', 'utterance', 'fail,', 'his:', 'his;', 'duty', 'mind,--though', 'swaggering', 'hey-day', 'deeds', 'pole', 'fools!', "griev'd,--", 'amen!', 'declining', "assur'd", 'aslant', 'blessing', "open'd,", 'buried,', 'wager?', 'pol.', 'stubbornness;', 'spirit', 'myself', 'tributary;', 'life?', 'mount', 'life;', 'life:', 'cast', 'life.', 'life,', "drown'd,", "drown'd.", "drown'd!", 'contrive', 'person,', 'good', 'minds', 'gonzago', 'person:', 'candied', 'sides.', 'mountebank,', "oppressor's", 'author', 'bowl', "shark'd", 'buys', 'miching', 'unpolluted', 'barefoot', 'tyrannous', 'hatchment', 'jawbone,', 'weed', 'driven', 'persons', 'delicate', 'weep', 'implements', 'and,--would', 'gibes', 'buy,', 'bow,', 'without', 'relief', 'illume', 'model', 'revolution,', 'bodies', 'confine:', 'attendants.]', 'actions', 'rood,', 'violent', 'kill', 'clown.]', 're-deliver.', 'tenures,', 'god-a-mercy.', 'perilous', 'blow', 'quality:', 'rose', 'seems', 'except', 'harrow', 'clay,', 'lets', 'song?', 'possible?', 'dulls', 'kingdom', 'action;', 'action.', "chameleon's", 'ros,', 'ros.', 'seem;', 'beards;', 'sanity', 'woman!', 'all.', 'woman,', 'woman.', 'snatches', 'player.]', 'respect', 'provided', 'hent:', 'o,', 'mood', "o'", 'obey,', 'moon', 'room.--', 'guiltless', 'turneth', 'unmask', 'polack', 'pastors', 'burden!', 'unseen.', 'purse', 'unseen,', "compos'd", "'the", 'on', 'of', 'bent,', "play'd", 'livery,', 'whence', 'stand', 'free,', 'or', 'flies,', 'amber', 'ladies', 'adders', 'gib,', 'cursed', 'determine', 'rise,', 'befitted', 'sight;--', 'flat,', 'denmark?--what,', 'table,--', 'there', 'strict', 'prettiness.', 'abridgment', 'disclaiming', 'troubles,', 'betoken', 'shipwright,', 'rouse', 'weeds,', "thrall'd", 'free-footed.', 'whale.', 'flats', 'grass', 'words?', 'frighted', 'russet', 'words:', 'taste', 'words.', 'words,', '[advancing.]', 'hearts,', 'quantity;', 'begins,', 'incorrect', 'lethe', "circumscrib'd", "aeneas'", 'roses', 'fie!--hold,', 'a-down,', 'heavy-headed', "courtier's,", 'dishonour', 'bounded', 'castle.', 'villanies,--', 'sword:', 'calls', 'wife', 'tanner', 'sword.', 'sword,', 'treason', 'apparel', 'weedy', 'transports', 'all', 'lack', 'son,', 'son.', 'seals', "'gainst", 'tarre', 'scullion!', 'meditation', 'mining', '[exeunt', 'wanton', "lov'd", 'cap-a-pe,', 'liar;', 'woman', 'worse', 'seal:', 'extremity.', 'far', 'fat', 'seal,', "wager'd", 'majestical', "do't;--and", 'bubbles', 'soles', 'feathers--if', 'list', 'afeard', 'fearful', 'dexterity', 'ten', 'off.]', 'toe?', 'rate', 'aptly', 'what', 'freely,', 'calmly,', 'sun', 'sum', 'crust', 'brief', 'allow.', 'womb', "o'er,", 'compass;', 'christian', 'rat?', 'behaviour', 'when,', 'directions', 'rat,', 'thrift', 'patiently.', "'twere", 'must:', 'must,', 'bodes', 'tragedians', 'permanent,', 'frowningly?', 'know;', 'know.', 'know,', 'distempered.', 'horse,', 'laertes,', 'laertes.', 'proceed', "thus:--'i", "laertes'", 'tyrannically', 'laertes!', 'laertes?', 'laertes:', 'laertes;', 'horses', 'flat', 'wretched', 'stithy.', 'knows', 'commandment:', "uncle's", 'rome,', 'unkennel', 'why--', 'laertes]', 'stick', 'draughts', "was't?", 'known', 'mellow', 'waxes', 'glad', 'calf-skins', 'forces.]', 'churchyard.', "utter'd:", 'trial', "compell'd,", 'court', 'desperation', 'rather', 'laertes.]', 'breaking', 'bawdy', 'diseased:', 'mould', 'emulate', 'fancy,', 'moult', 'infects', 'fancy;', 'fancy:', 'short', 'chiefly', 'mighty,--you', 'mobled', 'jove', 'music:', 'music!', 'music,', 'music.', 'would,', "'tis,", 'these,', 'would;', 'unite', 'pray', 'inward', 'already.', 'strange', 'bout', 'might', 'already;', 'return', 'little.', 'little,', 'hamlet?', 'list!--', 'quarrel;', 'adventurous', 'preparations,', 'hamlet;', 'ecstasy:', 'do,--that', 'priam.--', 'rashly,', 'undertake', "nature's", 'croaking', 'throw,', 'wager', 'couched', 'reverend', 'born,--it', 'health', 'hill', 'claudius,', 'consonancy', 'forgive', 'month,--', 'teach', 'come:', 'blister', 'feed', 'seeming', 'feel', 'blank', 'passes', 'story', 'thoughts.', 'carriages,', 'kin.', 'kin,', 'doomsday', 'spirits,--', 'attendants', 'defect,', 'from.', 'immediately.', 'fee;', 'king', 'kind', 'sty,--', "timber'd", 'double', 'outrageous', 'guarded,', 'harping', 'stalk', '[reads.]', 'tongues', 'search.', 'season,', 'daintier', 'imports', "scratch'd", 'gall', 'plague,', 'nights', 'recoveries,', "arriv'd,", 'moist', 'window,', 'finding', 'recoveries:', 'after.--to', 'reckon', 'tongue:', 'eruption', 'tongue!', 'nothing', 'seasons', 'tongue.', "thinks't", 'stands', 'mineral', 'night:', 'night;', 'brains', 'night!', 'first;', 'fertile:', 'night,', 'night.', 'revels,', 'journeys', 'fond', 'to-day,', 'very--pajock.', "arm'd,", 'gilded', 'camel', 'shuffling,', 'prenominate', 'profession.', 'his', 'hit', "do't:", 'petard:', "do't.", 'hic', 'hid', 'him', 'lament;', 'health,', "oppos'd", 'desert.', 'desert,', 'wrote', 'art', 'recognizances,', 'sir--', 'advances.]', 'abstinence:', 'dumb', 'are', 'unsure', 'matin', 'arm', 'strewments,', 'threats', 'blurs', 'say?', 'dost', 'villanous', 'blaze,', 'corruption', 'after,', 'after.', 'chamber.', 'chamber,', 'presently:--o,', 'bodies.--such', 'sold', 'sole', 'days.', 'opposition', 'hot.', 'competent', 'rot?', "hamlet's.]", 'poland.', 'poland,', 'main,--', 'roman', 'became', 'former,', 'finds', 'sweet', 'of!--hold', 'sweep', "unwatch'd", 'tetter', 'wisdoms,', 'there,', 'decline', 'there.', 'on!--you', 'march.', 'there!', 'surely,', 'reason;', 'whom', 'there?', 'there:', 'there;', 'somever', 'march?', "upon't!", 'death,--', 'orisons', 'goodly', 'reason.', 'demand', 'reason!', 'elsinore?', 'confess,', 'conception', 'shove', 'beauty.', 'beauty,', 'who,', 'p.', 'eyases,', 'where,', 'wrap', 'leans', 'ecstasy', 'where?', 'currents', 'away.', 'away,', 'twofold', 'dare,', 'away!', 'away?', 'men,--', 'advise', 'higher', 'be.--sleeping', 'distrust,', 'yours', 'lodge,', 'length;', 'daughter,', 'daughter.', 'length?', 'awhile;', 'god.--god', 'cheer', 'edge', 'self', 'awhile,', 'endeavour', 'unseen', 'awake,', 'prince', 'case,', 'is:--we', 'observant', 'jot;', 'shape,', 'shape;', 'shape:', 'offices.', 'question,', 'question.', "op'd", 'comedy,', 'question;', 'myself;', 'shovel,', 'tame,', 'confront', 'hecuba', 'shapes', 'distrust', 'table!', 'armed.]', 'illusion!', 'breeder', 'flowers.]', 'lenten', 'cannon,', 'by-and-by.', 'gain-giving', 'bleed.', 'wherefore?', 'inoculate', 'loud,', 'such-a-one,', "turn'd", 'cannons', 'tend,', 'tend.', 'love--', 'vulgar.', 'pro.', 'lends', 'tend:', 'tend;', 'scorns', "purg'd", 'conquest', 'exceed', 'piteous', 'individable,', 'question', 'long', 'grew', 'mountains', 'plunge', 'solidity', 'sheets!', 'unequal', 'air.--o,', 'hush', 'liberty', 'sullies', 'burial.', 'called', 'diameter,', 'bell', 'gentlemen!', 'breast:', 'polack:', 'dild', 'theft.', 'associates', 'safely,', 'forestalled', 'mirror,', "venom'd", 'journeymen', 'malicious', "consider'd", 'depart.', 'action.--soft', 'mock', 'faculties!', 'perusal', 'aright', 'rey.', 'potion.--is', 'before.', 'shrouding', 'back?', 'suffers', 'back:', 'vice', 'purposes.', 'evil,', 'purposes;', 'once', 'kettle', 'windy', 'stale,', 'winds', 'heartache,', 'note;', "assay'd:", 'obstinate', 'breach', "t'other", 'breathing', 'wind,', 'wishes', 'artery', 'harlot', 'prologue,', 'dealt', 'noted', 'concluded', 'toils', 'lightest', 'desire;', 'desire:', 'desire,', 'scholars,', 'desire.', 'ladyship', 'hourly', 'heartily;', 'sables', "man's", 'capital', 'desires', 'toil?', 'inmost', 'tragedy,', 'all,--to', '[exeunt.]', '[pointing', 'larger', 'requite', 'chaste', 'forbid', 'confession', 'offends', 'hardy', 'a-work;', "fang'd,--", 'fed', 'from', 'clutch,', 'napkin,', 'few', 'king,attended.]', 'weeping', '[points', 'sort', 'heir', 'sore', 'hard;', 'recount', '[trumpets', 'mine;', 'validity:', 'us.', 'well;--again.', 'us,', 'ice.', 'ice,', 'us?', 'us;', 'us:', 'proof', 'tax', 'once:', 'half.', 'something', 'tenants.', 'muddy-mettled', 'hillo,', 'counterfeit', 'mine.', 'galls', 'sit', 'six', 'swearing;', 'carries', "hyperion's", 'acts;', 'modesties', 'swearing,', 'sin', "wrong'd;", 'puppets', 'attend', 'hazard', 'discomfort', 'remedy.', 'attent', "puff'd,", 'beast,--', 'moving,', 'distraction.', 'lapwing', 'light', 'fortinbras', "[reads]'high", "reveng'd", 'crawling', 'long:--but', 'himself;', 'fear-surprised', 'deed!--almost', 'affection,', 'beauties', 'affection!', 'whilst', 'beguile', 'beautied', 'looks', 'quake', 'trophy,', 'suiting', 'tables.', '1', 'ease,', 'world:', 'world!', 'choose', 'court,', 'world.', 'world,', 'eastward', 'crash', 'look,', 'pulse,', 'commended', 'sirs.', 'sirs,', 'ambition', 'look?', 'affections', 'articles', 'ship;', 'profound', 'yesterday,', 'feast', 'by.', 'paddling', "distill'd", 'servant.]', 'unshaken', 'our', 'fire,--why,', 'out', 'phrase:', 'respects', 'southerly', 'phrase,', 'impart', 'disclose', 'ambassador.', 'pours', 'maintains', 'pause:', "unvalu'd", 'claudio:--he', 'thrift,', 'escoted?', 'feet.]', 'follows,', 'behaviour.', 'conversation', 'follows:', 'precepts', 'perform:', 'sickness,', 'regard,', 'hitherto', 'bonnet', 'filial', 'coagulate', 'enough;', 'fortune:', 'nomination', 'humour,', 'accent', 'galled', 'behind,', 'patient:', 'hearing,', "god's", 'shell', 'achievements,', 'shelf', 'regards', 'john-a-dreams,', 'augury:', 'goblin', 'picked', 'speak.', 'richer', 'joys,', 'ignorant,--', 'chap-fallen?', 'twelve.', 'gaged', 'twelve,', 'terms,--', 'violets', 'comes;', 'comes:', 'westward', 'comes!', 'disjoint', 'comes.', 'caviare', 'afraid', 'angle', 'concernancy,', 'admittance', 'blood.--list,', 'which', 'fie!', "tann'd", 'comest', 'who', 'offend', 'delve', 'why', "husband's", "'alone.'", 'deny', 'enemies;', 'addition;', 'pipe', 'savageness', "yeoman's", 'mistook', 'chances', 'word,', 'word.', 'one,', 'one.', 'drooping.', 'utter', 'fear', 'one;', 'pleased', 'word;', 'word:', 'true,', 'true.', 'sparrow.', 'many.', 'true;', 'unfortified,', 'please;', 'earth;--', 'mainly', 'wittingly,', 'wittingly.', 'ones', 'words', 'please.', 'horatio.--wretched', 'spur', 'to-night;', 'thousand.', 'to-night?', 'contents,', 'married', 'to-night.', 'to-night,', 'to-night!', 'mutes', 'view', "barefac'd", 'expel', 'grieve', '[aside.]', 'turbulent', 'eyes:', "suck'd", 'violet', 'ground,', 'closes', 'ground.', 'closet', 'command;', 'command:', 'captain.', 'command?', 'returns,--puzzles', 'ground?', "believ'd", 'boughs', 'command,', 'bought', 'daughters,', 'weighing', 'ability', 'joy', 'heathen?', 'will.--tell', 'swift', "stew'd", 'fortune;', 'commands', 'eyes,', 'close;', "he's", 'handsaw.', 'this?', 'retrograde', 'safely', 'close,', 'grounds', 'nerve.--', 'numbers;', 'wall', 'extolment,', 'walk', 'marching.]', 'table', '[sings.]', 'fast?', 'souls.', 'rich;', 'choice,', 'uncharge', 'olympus.', 'corse,', 'rich,', 'sworn,', 'sworn.', 'bedded', 'painted', 'present', 'withdraw,', 'corses', 'wilt', 'will', 'skyish', 'lived,', 'supply', 'goodness', "link'd,", 'thus', 'bird,', 'qualifies', 'apart,', 'perhaps', 'especially,', 'cross', 'prologue.]', 'inch', 'gets', 'these?', "garrison'd.", 'slave', 'audience.', 'audience,', 'convocation', 'functions', 'beast', 'spirit.', 'whole', 'fighting', 'be,--that', 'english', 'cried', 'heavily', "smear'd", 'crier', 'cries', 'happiness', 'wonder,', 'wonder.', 'pleasures,', 'guts', 'kneels.]', 'levies;', 'me.--stay,', 'lose.', 'other', 'adoption', 'levies,', "house's", 'enact', 'wont', "who's", 'cloak,', 'know', 'england!--', 'hollow', 'compounded', 'yesternight.', 'french,', 'helpful', "'swounds,", "'friend", 'loses', "pray'st", 'past;', 'because', "damn'd", 'offer,', 'past,', 'past.', 'empire', 'employment', 'lead', 'unsifted', 'lean', 'mines', "ha't:", 'camel?', 'murderer', 'obey', 'fordo', 'platform.', 'platform,', 'agreeing;', 'throne', 'herself:', 'unprevailing', 'carried', 'himself,', 'sides.--how', 'himself.', 'annexment,', 'mine,', 'swear', 'sweat', 'yours:', 'emperor', 'mine!', 'owl', 'own', 'soaks', 'combated;', 'mad!', 'mad.', 'mad,', 'captains', 'eclipse:', 'mad?', 'breeding', 'mad:', 'warrant:', 'me,--with', "i've", 'volume', "perform'd", 'assail', "cozenage--is't", 'this!', 'made', 'what,', 'whether', 'this,', 'this.', 'captain,', 'below', "oppress'd", 'infants', 'this;', 'this:', 'paddock,', 'kind:', 'dearth', 'kind!', "unschool'd;", 'tenders,', 'fire', 'roars', 'book', 'sick', 'rank,', 'rare,', "unmaster'd", 'unnatural.', 'that:--you', 'unnatural;', 'quietus', "enlarg'd", 'recorders.]', 'earthly', 'squeak', 'rhapsody', 'animals!', 'cliff', 'envenom', 'shall,', 'christian.--come,', 'affront', 'shall;', 'roar?'])
In [21]:
tokendict={}
for ut in uniquelctokens:
tokendict[ut]=hamletlctokens.count(ut)
We find the 100 most used words...
In [25]:
L=sorted(tokendict, key= lambda (k,v):v, reverse=True)[:100]
L
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-25-cd064b88a5c1> in <module>()
----> 1 L=sorted(tokendict, key= lambda (k,v):v, reverse=True)[:100]
2 L
<ipython-input-25-cd064b88a5c1> in <lambda>(***failed resolving arguments***)
----> 1 L=sorted(tokendict, key= lambda (k,v):v, reverse=True)[:100]
2 L
ValueError: too many values to unpack
Lets get the top 20 of this and plot a bar chart!
In [43]:
topfreq=L[:20]
print topfreq
pos = np.arange(len(topfreq))
plt.bar(pos, [e[1] for e in topfreq]);
plt.xticks(pos+0.4, [e[0] for e in topfreq]);
[('the', 1136), ('and', 943), ('to', 720), ('of', 667), ('a', 527), ('my', 512), ('i', 510), ('in', 420), ('you', 412), ('ham.', 358), ('that', 337), ('it', 324), ('is', 320), ('his', 295), ('not', 270), ('with', 264), ('this', 250), ('your', 241), ('for', 231), ('but', 228)]
Content source: stevenydc/2015lab1
Similar notebooks: