---------------- The top 10 most frequent words and their relative frequencies are: , 0.122302158273 the 0.10071942446 of 0.0863309352518 was 0.0791366906475 it 0.0719424460432 we 0.0287769784173 all 0.0143884892086 in 0.0143884892086 its 0.0143884892086 before 0.0143884892086 ---------------- >>> taletoks Traceback (most recent call last): File "", line 1, in taletoks NameError: name 'taletoks' is not defined >>> taletypes Traceback (most recent call last): File "", line 1, in taletypes NameError: name 'taletypes' is not defined >>> tale 'It was the best of times, it was the worst of times,\nit was the age of wisdom, it was the age of foolishness,\nit was the epoch of belief, it was the epoch of incredulity,\nit was the season of Light, it was the season of Darkness,\nit was the spring of hope, it was the winter of despair,\nwe had everything before us, we had nothing before us,\nwe were all going direct to heaven, we were all going direct\nthe other way -- in short, the period was so far like the present\nperiod, that some of its noisiest authorities insisted on its\nbeing received, for good or for evil, in the superlative degree\nof comparison only.\n...' >>> taletoks = getToks(tale) >>> taletoks ['it', 'was', 'the', 'best', 'of', 'times', ',', 'it', 'was', 'the', 'worst', 'of', 'times', ',', 'it', 'was', 'the', 'age', 'of', 'wisdom', ',', 'it', 'was', 'the', 'age', 'of', 'foolishness', ',', 'it', 'was', 'the', 'epoch', 'of', 'belief', ',', 'it', 'was', 'the', 'epoch', 'of', 'incredulity', ',', 'it', 'was', 'the', 'season', 'of', 'light', ',', 'it', 'was', 'the', 'season', 'of', 'darkness', ',', 'it', 'was', 'the', 'spring', 'of', 'hope', ',', 'it', 'was', 'the', 'winter', 'of', 'despair', ',', 'we', 'had', 'everything', 'before', 'us', ',', 'we', 'had', 'nothing', 'before', 'us', ',', 'we', 'were', 'all', 'going', 'direct', 'to', 'heaven', ',', 'we', 'were', 'all', 'going', 'direct', 'the', 'other', 'way', '--', 'in', 'short', ',', 'the', 'period', 'was', 'so', 'far', 'like', 'the', 'present', 'period', ',', 'that', 'some', 'of', 'its', 'noisiest', 'authorities', 'insisted', 'on', 'its', 'being', 'received', ',', 'for', 'good', 'or', 'for', 'evil', ',', 'in', 'the', 'superlative', 'degree', 'of', 'comparison', 'only', '.', '...'] >>>