diff --git a/your-code/main.ipynb b/your-code/main.ipynb index a2958dd..37b5605 100644 --- a/your-code/main.ipynb +++ b/your-code/main.ipynb @@ -12,11 +12,14 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 1, "metadata": {}, "outputs": [], "source": [ - "# Import reduce from functools, numpy and pandas" + "# Import reduce from functools, numpy and pandas\n", + "import functools\n", + "import numpy\n", + "import pandas\n" ] }, { @@ -32,15 +35,1027 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 2, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "['\\ufeffThe',\n", + " 'Project',\n", + " 'Gutenberg',\n", + " 'EBook',\n", + " 'of',\n", + " 'The',\n", + " 'Prophet,',\n", + " 'by',\n", + " 'Kahlil',\n", + " 'Gibran\\n\\nThis',\n", + " 'eBook',\n", + " 'is',\n", + " 'for',\n", + " 'the',\n", + " 'use',\n", + " 'of',\n", + " 'anyone',\n", + " 'anywhere',\n", + " 'in',\n", + " 'the',\n", + " 'United',\n", + " 'States',\n", + " 'and\\nmost',\n", + " 'other',\n", + " 'parts',\n", + " 'of',\n", + " 'the',\n", + " 'world',\n", + " 'at',\n", + " 'no',\n", + " 'cost',\n", + " 'and',\n", + " 'with',\n", + " 'almost',\n", + " 'no',\n", + " 'restrictions\\nwhatsoever.',\n", + " '',\n", + " 'You',\n", + " 'may',\n", + " 'copy',\n", + " 'it,',\n", + " 'give',\n", + " 'it',\n", + " 'away',\n", + " 'or',\n", + " 're-use',\n", + " 'it',\n", + " 'under',\n", + " 'the',\n", + " 'terms\\nof',\n", + " 'the',\n", + " 'Project',\n", + " 'Gutenberg',\n", + " 'License',\n", + " 'included',\n", + " 'with',\n", + " 'this',\n", + " 'eBook',\n", + " 'or',\n", + " 'online',\n", + " 'at\\nwww.gutenberg.org.',\n", + " '',\n", + " 'If',\n", + " 'you',\n", + " 'are',\n", + " 'not',\n", + " 'located',\n", + " 'in',\n", + " 'the',\n", + " 'United',\n", + " 'States,',\n", + " \"you'll\\nhave\",\n", + " 'to',\n", + " 'check',\n", + " 'the',\n", + " 'laws',\n", + " 'of',\n", + " 'the',\n", + " 'country',\n", + " 'where',\n", + " 'you',\n", + " 'are',\n", + " 'located',\n", + " 'before',\n", + " 'using\\nthis',\n", + " 'ebook.\\n\\n\\n\\nTitle:',\n", + " 'The',\n", + " 'Prophet\\n\\nAuthor:',\n", + " 'Kahlil',\n", + " 'Gibran\\n\\nRelease',\n", + " 'Date:',\n", + " 'January',\n", + " '1,',\n", + " '2019',\n", + " '[EBook',\n", + " '#58585]\\nLast',\n", + " 'Updated:',\n", + " 'January',\n", + " '3,',\n", + " '2018\\n\\n\\nLanguage:',\n", + " 'English\\n\\nCharacter',\n", + " 'set',\n", + " 'encoding:',\n", + " 'UTF-8\\n\\n***',\n", + " 'START',\n", + " 'OF',\n", + " 'THIS',\n", + " 'PROJECT',\n", + " 'GUTENBERG',\n", + " 'EBOOK',\n", + " 'THE',\n", + " 'PROPHET',\n", + " '***\\n\\n\\n\\n\\nProduced',\n", + " 'by',\n", + " 'David',\n", + " 'Widger',\n", + " 'from',\n", + " 'page',\n", + " 'images',\n", + " 'generously\\nprovided',\n", + " 'by',\n", + " 'the',\n", + " 'Internet',\n", + " \"Archive\\n\\n\\nTranscriber's\",\n", + " 'Note:',\n", + " 'Page',\n", + " 'numbers,',\n", + " 'ie:',\n", + " '{20},',\n", + " 'are',\n", + " 'included',\n", + " 'in',\n", + " 'this\\nutf-8',\n", + " 'text',\n", + " 'file.',\n", + " 'For',\n", + " 'those',\n", + " 'wishing',\n", + " 'to',\n", + " 'use',\n", + " 'a',\n", + " 'text',\n", + " 'file',\n", + " 'unencumbered\\nwith',\n", + " 'page',\n", + " 'numbers',\n", + " 'open',\n", + " 'or',\n", + " 'download',\n", + " 'the',\n", + " 'Latin-1',\n", + " 'file',\n", + " '58585-8.txt.\\n\\n\\n\\n\\n\\n\\n\\nTHE',\n", + " 'PROPHET\\n\\nBy',\n", + " 'Kahlil',\n", + " 'Gibran\\n\\nNew',\n", + " 'York:',\n", + " 'Alfred',\n", + " 'A.',\n", + " 'Knopf\\n\\n1923\\n\\n_The',\n", + " 'Twelve',\n", + " 'Illustrations',\n", + " 'In',\n", + " 'This',\n", + " 'Volume\\nAre',\n", + " 'Reproduced',\n", + " 'From',\n", + " 'Original',\n", + " 'Drawings',\n", + " 'By\\nThe',\n", + " 'Author_\\n\\n\\n“His',\n", + " 'power',\n", + " 'came',\n", + " 'from',\n", + " 'some',\n", + " 'great',\n", + " 'reservoir\\nof',\n", + " 'spiritual',\n", + " 'life',\n", + " 'else',\n", + " 'it',\n", + " 'could',\n", + " 'not',\n", + " 'have\\nbeen',\n", + " 'so',\n", + " 'universal',\n", + " 'and',\n", + " 'so',\n", + " 'potent,',\n", + " 'but',\n", + " 'the\\nmajesty',\n", + " 'and',\n", + " 'beauty',\n", + " 'of',\n", + " 'the',\n", + " 'language',\n", + " 'with\\nwhich',\n", + " 'he',\n", + " 'clothed',\n", + " 'it',\n", + " 'were',\n", + " 'all',\n", + " 'his',\n", + " 'own?”\\n\\n--Claude',\n", + " 'Bragdon\\n\\n\\nTHE',\n", + " 'BOOKS',\n", + " 'OF',\n", + " 'KAHLIL',\n", + " 'GIBRAN\\n\\nThe',\n", + " 'Madman.',\n", + " '1918',\n", + " 'Twenty',\n", + " 'Drawings.',\n", + " '1919\\nThe',\n", + " 'Forerunner.',\n", + " '1920',\n", + " 'The',\n", + " 'Prophet.',\n", + " '1923\\nSand',\n", + " 'and',\n", + " 'Foam.',\n", + " '1926',\n", + " 'Jesus',\n", + " 'the',\n", + " 'Son',\n", + " 'of\\nMan.',\n", + " '1928',\n", + " 'The',\n", + " 'Forth',\n", + " 'Gods.',\n", + " '1931',\n", + " 'The\\nWanderer.',\n", + " '1932',\n", + " 'The',\n", + " 'Garden',\n", + " 'of',\n", + " 'the',\n", + " 'Prophet\\n1933',\n", + " 'Prose',\n", + " 'Poems.',\n", + " '1934',\n", + " 'Nymphs',\n", + " 'of',\n", + " 'the\\nValley.',\n", + " '1948\\n\\n\\n\\n\\nCONTENTS\\n\\n',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " 'The',\n", + " 'Coming',\n", + " 'of',\n", + " 'the',\n", + " 'Ship.......7\\n',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " 'On',\n", + " 'Love.....................15\\n',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " 'On',\n", + " 'Marriage.................19\\n',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " 'On',\n", + " 'Children.................21\\n',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " 'On',\n", + " 'Giving...................23\\n',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " 'On',\n", + " 'Eating',\n", + " 'and',\n", + " 'Drinking......27\\n',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " 'On',\n", + " 'Work.....................31\\n',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " 'On',\n", + " 'Joy',\n", + " 'and',\n", + " 'Sorrow...........33\\n',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " 'On',\n", + " 'Houses...................37\\n',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " 'On',\n", + " 'Clothes..................41\\n',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " 'On',\n", + " 'Buying',\n", + " 'and',\n", + " 'Selling.......43\\n',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " 'On',\n", + " 'Crime',\n", + " 'and',\n", + " 'Punishment.....45\\n',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " 'On',\n", + " 'Laws.....................51\\n',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " 'On',\n", + " 'Freedom..................55\\n',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " 'On',\n", + " 'Reason',\n", + " 'and',\n", + " 'Passion.......57\\n',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " 'On',\n", + " 'Pain.....................60\\n',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " 'On',\n", + " 'Self-Knowledge...........62\\n',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " 'On',\n", + " 'Teaching.................64\\n',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " 'On',\n", + " 'Friendship...............66\\n',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " 'On',\n", + " 'Talking..................68\\n',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " 'On',\n", + " 'Time.....................70\\n',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " 'On',\n", + " 'Good',\n", + " 'and',\n", + " 'Evil............72\\n',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " 'On',\n", + " 'Prayer...................76\\n',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " 'On',\n", + " 'Pleasure.................79\\n',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " 'On',\n", + " 'Beauty...................83\\n',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " 'On',\n", + " 'Religion.................87\\n',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " 'On',\n", + " 'Death....................90\\n',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " '',\n", + " 'The',\n", + " 'Farewell................92\\n\\n\\n\\n\\nTHE',\n", + " 'PROPHET\\n\\n|Almustafa,',\n", + " 'the{7}',\n", + " 'chosen',\n", + " 'and',\n", + " 'the\\nbeloved,',\n", + " 'who',\n", + " 'was',\n", + " 'a',\n", + " 'dawn',\n", + " 'unto',\n", + " 'his',\n", + " 'own\\nday,',\n", + " 'had',\n", + " 'waited',\n", + " 'twelve',\n", + " 'years',\n", + " 'in',\n", + " 'the',\n", + " 'city\\nof',\n", + " 'Orphalese',\n", + " 'for',\n", + " 'his',\n", + " 'ship',\n", + " 'that',\n", + " 'was',\n", + " 'to\\nreturn',\n", + " 'and',\n", + " 'bear',\n", + " 'him',\n", + " 'back',\n", + " 'to',\n", + " 'the',\n", + " 'isle',\n", + " 'of\\nhis',\n", + " 'birth.\\n\\nAnd',\n", + " 'in',\n", + " 'the',\n", + " 'twelfth',\n", + " 'year,',\n", + " 'on',\n", + " 'the',\n", + " 'seventh\\nday',\n", + " 'of',\n", + " 'Ielool,',\n", + " 'the',\n", + " 'month',\n", + " 'of',\n", + " 'reaping,',\n", + " 'he\\nclimbed',\n", + " 'the',\n", + " 'hill',\n", + " 'without',\n", + " 'the',\n", + " 'city',\n", + " 'walls\\nand',\n", + " 'looked',\n", + " 'seaward;',\n", + " 'and',\n", + " 'he',\n", + " 'beheld',\n", + " 'his\\nship',\n", + " 'coming',\n", + " 'with',\n", + " 'the',\n", + " 'mist.\\n\\nThen',\n", + " 'the',\n", + " 'gates',\n", + " 'of',\n", + " 'his',\n", + " 'heart',\n", + " 'were',\n", + " 'flung\\nopen,',\n", + " 'and',\n", + " 'his',\n", + " 'joy',\n", + " 'flew',\n", + " 'far',\n", + " 'over',\n", + " 'the',\n", + " 'sea.\\nAnd',\n", + " 'he',\n", + " 'closed',\n", + " 'his',\n", + " 'eyes',\n", + " 'and',\n", + " 'prayed',\n", + " 'in',\n", + " 'the\\nsilences',\n", + " 'of',\n", + " 'his',\n", + " 'soul.\\n\\n*****\\n\\nBut',\n", + " 'as',\n", + " 'he',\n", + " 'descended',\n", + " 'the',\n", + " 'hill,',\n", + " 'a',\n", + " 'sadness\\ncame',\n", + " 'upon',\n", + " 'him,',\n", + " 'and',\n", + " 'he',\n", + " 'thought',\n", + " 'in',\n", + " 'his\\nheart:\\n\\nHow',\n", + " 'shall',\n", + " 'I',\n", + " 'go',\n", + " 'in',\n", + " 'peace',\n", + " 'and',\n", + " 'without\\nsorrow?',\n", + " 'Nay,',\n", + " 'not',\n", + " 'without',\n", + " 'a',\n", + " 'wound',\n", + " 'in',\n", + " 'the\\nspirit',\n", + " 'shall',\n", + " 'I',\n", + " 'leave',\n", + " 'this',\n", + " 'city.',\n", + " '{8}Long\\nwere',\n", + " 'the',\n", + " 'days',\n", + " 'of',\n", + " 'pain',\n", + " 'I',\n", + " 'have',\n", + " 'spent\\nwithin',\n", + " 'its',\n", + " 'walls,',\n", + " 'and',\n", + " 'long',\n", + " 'were',\n", + " 'the\\nnights',\n", + " 'of',\n", + " 'aloneness;',\n", + " 'and',\n", + " 'who',\n", + " 'can',\n", + " 'depart\\nfrom',\n", + " 'his',\n", + " 'pain',\n", + " 'and',\n", + " 'his',\n", + " 'aloneness',\n", + " 'without\\nregret?\\n\\nToo',\n", + " 'many',\n", + " 'fragments',\n", + " 'of',\n", + " 'the',\n", + " 'spirit',\n", + " 'have',\n", + " 'I\\nscattered',\n", + " 'in',\n", + " 'these',\n", + " 'streets,',\n", + " 'and',\n", + " 'too',\n", + " 'many\\nare',\n", + " 'the',\n", + " 'children',\n", + " 'of',\n", + " 'my',\n", + " 'longing',\n", + " 'that',\n", + " 'walk\\nnaked',\n", + " 'among',\n", + " 'these',\n", + " 'hills,',\n", + " 'and',\n", + " 'I',\n", + " 'cannot\\nwithdraw',\n", + " 'from',\n", + " 'them',\n", + " 'without',\n", + " 'a',\n", + " 'burden',\n", + " 'and\\nan',\n", + " 'ache.\\n\\nIt',\n", + " 'is',\n", + " 'not',\n", + " 'a',\n", + " 'garment',\n", + " 'I',\n", + " 'cast',\n", + " 'off',\n", + " 'this\\nday,',\n", + " 'but',\n", + " 'a',\n", + " 'skin',\n", + " 'that',\n", + " 'I',\n", + " 'tear',\n", + " 'with',\n", + " 'my',\n", + " 'own\\nhands.\\n\\nNor',\n", + " 'is',\n", + " 'it',\n", + " 'a',\n", + " 'thought',\n", + " 'I',\n", + " 'leave',\n", + " 'behind',\n", + " 'me,\\nbut',\n", + " 'a',\n", + " 'heart',\n", + " 'made',\n", + " 'sweet',\n", + " 'with',\n", + " 'hunger',\n", + " 'and\\nwith',\n", + " 'thirst.\\n\\n*****\\n\\nYet',\n", + " 'I',\n", + " 'cannot',\n", + " 'tarry',\n", + " 'longer.\\n\\nThe',\n", + " 'sea',\n", + " 'that',\n", + " 'calls',\n", + " 'all',\n", + " 'things',\n", + " 'unto',\n", + " 'her\\ncalls',\n", + " 'me,',\n", + " 'and',\n", + " 'I',\n", + " 'must',\n", + " 'embark.\\n\\nFor',\n", + " 'to',\n", + " 'stay,',\n", + " 'though',\n", + " 'the',\n", + " 'hours',\n", + " 'burn',\n", + " 'in\\nthe',\n", + " 'night,',\n", + " 'is',\n", + " 'to',\n", + " 'freeze',\n", + " 'and',\n", + " 'crystallize\\nand',\n", + " 'be',\n", + " 'bound',\n", + " 'in',\n", + " 'a',\n", + " 'mould.\\n\\nFain',\n", + " 'would',\n", + " 'I',\n", + " 'take',\n", + " 'with',\n", + " 'me',\n", + " 'all',\n", + " 'that',\n", + " 'is\\nhere.',\n", + " 'But',\n", + " 'how',\n", + " 'shall',\n", + " 'I?\\n\\nA',\n", + " 'voice',\n", + " 'cannot',\n", + " 'carry',\n", + " 'the',\n", + " 'tongue',\n", + " 'and\\n{9}the',\n", + " 'lips',\n", + " 'that',\n", + " 'gave',\n", + " 'it',\n", + " 'wings.',\n", + " 'Alone\\nmust',\n", + " 'it',\n", + " 'seek',\n", + " 'the',\n", + " 'ether.\\n\\nAnd',\n", + " 'alone',\n", + " 'and',\n", + " 'without',\n", + " 'his',\n", + " 'nest',\n", + " 'shall',\n", + " 'the\\neagle',\n", + " 'fly',\n", + " 'across',\n", + " 'the',\n", + " 'sun.\\n\\n*****\\n\\nNow',\n", + " 'when',\n", + " 'he',\n", + " 'reached',\n", + " 'the',\n", + " 'foot',\n", + " 'of',\n", + " 'the\\nhill,',\n", + " 'he',\n", + " 'turned',\n", + " 'again',\n", + " 'towards',\n", + " 'the',\n", + " 'sea,\\nand',\n", + " 'he',\n", + " 'saw',\n", + " 'his',\n", + " 'ship',\n", + " 'approaching',\n", + " 'the\\nharbour,',\n", + " 'and',\n", + " 'upon',\n", + " 'her',\n", + " 'prow',\n", + " 'the',\n", + " 'mariners,\\nthe',\n", + " 'men',\n", + " 'of',\n", + " 'his',\n", + " 'own',\n", + " 'land.\\n\\nAnd',\n", + " 'his',\n", + " 'soul',\n", + " 'cried',\n", + " 'out',\n", + " 'to',\n", + " 'them,',\n", + " 'and',\n", + " 'he\\nsaid:\\n\\nSons',\n", + " 'of',\n", + " 'my',\n", + " 'ancient',\n", + " 'mother,',\n", + " 'you',\n", + " 'riders',\n", + " 'of\\nthe',\n", + " 'tides,\\n\\nHow',\n", + " 'often',\n", + " 'have',\n", + " 'you',\n", + " 'sailed',\n", + " 'in',\n", + " 'my',\n", + " 'dreams.\\nAnd',\n", + " 'now',\n", + " 'you',\n", + " 'come',\n", + " 'in',\n", + " 'my',\n", + " 'awakening,',\n", + " 'which\\nis',\n", + " 'my',\n", + " 'deeper',\n", + " 'dream.\\n\\nReady',\n", + " 'am',\n", + " 'I',\n", + " 'to',\n", + " 'go,',\n", + " 'and',\n", + " 'my',\n", + " 'eagerness',\n", + " 'with\\nsails',\n", + " 'full',\n", + " 'set',\n", + " 'awaits',\n", + " 'the',\n", + " 'wind.\\n\\nOnly',\n", + " 'another',\n", + " 'breath',\n", + " 'will',\n", + " 'I',\n", + " 'breathe',\n", + " 'in\\nthis',\n", + " 'still',\n", + " 'air,',\n", + " 'only',\n", + " 'another',\n", + " 'loving',\n", + " 'look\\ncast',\n", + " 'backward,\\n\\nAnd',\n", + " 'then',\n", + " 'I',\n", + " 'shall',\n", + " 'stand',\n", + " 'among',\n", + " 'you,',\n", + " 'a\\nseafarer',\n", + " 'among',\n", + " 'seafarers.',\n", + " '{10}And',\n", + " 'you,\\nvast',\n", + " 'sea,',\n", + " 'sleepless',\n", + " 'mother,\\n\\nWho',\n", + " 'alone',\n", + " 'are',\n", + " 'peace',\n", + " 'and',\n", + " 'freedom',\n", + " 'to',\n", + " 'the\\nriver',\n", + " 'and',\n", + " 'the',\n", + " 'stream,\\n\\nOnly',\n", + " 'another',\n", + " 'winding',\n", + " 'will',\n", + " 'this',\n", + " 'stream\\nmake,',\n", + " 'only',\n", + " 'another',\n", + " 'murmur',\n", + " 'in',\n", + " 'this',\n", + " 'glade,\\n\\nAnd',\n", + " 'then',\n", + " 'shall',\n", + " 'I',\n", + " 'come',\n", + " 'to',\n", + " 'you,',\n", + " 'a\\nboundless',\n", + " 'drop',\n", + " 'to',\n", + " 'a',\n", + " 'boundless',\n", + " 'ocean.\\n\\n*****\\n\\nAnd',\n", + " 'as',\n", + " 'he',\n", + " 'walked',\n", + " 'he',\n", + " 'saw',\n", + " 'from',\n", + " 'afar',\n", + " ...]" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "# Run this code:\n", "\n", "location = '../data/58585-0.txt'\n", "with open(location, 'r', encoding=\"utf8\") as f:\n", - " prophet = f.read().split(' ')" + " prophet = f.read().split(' ')\n", + "prophet" ] }, { @@ -54,11 +1069,1023 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 32, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "['PROPHET\\n\\n|Almustafa,',\n", + " 'the{7}',\n", + " 'chosen',\n", + " 'and',\n", + " 'the\\nbeloved,',\n", + " 'who',\n", + " 'was',\n", + " 'a',\n", + " 'dawn',\n", + " 'unto',\n", + " 'his',\n", + " 'own\\nday,',\n", + " 'had',\n", + " 'waited',\n", + " 'twelve',\n", + " 'years',\n", + " 'in',\n", + " 'the',\n", + " 'city\\nof',\n", + " 'Orphalese',\n", + " 'for',\n", + " 'his',\n", + " 'ship',\n", + " 'that',\n", + " 'was',\n", + " 'to\\nreturn',\n", + " 'and',\n", + " 'bear',\n", + " 'him',\n", + " 'back',\n", + " 'to',\n", + " 'the',\n", + " 'isle',\n", + " 'of\\nhis',\n", + " 'birth.\\n\\nAnd',\n", + " 'in',\n", + " 'the',\n", + " 'twelfth',\n", + " 'year,',\n", + " 'on',\n", + " 'the',\n", + " 'seventh\\nday',\n", + " 'of',\n", + " 'Ielool,',\n", + " 'the',\n", + " 'month',\n", + " 'of',\n", + " 'reaping,',\n", + " 'he\\nclimbed',\n", + " 'the',\n", + " 'hill',\n", + " 'without',\n", + " 'the',\n", + " 'city',\n", + " 'walls\\nand',\n", + " 'looked',\n", + " 'seaward;',\n", + " 'and',\n", + " 'he',\n", + " 'beheld',\n", + " 'his\\nship',\n", + " 'coming',\n", + " 'with',\n", + " 'the',\n", + " 'mist.\\n\\nThen',\n", + " 'the',\n", + " 'gates',\n", + " 'of',\n", + " 'his',\n", + " 'heart',\n", + " 'were',\n", + " 'flung\\nopen,',\n", + " 'and',\n", + " 'his',\n", + " 'joy',\n", + " 'flew',\n", + " 'far',\n", + " 'over',\n", + " 'the',\n", + " 'sea.\\nAnd',\n", + " 'he',\n", + " 'closed',\n", + " 'his',\n", + " 'eyes',\n", + " 'and',\n", + " 'prayed',\n", + " 'in',\n", + " 'the\\nsilences',\n", + " 'of',\n", + " 'his',\n", + " 'soul.\\n\\n*****\\n\\nBut',\n", + " 'as',\n", + " 'he',\n", + " 'descended',\n", + " 'the',\n", + " 'hill,',\n", + " 'a',\n", + " 'sadness\\ncame',\n", + " 'upon',\n", + " 'him,',\n", + " 'and',\n", + " 'he',\n", + " 'thought',\n", + " 'in',\n", + " 'his\\nheart:\\n\\nHow',\n", + " 'shall',\n", + " 'I',\n", + " 'go',\n", + " 'in',\n", + " 'peace',\n", + " 'and',\n", + " 'without\\nsorrow?',\n", + " 'Nay,',\n", + " 'not',\n", + " 'without',\n", + " 'a',\n", + " 'wound',\n", + " 'in',\n", + " 'the\\nspirit',\n", + " 'shall',\n", + " 'I',\n", + " 'leave',\n", + " 'this',\n", + " 'city.',\n", + " '{8}Long\\nwere',\n", + " 'the',\n", + " 'days',\n", + " 'of',\n", + " 'pain',\n", + " 'I',\n", + " 'have',\n", + " 'spent\\nwithin',\n", + " 'its',\n", + " 'walls,',\n", + " 'and',\n", + " 'long',\n", + " 'were',\n", + " 'the\\nnights',\n", + " 'of',\n", + " 'aloneness;',\n", + " 'and',\n", + " 'who',\n", + " 'can',\n", + " 'depart\\nfrom',\n", + " 'his',\n", + " 'pain',\n", + " 'and',\n", + " 'his',\n", + " 'aloneness',\n", + " 'without\\nregret?\\n\\nToo',\n", + " 'many',\n", + " 'fragments',\n", + " 'of',\n", + " 'the',\n", + " 'spirit',\n", + " 'have',\n", + " 'I\\nscattered',\n", + " 'in',\n", + " 'these',\n", + " 'streets,',\n", + " 'and',\n", + " 'too',\n", + " 'many\\nare',\n", + " 'the',\n", + " 'children',\n", + " 'of',\n", + " 'my',\n", + " 'longing',\n", + " 'that',\n", + " 'walk\\nnaked',\n", + " 'among',\n", + " 'these',\n", + " 'hills,',\n", + " 'and',\n", + " 'I',\n", + " 'cannot\\nwithdraw',\n", + " 'from',\n", + " 'them',\n", + " 'without',\n", + " 'a',\n", + " 'burden',\n", + " 'and\\nan',\n", + " 'ache.\\n\\nIt',\n", + " 'is',\n", + " 'not',\n", + " 'a',\n", + " 'garment',\n", + " 'I',\n", + " 'cast',\n", + " 'off',\n", + " 'this\\nday,',\n", + " 'but',\n", + " 'a',\n", + " 'skin',\n", + " 'that',\n", + " 'I',\n", + " 'tear',\n", + " 'with',\n", + " 'my',\n", + " 'own\\nhands.\\n\\nNor',\n", + " 'is',\n", + " 'it',\n", + " 'a',\n", + " 'thought',\n", + " 'I',\n", + " 'leave',\n", + " 'behind',\n", + " 'me,\\nbut',\n", + " 'a',\n", + " 'heart',\n", + " 'made',\n", + " 'sweet',\n", + " 'with',\n", + " 'hunger',\n", + " 'and\\nwith',\n", + " 'thirst.\\n\\n*****\\n\\nYet',\n", + " 'I',\n", + " 'cannot',\n", + " 'tarry',\n", + " 'longer.\\n\\nThe',\n", + " 'sea',\n", + " 'that',\n", + " 'calls',\n", + " 'all',\n", + " 'things',\n", + " 'unto',\n", + " 'her\\ncalls',\n", + " 'me,',\n", + " 'and',\n", + " 'I',\n", + " 'must',\n", + " 'embark.\\n\\nFor',\n", + " 'to',\n", + " 'stay,',\n", + " 'though',\n", + " 'the',\n", + " 'hours',\n", + " 'burn',\n", + " 'in\\nthe',\n", + " 'night,',\n", + " 'is',\n", + " 'to',\n", + " 'freeze',\n", + " 'and',\n", + " 'crystallize\\nand',\n", + " 'be',\n", + " 'bound',\n", + " 'in',\n", + " 'a',\n", + " 'mould.\\n\\nFain',\n", + " 'would',\n", + " 'I',\n", + " 'take',\n", + " 'with',\n", + " 'me',\n", + " 'all',\n", + " 'that',\n", + " 'is\\nhere.',\n", + " 'But',\n", + " 'how',\n", + " 'shall',\n", + " 'I?\\n\\nA',\n", + " 'voice',\n", + " 'cannot',\n", + " 'carry',\n", + " 'the',\n", + " 'tongue',\n", + " 'and\\n{9}the',\n", + " 'lips',\n", + " 'that',\n", + " 'gave',\n", + " 'it',\n", + " 'wings.',\n", + " 'Alone\\nmust',\n", + " 'it',\n", + " 'seek',\n", + " 'the',\n", + " 'ether.\\n\\nAnd',\n", + " 'alone',\n", + " 'and',\n", + " 'without',\n", + " 'his',\n", + " 'nest',\n", + " 'shall',\n", + " 'the\\neagle',\n", + " 'fly',\n", + " 'across',\n", + " 'the',\n", + " 'sun.\\n\\n*****\\n\\nNow',\n", + " 'when',\n", + " 'he',\n", + " 'reached',\n", + " 'the',\n", + " 'foot',\n", + " 'of',\n", + " 'the\\nhill,',\n", + " 'he',\n", + " 'turned',\n", + " 'again',\n", + " 'towards',\n", + " 'the',\n", + " 'sea,\\nand',\n", + " 'he',\n", + " 'saw',\n", + " 'his',\n", + " 'ship',\n", + " 'approaching',\n", + " 'the\\nharbour,',\n", + " 'and',\n", + " 'upon',\n", + " 'her',\n", + " 'prow',\n", + " 'the',\n", + " 'mariners,\\nthe',\n", + " 'men',\n", + " 'of',\n", + " 'his',\n", + " 'own',\n", + " 'land.\\n\\nAnd',\n", + " 'his',\n", + " 'soul',\n", + " 'cried',\n", + " 'out',\n", + " 'to',\n", + " 'them,',\n", + " 'and',\n", + " 'he\\nsaid:\\n\\nSons',\n", + " 'of',\n", + " 'my',\n", + " 'ancient',\n", + " 'mother,',\n", + " 'you',\n", + " 'riders',\n", + " 'of\\nthe',\n", + " 'tides,\\n\\nHow',\n", + " 'often',\n", + " 'have',\n", + " 'you',\n", + " 'sailed',\n", + " 'in',\n", + " 'my',\n", + " 'dreams.\\nAnd',\n", + " 'now',\n", + " 'you',\n", + " 'come',\n", + " 'in',\n", + " 'my',\n", + " 'awakening,',\n", + " 'which\\nis',\n", + " 'my',\n", + " 'deeper',\n", + " 'dream.\\n\\nReady',\n", + " 'am',\n", + " 'I',\n", + " 'to',\n", + " 'go,',\n", + " 'and',\n", + " 'my',\n", + " 'eagerness',\n", + " 'with\\nsails',\n", + " 'full',\n", + " 'set',\n", + " 'awaits',\n", + " 'the',\n", + " 'wind.\\n\\nOnly',\n", + " 'another',\n", + " 'breath',\n", + " 'will',\n", + " 'I',\n", + " 'breathe',\n", + " 'in\\nthis',\n", + " 'still',\n", + " 'air,',\n", + " 'only',\n", + " 'another',\n", + " 'loving',\n", + " 'look\\ncast',\n", + " 'backward,\\n\\nAnd',\n", + " 'then',\n", + " 'I',\n", + " 'shall',\n", + " 'stand',\n", + " 'among',\n", + " 'you,',\n", + " 'a\\nseafarer',\n", + " 'among',\n", + " 'seafarers.',\n", + " '{10}And',\n", + " 'you,\\nvast',\n", + " 'sea,',\n", + " 'sleepless',\n", + " 'mother,\\n\\nWho',\n", + " 'alone',\n", + " 'are',\n", + " 'peace',\n", + " 'and',\n", + " 'freedom',\n", + " 'to',\n", + " 'the\\nriver',\n", + " 'and',\n", + " 'the',\n", + " 'stream,\\n\\nOnly',\n", + " 'another',\n", + " 'winding',\n", + " 'will',\n", + " 'this',\n", + " 'stream\\nmake,',\n", + " 'only',\n", + " 'another',\n", + " 'murmur',\n", + " 'in',\n", + " 'this',\n", + " 'glade,\\n\\nAnd',\n", + " 'then',\n", + " 'shall',\n", + " 'I',\n", + " 'come',\n", + " 'to',\n", + " 'you,',\n", + " 'a\\nboundless',\n", + " 'drop',\n", + " 'to',\n", + " 'a',\n", + " 'boundless',\n", + " 'ocean.\\n\\n*****\\n\\nAnd',\n", + " 'as',\n", + " 'he',\n", + " 'walked',\n", + " 'he',\n", + " 'saw',\n", + " 'from',\n", + " 'afar',\n", + " 'men\\nand',\n", + " 'women',\n", + " 'leaving',\n", + " 'their',\n", + " 'fields',\n", + " 'and',\n", + " 'their\\nvineyards',\n", + " 'and',\n", + " 'hastening',\n", + " 'towards',\n", + " 'the',\n", + " 'city\\ngates.\\n\\nAnd',\n", + " 'he',\n", + " 'heard',\n", + " 'their',\n", + " 'voices',\n", + " 'calling',\n", + " 'his\\nname,',\n", + " 'and',\n", + " 'shouting',\n", + " 'from',\n", + " 'field',\n", + " 'to',\n", + " 'field\\ntelling',\n", + " 'one',\n", + " 'another',\n", + " 'of',\n", + " 'the',\n", + " 'coming',\n", + " 'of',\n", + " 'his\\nship.\\n\\nAnd',\n", + " 'he',\n", + " 'said',\n", + " 'to',\n", + " 'himself:\\n\\nShall',\n", + " 'the',\n", + " 'day',\n", + " 'of',\n", + " 'parting',\n", + " 'be',\n", + " 'the',\n", + " 'day',\n", + " 'of\\ngathering?\\n\\nAnd',\n", + " 'shall',\n", + " 'it',\n", + " 'be',\n", + " 'said',\n", + " 'that',\n", + " 'my',\n", + " 'eve',\n", + " 'was',\n", + " 'in\\ntruth',\n", + " 'my',\n", + " 'dawn?\\n\\nAnd',\n", + " 'what',\n", + " 'shall',\n", + " 'I',\n", + " 'give',\n", + " 'unto',\n", + " 'him',\n", + " 'who',\n", + " 'has\\nleft',\n", + " 'his',\n", + " 'plough',\n", + " 'in',\n", + " 'midfurrow,',\n", + " 'or',\n", + " 'to\\nhim',\n", + " 'who',\n", + " 'has',\n", + " 'stopped',\n", + " 'the',\n", + " 'wheel',\n", + " 'of',\n", + " 'his\\nwinepress?',\n", + " '{11}Shall',\n", + " 'my',\n", + " 'heart',\n", + " 'become',\n", + " 'a\\ntree',\n", + " 'heavy-laden',\n", + " 'with',\n", + " 'fruit',\n", + " 'that',\n", + " 'I',\n", + " 'may\\ngather',\n", + " 'and',\n", + " 'give',\n", + " 'unto',\n", + " 'them?\\n\\nAnd',\n", + " 'shall',\n", + " 'my',\n", + " 'desires',\n", + " 'flow',\n", + " 'like',\n", + " 'a\\nfountain',\n", + " 'that',\n", + " 'I',\n", + " 'may',\n", + " 'fill',\n", + " 'their',\n", + " 'cups?\\n\\nAm',\n", + " 'I',\n", + " 'a',\n", + " 'harp',\n", + " 'that',\n", + " 'the',\n", + " 'hand',\n", + " 'of',\n", + " 'the',\n", + " 'mighty\\nmay',\n", + " 'touch',\n", + " 'me,',\n", + " 'or',\n", + " 'a',\n", + " 'flute',\n", + " 'that',\n", + " 'his',\n", + " 'breath\\nmay',\n", + " 'pass',\n", + " 'through',\n", + " 'me?\\n\\nA',\n", + " 'seeker',\n", + " 'of',\n", + " 'silences',\n", + " 'am',\n", + " 'I,',\n", + " 'and',\n", + " 'what\\ntreasure',\n", + " 'have',\n", + " 'I',\n", + " 'found',\n", + " 'in',\n", + " 'silences',\n", + " 'that',\n", + " 'I\\nmay',\n", + " 'dispense',\n", + " 'with',\n", + " 'confidence?\\n\\nIf',\n", + " 'this',\n", + " 'is',\n", + " 'my',\n", + " 'day',\n", + " 'of',\n", + " 'harvest,',\n", + " 'in',\n", + " 'what\\nfields',\n", + " 'have',\n", + " 'I',\n", + " 'sowed',\n", + " 'the',\n", + " 'seed,',\n", + " 'and',\n", + " 'in\\nwhat',\n", + " 'unremembered',\n", + " 'seasons?\\n\\nIf',\n", + " 'this',\n", + " 'indeed',\n", + " 'be',\n", + " 'the',\n", + " 'hour',\n", + " 'in',\n", + " 'which',\n", + " 'I\\nlift',\n", + " 'up',\n", + " 'my',\n", + " 'lantern,',\n", + " 'it',\n", + " 'is',\n", + " 'not',\n", + " 'my',\n", + " 'flame\\nthat',\n", + " 'shall',\n", + " 'burn',\n", + " 'therein.\\n\\nEmpty',\n", + " 'and',\n", + " 'dark',\n", + " 'shall',\n", + " 'I',\n", + " 'raise',\n", + " 'my',\n", + " 'lantern,\\n\\nAnd',\n", + " 'the',\n", + " 'guardian',\n", + " 'of',\n", + " 'the',\n", + " 'night',\n", + " 'shall',\n", + " 'fill\\nit',\n", + " 'with',\n", + " 'oil',\n", + " 'and',\n", + " 'he',\n", + " 'shall',\n", + " 'light',\n", + " 'it',\n", + " 'also.\\n\\n*****\\n\\nThese',\n", + " 'things',\n", + " 'he',\n", + " 'said',\n", + " 'in',\n", + " 'words.',\n", + " 'But',\n", + " 'much\\nin',\n", + " 'his',\n", + " 'heart',\n", + " 'remained',\n", + " 'unsaid.',\n", + " 'For',\n", + " '{12}he\\nhimself',\n", + " 'could',\n", + " 'not',\n", + " 'speak',\n", + " 'his',\n", + " 'deeper\\nsecret.\\n\\n*****\\n\\n[Illustration:',\n", + " '0020]\\n\\nAnd',\n", + " 'when',\n", + " 'he',\n", + " 'entered',\n", + " 'into',\n", + " 'the',\n", + " 'city',\n", + " 'all\\nthe',\n", + " 'people',\n", + " 'came',\n", + " 'to',\n", + " 'meet',\n", + " 'him,',\n", + " 'and',\n", + " 'they\\nwere',\n", + " 'crying',\n", + " 'out',\n", + " 'to',\n", + " 'him',\n", + " 'as',\n", + " 'with',\n", + " 'one\\nvoice.\\n\\nAnd',\n", + " 'the',\n", + " 'elders',\n", + " 'of',\n", + " 'the',\n", + " 'city',\n", + " 'stood',\n", + " 'forth\\nand',\n", + " 'said:\\n\\nGo',\n", + " 'not',\n", + " 'yet',\n", + " 'away',\n", + " 'from',\n", + " 'us.\\n\\nA',\n", + " 'noontide',\n", + " 'have',\n", + " 'you',\n", + " 'been',\n", + " 'in',\n", + " 'our\\ntwilight,',\n", + " 'and',\n", + " 'your',\n", + " 'youth',\n", + " 'has',\n", + " 'given',\n", + " 'us\\ndreams',\n", + " 'to',\n", + " 'dream.\\n\\nNo',\n", + " 'stranger',\n", + " 'are',\n", + " 'you',\n", + " 'among',\n", + " 'us,',\n", + " 'nor\\na',\n", + " 'guest,',\n", + " 'but',\n", + " 'our',\n", + " 'son',\n", + " 'and',\n", + " 'our',\n", + " 'dearly\\nbeloved.\\n\\nSuffer',\n", + " 'not',\n", + " 'yet',\n", + " 'our',\n", + " 'eyes',\n", + " 'to',\n", + " 'hunger',\n", + " 'for\\nyour',\n", + " 'face.\\n\\n*****\\n\\nAnd',\n", + " 'the',\n", + " 'priests',\n", + " 'and',\n", + " 'the',\n", + " 'priestesses',\n", + " 'said\\nunto',\n", + " 'him:\\n\\nLet',\n", + " 'not',\n", + " 'the',\n", + " 'waves',\n", + " 'of',\n", + " 'the',\n", + " 'sea',\n", + " 'separate',\n", + " 'us\\nnow,',\n", + " 'and',\n", + " 'the',\n", + " 'years',\n", + " 'you',\n", + " 'have',\n", + " 'spent',\n", + " 'in',\n", + " 'our\\nmidst',\n", + " 'become',\n", + " 'a',\n", + " 'memory.\\n\\nYou',\n", + " 'have',\n", + " 'walked',\n", + " 'among',\n", + " 'us',\n", + " 'a',\n", + " 'spirit,\\n{13}and',\n", + " 'your',\n", + " 'shadow',\n", + " 'has',\n", + " 'been',\n", + " 'a',\n", + " 'light\\nupon',\n", + " 'our',\n", + " 'faces.\\n\\nMuch',\n", + " 'have',\n", + " 'we',\n", + " 'loved',\n", + " 'you.',\n", + " 'But',\n", + " 'speechless\\nwas',\n", + " 'our',\n", + " 'love,',\n", + " 'and',\n", + " 'with',\n", + " 'veils',\n", + " 'has',\n", + " 'it',\n", + " 'been\\nveiled.\\n\\nYet',\n", + " 'now',\n", + " 'it',\n", + " 'cries',\n", + " 'aloud',\n", + " 'unto',\n", + " 'you,',\n", + " 'and\\nwould',\n", + " 'stand',\n", + " 'revealed',\n", + " 'before',\n", + " 'you.\\n\\nAnd',\n", + " 'ever',\n", + " 'has',\n", + " 'it',\n", + " 'been',\n", + " 'that',\n", + " 'love',\n", + " 'knows\\nnot',\n", + " 'its',\n", + " 'own',\n", + " 'depth',\n", + " 'until',\n", + " 'the',\n", + " 'hour',\n", + " 'of\\nseparation.\\n\\n*****\\n\\nAnd',\n", + " 'others',\n", + " 'came',\n", + " 'also',\n", + " 'and',\n", + " 'entreated',\n", + " 'him.\\nBut',\n", + " 'he',\n", + " 'answered',\n", + " 'them',\n", + " 'not.',\n", + " 'He',\n", + " 'only',\n", + " 'bent\\nhis',\n", + " 'head;',\n", + " 'and',\n", + " 'those',\n", + " 'who',\n", + " 'stood',\n", + " 'near',\n", + " 'saw\\nhis',\n", + " 'tears',\n", + " 'falling',\n", + " 'upon',\n", + " 'his',\n", + " 'breast.\\n\\nAnd',\n", + " 'he',\n", + " 'and',\n", + " 'the',\n", + " 'people',\n", + " 'proceeded',\n", + " 'towards\\nthe',\n", + " 'great',\n", + " 'square',\n", + " 'before',\n", + " 'the',\n", + " 'temple.\\n\\nAnd',\n", + " 'there',\n", + " 'came',\n", + " 'out',\n", + " 'of',\n", + " 'the',\n", + " 'sanctuary',\n", + " 'a\\nwoman',\n", + " 'whose',\n", + " 'name',\n", + " 'was',\n", + " 'Almitra.',\n", + " 'And',\n", + " 'she\\nwas',\n", + " 'a',\n", + " 'seeress.\\n\\nAnd',\n", + " 'he',\n", + " 'looked',\n", + " 'upon',\n", + " 'her',\n", + " 'with',\n", + " 'exceeding\\ntenderness,',\n", + " 'for',\n", + " 'it',\n", + " 'was',\n", + " 'she',\n", + " 'who',\n", + " 'had',\n", + " 'first\\nsought',\n", + " 'and',\n", + " 'believed',\n", + " 'in',\n", + " 'him',\n", + " 'when',\n", + " 'he',\n", + " 'had\\nbeen',\n", + " 'but',\n", + " 'a',\n", + " 'day',\n", + " 'in',\n", + " 'their',\n", + " 'city.',\n", + " '{14}And\\nshe',\n", + " 'hailed',\n", + " 'him,',\n", + " 'saying:\\n\\nProphet',\n", + " 'of',\n", + " 'God,',\n", + " 'in',\n", + " 'quest',\n", + " 'of',\n", + " 'the\\nuttermost,',\n", + " 'long',\n", + " 'have',\n", + " 'you',\n", + " 'searched',\n", + " 'the\\ndistances',\n", + " 'for',\n", + " 'your',\n", + " 'ship.\\n\\nAnd',\n", + " 'now',\n", + " 'your',\n", + " 'ship',\n", + " 'has',\n", + " 'come,',\n", + " 'and',\n", + " 'you',\n", + " 'must\\nneeds',\n", + " 'go.\\n\\nDeep',\n", + " 'is',\n", + " 'your',\n", + " 'longing',\n", + " 'for',\n", + " 'the',\n", + " 'land',\n", + " 'of\\nyour',\n", + " 'memories',\n", + " 'and',\n", + " 'the',\n", + " 'dwelling',\n", + " 'place\\nof',\n", + " 'your',\n", + " 'greater',\n", + " 'desires;',\n", + " 'and',\n", + " 'our',\n", + " 'love\\nwould',\n", + " 'not',\n", + " 'bind',\n", + " 'you',\n", + " 'nor',\n", + " 'our',\n", + " 'needs',\n", + " 'hold\\nyou.\\n\\nYet',\n", + " 'this',\n", + " 'we',\n", + " 'ask',\n", + " 'ere',\n", + " 'you',\n", + " 'leave',\n", + " 'us,',\n", + " 'that\\nyou',\n", + " 'speak',\n", + " 'to',\n", + " 'us',\n", + " 'and',\n", + " 'give',\n", + " 'us',\n", + " 'of',\n", + " 'your\\ntruth.\\n\\nAnd',\n", + " 'we',\n", + " 'will',\n", + " 'give',\n", + " 'it',\n", + " 'unto',\n", + " 'our',\n", + " 'children,\\nand',\n", + " 'they',\n", + " 'unto',\n", + " 'their',\n", + " 'children,',\n", + " 'and',\n", + " 'it\\nshall',\n", + " 'not',\n", + " 'perish.\\n\\nIn',\n", + " 'your',\n", + " 'aloneness',\n", + " 'you',\n", + " 'have',\n", + " 'watched',\n", + " 'with\\nour',\n", + " 'days,',\n", + " 'and',\n", + " 'in',\n", + " 'your',\n", + " 'wakefulness',\n", + " 'you\\nhave',\n", + " 'listened',\n", + " 'to',\n", + " 'the',\n", + " 'weeping',\n", + " 'and',\n", + " 'the\\nlaughter',\n", + " 'of',\n", + " 'our',\n", + " 'sleep.\\n\\nNow',\n", + " 'therefore',\n", + " 'disclose',\n", + " 'us',\n", + " 'to',\n", + " 'ourselves,\\nand',\n", + " 'tell',\n", + " 'us',\n", + " 'all',\n", + " 'that',\n", + " 'has',\n", + " 'been',\n", + " 'shown\\nyou',\n", + " 'of',\n", + " 'that',\n", + " 'which',\n", + " 'is',\n", + " 'between',\n", + " 'birth',\n", + " 'and\\ndeath.\\n\\n*****\\n\\nAnd',\n", + " 'he',\n", + " 'answered,\\n\\nPeople',\n", + " 'of',\n", + " 'Orphalese,',\n", + " ...]" + ] + }, + "execution_count": 32, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ - "# your code here" + "prophet = prophet[568:]\n", + "prophet" ] }, { @@ -70,11 +2097,32 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 41, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "['PROPHET\\n\\n|Almustafa,',\n", + " 'the{7}',\n", + " 'chosen',\n", + " 'and',\n", + " 'the\\nbeloved,',\n", + " 'who',\n", + " 'was',\n", + " 'a',\n", + " 'dawn',\n", + " 'unto',\n", + " 'his']" + ] + }, + "execution_count": 41, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ - "# your code here" + "prophet[:11]" ] }, { @@ -88,9 +2136,30 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 47, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "['PROPHET\\n\\n|Almustafa,',\n", + " 'the',\n", + " 'chosen',\n", + " 'and',\n", + " 'the\\nbeloved,',\n", + " 'who',\n", + " 'was',\n", + " 'a',\n", + " 'dawn',\n", + " 'unto',\n", + " 'his']" + ] + }, + "execution_count": 47, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "def reference(x):\n", " '''\n", @@ -101,7 +2170,16 @@ " Input: 'the{7}'\n", " Output: 'the'\n", " '''\n", - " \n", + " if \"{\" in list:\n", + " left_side = x.index(\"{\")\n", + " right_side = x.index (\"}\")\n", + " remove = x[:left_side] + x[right_side+1:]\n", + " return remove\n", + " else:\n", + " return list\n", + "\n", + "\n", + "\n", " # your code here" ] }, @@ -114,11 +2192,33 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 48, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "['PROPHET\\n\\n|Almustafa,',\n", + " 'the',\n", + " 'chosen',\n", + " 'and',\n", + " 'the\\nbeloved,',\n", + " 'who',\n", + " 'was',\n", + " 'a',\n", + " 'dawn',\n", + " 'unto',\n", + " 'his']" + ] + }, + "execution_count": 48, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ - "# your code here" + "no_refrence = list(map(reference, prophet))\n", + "no_refrence[:11]" ] }, { @@ -128,23 +2228,31 @@ "Another thing you may have noticed is that some words contain a line break. Let's write a function to split those words. Our function will return the string split on the character `\\n`. Write your function in the cell below." ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + " if \"\\\" in list:\n", + " left_side = x.index(\"\\\")\n", + " right_side = x.index (\"n\")\n", + " remove = x[:left_side] + x[right_side+1:]\n", + " return remove\n", + " else:\n", + " return list" + ] + }, { "cell_type": "code", - "execution_count": null, + "execution_count": 54, "metadata": {}, "outputs": [], "source": [ "def line_break(x):\n", - " '''\n", - " Input: A string\n", - " Output: A list of strings split on the line break (\\n) character\n", - " \n", - " Example:\n", - " Input: 'the\\nbeloved'\n", - " Output: ['the', 'beloved']\n", - " '''\n", - " \n", - " # your code here" + "\n", + " x_split = x.split('\\n')\n", + " return x_split\n", + "\n", + " " ] }, { @@ -156,11 +2264,1023 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 55, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "[['PROPHET', '', '|Almustafa,'],\n", + " ['the'],\n", + " ['chosen'],\n", + " ['and'],\n", + " ['the', 'beloved,'],\n", + " ['who'],\n", + " ['was'],\n", + " ['a'],\n", + " ['dawn'],\n", + " ['unto'],\n", + " ['his'],\n", + " ['own', 'day,'],\n", + " ['had'],\n", + " ['waited'],\n", + " ['twelve'],\n", + " ['years'],\n", + " ['in'],\n", + " ['the'],\n", + " ['city', 'of'],\n", + " ['Orphalese'],\n", + " ['for'],\n", + " ['his'],\n", + " ['ship'],\n", + " ['that'],\n", + " ['was'],\n", + " ['to', 'return'],\n", + " ['and'],\n", + " ['bear'],\n", + " ['him'],\n", + " ['back'],\n", + " ['to'],\n", + " ['the'],\n", + " ['isle'],\n", + " ['of', 'his'],\n", + " ['birth.', '', 'And'],\n", + " ['in'],\n", + " ['the'],\n", + " ['twelfth'],\n", + " ['year,'],\n", + " ['on'],\n", + " ['the'],\n", + " ['seventh', 'day'],\n", + " ['of'],\n", + " ['Ielool,'],\n", + " ['the'],\n", + " ['month'],\n", + " ['of'],\n", + " ['reaping,'],\n", + " ['he', 'climbed'],\n", + " ['the'],\n", + " ['hill'],\n", + " ['without'],\n", + " ['the'],\n", + " ['city'],\n", + " ['walls', 'and'],\n", + " ['looked'],\n", + " ['seaward;'],\n", + " ['and'],\n", + " ['he'],\n", + " ['beheld'],\n", + " ['his', 'ship'],\n", + " ['coming'],\n", + " ['with'],\n", + " ['the'],\n", + " ['mist.', '', 'Then'],\n", + " ['the'],\n", + " ['gates'],\n", + " ['of'],\n", + " ['his'],\n", + " ['heart'],\n", + " ['were'],\n", + " ['flung', 'open,'],\n", + " ['and'],\n", + " ['his'],\n", + " ['joy'],\n", + " ['flew'],\n", + " ['far'],\n", + " ['over'],\n", + " ['the'],\n", + " ['sea.', 'And'],\n", + " ['he'],\n", + " ['closed'],\n", + " ['his'],\n", + " ['eyes'],\n", + " ['and'],\n", + " ['prayed'],\n", + " ['in'],\n", + " ['the', 'silences'],\n", + " ['of'],\n", + " ['his'],\n", + " ['soul.', '', '*****', '', 'But'],\n", + " ['as'],\n", + " ['he'],\n", + " ['descended'],\n", + " ['the'],\n", + " ['hill,'],\n", + " ['a'],\n", + " ['sadness', 'came'],\n", + " ['upon'],\n", + " ['him,'],\n", + " ['and'],\n", + " ['he'],\n", + " ['thought'],\n", + " ['in'],\n", + " ['his', 'heart:', '', 'How'],\n", + " ['shall'],\n", + " ['I'],\n", + " ['go'],\n", + " ['in'],\n", + " ['peace'],\n", + " ['and'],\n", + " ['without', 'sorrow?'],\n", + " ['Nay,'],\n", + " ['not'],\n", + " ['without'],\n", + " ['a'],\n", + " ['wound'],\n", + " ['in'],\n", + " ['the', 'spirit'],\n", + " ['shall'],\n", + " ['I'],\n", + " ['leave'],\n", + " ['this'],\n", + " ['city.'],\n", + " ['Long', 'were'],\n", + " ['the'],\n", + " ['days'],\n", + " ['of'],\n", + " ['pain'],\n", + " ['I'],\n", + " ['have'],\n", + " ['spent', 'within'],\n", + " ['its'],\n", + " ['walls,'],\n", + " ['and'],\n", + " ['long'],\n", + " ['were'],\n", + " ['the', 'nights'],\n", + " ['of'],\n", + " ['aloneness;'],\n", + " ['and'],\n", + " ['who'],\n", + " ['can'],\n", + " ['depart', 'from'],\n", + " ['his'],\n", + " ['pain'],\n", + " ['and'],\n", + " ['his'],\n", + " ['aloneness'],\n", + " ['without', 'regret?', '', 'Too'],\n", + " ['many'],\n", + " ['fragments'],\n", + " ['of'],\n", + " ['the'],\n", + " ['spirit'],\n", + " ['have'],\n", + " ['I', 'scattered'],\n", + " ['in'],\n", + " ['these'],\n", + " ['streets,'],\n", + " ['and'],\n", + " ['too'],\n", + " ['many', 'are'],\n", + " ['the'],\n", + " ['children'],\n", + " ['of'],\n", + " ['my'],\n", + " ['longing'],\n", + " ['that'],\n", + " ['walk', 'naked'],\n", + " ['among'],\n", + " ['these'],\n", + " ['hills,'],\n", + " ['and'],\n", + " ['I'],\n", + " ['cannot', 'withdraw'],\n", + " ['from'],\n", + " ['them'],\n", + " ['without'],\n", + " ['a'],\n", + " ['burden'],\n", + " ['and', 'an'],\n", + " ['ache.', '', 'It'],\n", + " ['is'],\n", + " ['not'],\n", + " ['a'],\n", + " ['garment'],\n", + " ['I'],\n", + " ['cast'],\n", + " ['off'],\n", + " ['this', 'day,'],\n", + " ['but'],\n", + " ['a'],\n", + " ['skin'],\n", + " ['that'],\n", + " ['I'],\n", + " ['tear'],\n", + " ['with'],\n", + " ['my'],\n", + " ['own', 'hands.', '', 'Nor'],\n", + " ['is'],\n", + " ['it'],\n", + " ['a'],\n", + " ['thought'],\n", + " ['I'],\n", + " ['leave'],\n", + " ['behind'],\n", + " ['me,', 'but'],\n", + " ['a'],\n", + " ['heart'],\n", + " ['made'],\n", + " ['sweet'],\n", + " ['with'],\n", + " ['hunger'],\n", + " ['and', 'with'],\n", + " ['thirst.', '', '*****', '', 'Yet'],\n", + " ['I'],\n", + " ['cannot'],\n", + " ['tarry'],\n", + " ['longer.', '', 'The'],\n", + " ['sea'],\n", + " ['that'],\n", + " ['calls'],\n", + " ['all'],\n", + " ['things'],\n", + " ['unto'],\n", + " ['her', 'calls'],\n", + " ['me,'],\n", + " ['and'],\n", + " ['I'],\n", + " ['must'],\n", + " ['embark.', '', 'For'],\n", + " ['to'],\n", + " ['stay,'],\n", + " ['though'],\n", + " ['the'],\n", + " ['hours'],\n", + " ['burn'],\n", + " ['in', 'the'],\n", + " ['night,'],\n", + " ['is'],\n", + " ['to'],\n", + " ['freeze'],\n", + " ['and'],\n", + " ['crystallize', 'and'],\n", + " ['be'],\n", + " ['bound'],\n", + " ['in'],\n", + " ['a'],\n", + " ['mould.', '', 'Fain'],\n", + " ['would'],\n", + " ['I'],\n", + " ['take'],\n", + " ['with'],\n", + " ['me'],\n", + " ['all'],\n", + " ['that'],\n", + " ['is', 'here.'],\n", + " ['But'],\n", + " ['how'],\n", + " ['shall'],\n", + " ['I?', '', 'A'],\n", + " ['voice'],\n", + " ['cannot'],\n", + " ['carry'],\n", + " ['the'],\n", + " ['tongue'],\n", + " ['and', 'the'],\n", + " ['lips'],\n", + " ['that'],\n", + " ['gave'],\n", + " ['it'],\n", + " ['wings.'],\n", + " ['Alone', 'must'],\n", + " ['it'],\n", + " ['seek'],\n", + " ['the'],\n", + " ['ether.', '', 'And'],\n", + " ['alone'],\n", + " ['and'],\n", + " ['without'],\n", + " ['his'],\n", + " ['nest'],\n", + " ['shall'],\n", + " ['the', 'eagle'],\n", + " ['fly'],\n", + " ['across'],\n", + " ['the'],\n", + " ['sun.', '', '*****', '', 'Now'],\n", + " ['when'],\n", + " ['he'],\n", + " ['reached'],\n", + " ['the'],\n", + " ['foot'],\n", + " ['of'],\n", + " ['the', 'hill,'],\n", + " ['he'],\n", + " ['turned'],\n", + " ['again'],\n", + " ['towards'],\n", + " ['the'],\n", + " ['sea,', 'and'],\n", + " ['he'],\n", + " ['saw'],\n", + " ['his'],\n", + " ['ship'],\n", + " ['approaching'],\n", + " ['the', 'harbour,'],\n", + " ['and'],\n", + " ['upon'],\n", + " ['her'],\n", + " ['prow'],\n", + " ['the'],\n", + " ['mariners,', 'the'],\n", + " ['men'],\n", + " ['of'],\n", + " ['his'],\n", + " ['own'],\n", + " ['land.', '', 'And'],\n", + " ['his'],\n", + " ['soul'],\n", + " ['cried'],\n", + " ['out'],\n", + " ['to'],\n", + " ['them,'],\n", + " ['and'],\n", + " ['he', 'said:', '', 'Sons'],\n", + " ['of'],\n", + " ['my'],\n", + " ['ancient'],\n", + " ['mother,'],\n", + " ['you'],\n", + " ['riders'],\n", + " ['of', 'the'],\n", + " ['tides,', '', 'How'],\n", + " ['often'],\n", + " ['have'],\n", + " ['you'],\n", + " ['sailed'],\n", + " ['in'],\n", + " ['my'],\n", + " ['dreams.', 'And'],\n", + " ['now'],\n", + " ['you'],\n", + " ['come'],\n", + " ['in'],\n", + " ['my'],\n", + " ['awakening,'],\n", + " ['which', 'is'],\n", + " ['my'],\n", + " ['deeper'],\n", + " ['dream.', '', 'Ready'],\n", + " ['am'],\n", + " ['I'],\n", + " ['to'],\n", + " ['go,'],\n", + " ['and'],\n", + " ['my'],\n", + " ['eagerness'],\n", + " ['with', 'sails'],\n", + " ['full'],\n", + " ['set'],\n", + " ['awaits'],\n", + " ['the'],\n", + " ['wind.', '', 'Only'],\n", + " ['another'],\n", + " ['breath'],\n", + " ['will'],\n", + " ['I'],\n", + " ['breathe'],\n", + " ['in', 'this'],\n", + " ['still'],\n", + " ['air,'],\n", + " ['only'],\n", + " ['another'],\n", + " ['loving'],\n", + " ['look', 'cast'],\n", + " ['backward,', '', 'And'],\n", + " ['then'],\n", + " ['I'],\n", + " ['shall'],\n", + " ['stand'],\n", + " ['among'],\n", + " ['you,'],\n", + " ['a', 'seafarer'],\n", + " ['among'],\n", + " ['seafarers.'],\n", + " ['And'],\n", + " ['you,', 'vast'],\n", + " ['sea,'],\n", + " ['sleepless'],\n", + " ['mother,', '', 'Who'],\n", + " ['alone'],\n", + " ['are'],\n", + " ['peace'],\n", + " ['and'],\n", + " ['freedom'],\n", + " ['to'],\n", + " ['the', 'river'],\n", + " ['and'],\n", + " ['the'],\n", + " ['stream,', '', 'Only'],\n", + " ['another'],\n", + " ['winding'],\n", + " ['will'],\n", + " ['this'],\n", + " ['stream', 'make,'],\n", + " ['only'],\n", + " ['another'],\n", + " ['murmur'],\n", + " ['in'],\n", + " ['this'],\n", + " ['glade,', '', 'And'],\n", + " ['then'],\n", + " ['shall'],\n", + " ['I'],\n", + " ['come'],\n", + " ['to'],\n", + " ['you,'],\n", + " ['a', 'boundless'],\n", + " ['drop'],\n", + " ['to'],\n", + " ['a'],\n", + " ['boundless'],\n", + " ['ocean.', '', '*****', '', 'And'],\n", + " ['as'],\n", + " ['he'],\n", + " ['walked'],\n", + " ['he'],\n", + " ['saw'],\n", + " ['from'],\n", + " ['afar'],\n", + " ['men', 'and'],\n", + " ['women'],\n", + " ['leaving'],\n", + " ['their'],\n", + " ['fields'],\n", + " ['and'],\n", + " ['their', 'vineyards'],\n", + " ['and'],\n", + " ['hastening'],\n", + " ['towards'],\n", + " ['the'],\n", + " ['city', 'gates.', '', 'And'],\n", + " ['he'],\n", + " ['heard'],\n", + " ['their'],\n", + " ['voices'],\n", + " ['calling'],\n", + " ['his', 'name,'],\n", + " ['and'],\n", + " ['shouting'],\n", + " ['from'],\n", + " ['field'],\n", + " ['to'],\n", + " ['field', 'telling'],\n", + " ['one'],\n", + " ['another'],\n", + " ['of'],\n", + " ['the'],\n", + " ['coming'],\n", + " ['of'],\n", + " ['his', 'ship.', '', 'And'],\n", + " ['he'],\n", + " ['said'],\n", + " ['to'],\n", + " ['himself:', '', 'Shall'],\n", + " ['the'],\n", + " ['day'],\n", + " ['of'],\n", + " ['parting'],\n", + " ['be'],\n", + " ['the'],\n", + " ['day'],\n", + " ['of', 'gathering?', '', 'And'],\n", + " ['shall'],\n", + " ['it'],\n", + " ['be'],\n", + " ['said'],\n", + " ['that'],\n", + " ['my'],\n", + " ['eve'],\n", + " ['was'],\n", + " ['in', 'truth'],\n", + " ['my'],\n", + " ['dawn?', '', 'And'],\n", + " ['what'],\n", + " ['shall'],\n", + " ['I'],\n", + " ['give'],\n", + " ['unto'],\n", + " ['him'],\n", + " ['who'],\n", + " ['has', 'left'],\n", + " ['his'],\n", + " ['plough'],\n", + " ['in'],\n", + " ['midfurrow,'],\n", + " ['or'],\n", + " ['to', 'him'],\n", + " ['who'],\n", + " ['has'],\n", + " ['stopped'],\n", + " ['the'],\n", + " ['wheel'],\n", + " ['of'],\n", + " ['his', 'winepress?'],\n", + " ['Shall'],\n", + " ['my'],\n", + " ['heart'],\n", + " ['become'],\n", + " ['a', 'tree'],\n", + " ['heavy-laden'],\n", + " ['with'],\n", + " ['fruit'],\n", + " ['that'],\n", + " ['I'],\n", + " ['may', 'gather'],\n", + " ['and'],\n", + " ['give'],\n", + " ['unto'],\n", + " ['them?', '', 'And'],\n", + " ['shall'],\n", + " ['my'],\n", + " ['desires'],\n", + " ['flow'],\n", + " ['like'],\n", + " ['a', 'fountain'],\n", + " ['that'],\n", + " ['I'],\n", + " ['may'],\n", + " ['fill'],\n", + " ['their'],\n", + " ['cups?', '', 'Am'],\n", + " ['I'],\n", + " ['a'],\n", + " ['harp'],\n", + " ['that'],\n", + " ['the'],\n", + " ['hand'],\n", + " ['of'],\n", + " ['the'],\n", + " ['mighty', 'may'],\n", + " ['touch'],\n", + " ['me,'],\n", + " ['or'],\n", + " ['a'],\n", + " ['flute'],\n", + " ['that'],\n", + " ['his'],\n", + " ['breath', 'may'],\n", + " ['pass'],\n", + " ['through'],\n", + " ['me?', '', 'A'],\n", + " ['seeker'],\n", + " ['of'],\n", + " ['silences'],\n", + " ['am'],\n", + " ['I,'],\n", + " ['and'],\n", + " ['what', 'treasure'],\n", + " ['have'],\n", + " ['I'],\n", + " ['found'],\n", + " ['in'],\n", + " ['silences'],\n", + " ['that'],\n", + " ['I', 'may'],\n", + " ['dispense'],\n", + " ['with'],\n", + " ['confidence?', '', 'If'],\n", + " ['this'],\n", + " ['is'],\n", + " ['my'],\n", + " ['day'],\n", + " ['of'],\n", + " ['harvest,'],\n", + " ['in'],\n", + " ['what', 'fields'],\n", + " ['have'],\n", + " ['I'],\n", + " ['sowed'],\n", + " ['the'],\n", + " ['seed,'],\n", + " ['and'],\n", + " ['in', 'what'],\n", + " ['unremembered'],\n", + " ['seasons?', '', 'If'],\n", + " ['this'],\n", + " ['indeed'],\n", + " ['be'],\n", + " ['the'],\n", + " ['hour'],\n", + " ['in'],\n", + " ['which'],\n", + " ['I', 'lift'],\n", + " ['up'],\n", + " ['my'],\n", + " ['lantern,'],\n", + " ['it'],\n", + " ['is'],\n", + " ['not'],\n", + " ['my'],\n", + " ['flame', 'that'],\n", + " ['shall'],\n", + " ['burn'],\n", + " ['therein.', '', 'Empty'],\n", + " ['and'],\n", + " ['dark'],\n", + " ['shall'],\n", + " ['I'],\n", + " ['raise'],\n", + " ['my'],\n", + " ['lantern,', '', 'And'],\n", + " ['the'],\n", + " ['guardian'],\n", + " ['of'],\n", + " ['the'],\n", + " ['night'],\n", + " ['shall'],\n", + " ['fill', 'it'],\n", + " ['with'],\n", + " ['oil'],\n", + " ['and'],\n", + " ['he'],\n", + " ['shall'],\n", + " ['light'],\n", + " ['it'],\n", + " ['also.', '', '*****', '', 'These'],\n", + " ['things'],\n", + " ['he'],\n", + " ['said'],\n", + " ['in'],\n", + " ['words.'],\n", + " ['But'],\n", + " ['much', 'in'],\n", + " ['his'],\n", + " ['heart'],\n", + " ['remained'],\n", + " ['unsaid.'],\n", + " ['For'],\n", + " ['he', 'himself'],\n", + " ['could'],\n", + " ['not'],\n", + " ['speak'],\n", + " ['his'],\n", + " ['deeper', 'secret.', '', '*****', '', '[Illustration:'],\n", + " ['0020]', '', 'And'],\n", + " ['when'],\n", + " ['he'],\n", + " ['entered'],\n", + " ['into'],\n", + " ['the'],\n", + " ['city'],\n", + " ['all', 'the'],\n", + " ['people'],\n", + " ['came'],\n", + " ['to'],\n", + " ['meet'],\n", + " ['him,'],\n", + " ['and'],\n", + " ['they', 'were'],\n", + " ['crying'],\n", + " ['out'],\n", + " ['to'],\n", + " ['him'],\n", + " ['as'],\n", + " ['with'],\n", + " ['one', 'voice.', '', 'And'],\n", + " ['the'],\n", + " ['elders'],\n", + " ['of'],\n", + " ['the'],\n", + " ['city'],\n", + " ['stood'],\n", + " ['forth', 'and'],\n", + " ['said:', '', 'Go'],\n", + " ['not'],\n", + " ['yet'],\n", + " ['away'],\n", + " ['from'],\n", + " ['us.', '', 'A'],\n", + " ['noontide'],\n", + " ['have'],\n", + " ['you'],\n", + " ['been'],\n", + " ['in'],\n", + " ['our', 'twilight,'],\n", + " ['and'],\n", + " ['your'],\n", + " ['youth'],\n", + " ['has'],\n", + " ['given'],\n", + " ['us', 'dreams'],\n", + " ['to'],\n", + " ['dream.', '', 'No'],\n", + " ['stranger'],\n", + " ['are'],\n", + " ['you'],\n", + " ['among'],\n", + " ['us,'],\n", + " ['nor', 'a'],\n", + " ['guest,'],\n", + " ['but'],\n", + " ['our'],\n", + " ['son'],\n", + " ['and'],\n", + " ['our'],\n", + " ['dearly', 'beloved.', '', 'Suffer'],\n", + " ['not'],\n", + " ['yet'],\n", + " ['our'],\n", + " ['eyes'],\n", + " ['to'],\n", + " ['hunger'],\n", + " ['for', 'your'],\n", + " ['face.', '', '*****', '', 'And'],\n", + " ['the'],\n", + " ['priests'],\n", + " ['and'],\n", + " ['the'],\n", + " ['priestesses'],\n", + " ['said', 'unto'],\n", + " ['him:', '', 'Let'],\n", + " ['not'],\n", + " ['the'],\n", + " ['waves'],\n", + " ['of'],\n", + " ['the'],\n", + " ['sea'],\n", + " ['separate'],\n", + " ['us', 'now,'],\n", + " ['and'],\n", + " ['the'],\n", + " ['years'],\n", + " ['you'],\n", + " ['have'],\n", + " ['spent'],\n", + " ['in'],\n", + " ['our', 'midst'],\n", + " ['become'],\n", + " ['a'],\n", + " ['memory.', '', 'You'],\n", + " ['have'],\n", + " ['walked'],\n", + " ['among'],\n", + " ['us'],\n", + " ['a'],\n", + " ['spirit,', 'and'],\n", + " ['your'],\n", + " ['shadow'],\n", + " ['has'],\n", + " ['been'],\n", + " ['a'],\n", + " ['light', 'upon'],\n", + " ['our'],\n", + " ['faces.', '', 'Much'],\n", + " ['have'],\n", + " ['we'],\n", + " ['loved'],\n", + " ['you.'],\n", + " ['But'],\n", + " ['speechless', 'was'],\n", + " ['our'],\n", + " ['love,'],\n", + " ['and'],\n", + " ['with'],\n", + " ['veils'],\n", + " ['has'],\n", + " ['it'],\n", + " ['been', 'veiled.', '', 'Yet'],\n", + " ['now'],\n", + " ['it'],\n", + " ['cries'],\n", + " ['aloud'],\n", + " ['unto'],\n", + " ['you,'],\n", + " ['and', 'would'],\n", + " ['stand'],\n", + " ['revealed'],\n", + " ['before'],\n", + " ['you.', '', 'And'],\n", + " ['ever'],\n", + " ['has'],\n", + " ['it'],\n", + " ['been'],\n", + " ['that'],\n", + " ['love'],\n", + " ['knows', 'not'],\n", + " ['its'],\n", + " ['own'],\n", + " ['depth'],\n", + " ['until'],\n", + " ['the'],\n", + " ['hour'],\n", + " ['of', 'separation.', '', '*****', '', 'And'],\n", + " ['others'],\n", + " ['came'],\n", + " ['also'],\n", + " ['and'],\n", + " ['entreated'],\n", + " ['him.', 'But'],\n", + " ['he'],\n", + " ['answered'],\n", + " ['them'],\n", + " ['not.'],\n", + " ['He'],\n", + " ['only'],\n", + " ['bent', 'his'],\n", + " ['head;'],\n", + " ['and'],\n", + " ['those'],\n", + " ['who'],\n", + " ['stood'],\n", + " ['near'],\n", + " ['saw', 'his'],\n", + " ['tears'],\n", + " ['falling'],\n", + " ['upon'],\n", + " ['his'],\n", + " ['breast.', '', 'And'],\n", + " ['he'],\n", + " ['and'],\n", + " ['the'],\n", + " ['people'],\n", + " ['proceeded'],\n", + " ['towards', 'the'],\n", + " ['great'],\n", + " ['square'],\n", + " ['before'],\n", + " ['the'],\n", + " ['temple.', '', 'And'],\n", + " ['there'],\n", + " ['came'],\n", + " ['out'],\n", + " ['of'],\n", + " ['the'],\n", + " ['sanctuary'],\n", + " ['a', 'woman'],\n", + " ['whose'],\n", + " ['name'],\n", + " ['was'],\n", + " ['Almitra.'],\n", + " ['And'],\n", + " ['she', 'was'],\n", + " ['a'],\n", + " ['seeress.', '', 'And'],\n", + " ['he'],\n", + " ['looked'],\n", + " ['upon'],\n", + " ['her'],\n", + " ['with'],\n", + " ['exceeding', 'tenderness,'],\n", + " ['for'],\n", + " ['it'],\n", + " ['was'],\n", + " ['she'],\n", + " ['who'],\n", + " ['had'],\n", + " ['first', 'sought'],\n", + " ['and'],\n", + " ['believed'],\n", + " ['in'],\n", + " ['him'],\n", + " ['when'],\n", + " ['he'],\n", + " ['had', 'been'],\n", + " ['but'],\n", + " ['a'],\n", + " ['day'],\n", + " ['in'],\n", + " ['their'],\n", + " ['city.'],\n", + " ['And', 'she'],\n", + " ['hailed'],\n", + " ['him,'],\n", + " ['saying:', '', 'Prophet'],\n", + " ['of'],\n", + " ['God,'],\n", + " ['in'],\n", + " ['quest'],\n", + " ['of'],\n", + " ['the', 'uttermost,'],\n", + " ['long'],\n", + " ['have'],\n", + " ['you'],\n", + " ['searched'],\n", + " ['the', 'distances'],\n", + " ['for'],\n", + " ['your'],\n", + " ['ship.', '', 'And'],\n", + " ['now'],\n", + " ['your'],\n", + " ['ship'],\n", + " ['has'],\n", + " ['come,'],\n", + " ['and'],\n", + " ['you'],\n", + " ['must', 'needs'],\n", + " ['go.', '', 'Deep'],\n", + " ['is'],\n", + " ['your'],\n", + " ['longing'],\n", + " ['for'],\n", + " ['the'],\n", + " ['land'],\n", + " ['of', 'your'],\n", + " ['memories'],\n", + " ['and'],\n", + " ['the'],\n", + " ['dwelling'],\n", + " ['place', 'of'],\n", + " ['your'],\n", + " ['greater'],\n", + " ['desires;'],\n", + " ['and'],\n", + " ['our'],\n", + " ['love', 'would'],\n", + " ['not'],\n", + " ['bind'],\n", + " ['you'],\n", + " ['nor'],\n", + " ['our'],\n", + " ['needs'],\n", + " ['hold', 'you.', '', 'Yet'],\n", + " ['this'],\n", + " ['we'],\n", + " ['ask'],\n", + " ['ere'],\n", + " ['you'],\n", + " ['leave'],\n", + " ['us,'],\n", + " ['that', 'you'],\n", + " ['speak'],\n", + " ['to'],\n", + " ['us'],\n", + " ['and'],\n", + " ['give'],\n", + " ['us'],\n", + " ['of'],\n", + " ['your', 'truth.', '', 'And'],\n", + " ['we'],\n", + " ['will'],\n", + " ['give'],\n", + " ['it'],\n", + " ['unto'],\n", + " ['our'],\n", + " ['children,', 'and'],\n", + " ['they'],\n", + " ['unto'],\n", + " ['their'],\n", + " ['children,'],\n", + " ['and'],\n", + " ['it', 'shall'],\n", + " ['not'],\n", + " ['perish.', '', 'In'],\n", + " ['your'],\n", + " ['aloneness'],\n", + " ['you'],\n", + " ['have'],\n", + " ['watched'],\n", + " ['with', 'our'],\n", + " ['days,'],\n", + " ['and'],\n", + " ['in'],\n", + " ['your'],\n", + " ['wakefulness'],\n", + " ['you', 'have'],\n", + " ['listened'],\n", + " ['to'],\n", + " ['the'],\n", + " ['weeping'],\n", + " ['and'],\n", + " ['the', 'laughter'],\n", + " ['of'],\n", + " ['our'],\n", + " ['sleep.', '', 'Now'],\n", + " ['therefore'],\n", + " ['disclose'],\n", + " ['us'],\n", + " ['to'],\n", + " ['ourselves,', 'and'],\n", + " ['tell'],\n", + " ['us'],\n", + " ['all'],\n", + " ['that'],\n", + " ['has'],\n", + " ['been'],\n", + " ['shown', 'you'],\n", + " ['of'],\n", + " ['that'],\n", + " ['which'],\n", + " ['is'],\n", + " ['between'],\n", + " ['birth'],\n", + " ['and', 'death.', '', '*****', '', 'And'],\n", + " ['he'],\n", + " ['answered,', '', 'People'],\n", + " ['of'],\n", + " ['Orphalese,'],\n", + " ...]" + ] + }, + "execution_count": 55, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ - "# your code here" + "line = list(map(line_break,no_refrence))\n", + "line" ] }, { @@ -172,11 +3292,1023 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 56, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "['PROPHET',\n", + " '',\n", + " '|Almustafa,',\n", + " 'the',\n", + " 'chosen',\n", + " 'and',\n", + " 'the',\n", + " 'beloved,',\n", + " 'who',\n", + " 'was',\n", + " 'a',\n", + " 'dawn',\n", + " 'unto',\n", + " 'his',\n", + " 'own',\n", + " 'day,',\n", + " 'had',\n", + " 'waited',\n", + " 'twelve',\n", + " 'years',\n", + " 'in',\n", + " 'the',\n", + " 'city',\n", + " 'of',\n", + " 'Orphalese',\n", + " 'for',\n", + " 'his',\n", + " 'ship',\n", + " 'that',\n", + " 'was',\n", + " 'to',\n", + " 'return',\n", + " 'and',\n", + " 'bear',\n", + " 'him',\n", + " 'back',\n", + " 'to',\n", + " 'the',\n", + " 'isle',\n", + " 'of',\n", + " 'his',\n", + " 'birth.',\n", + " '',\n", + " 'And',\n", + " 'in',\n", + " 'the',\n", + " 'twelfth',\n", + " 'year,',\n", + " 'on',\n", + " 'the',\n", + " 'seventh',\n", + " 'day',\n", + " 'of',\n", + " 'Ielool,',\n", + " 'the',\n", + " 'month',\n", + " 'of',\n", + " 'reaping,',\n", + " 'he',\n", + " 'climbed',\n", + " 'the',\n", + " 'hill',\n", + " 'without',\n", + " 'the',\n", + " 'city',\n", + " 'walls',\n", + " 'and',\n", + " 'looked',\n", + " 'seaward;',\n", + " 'and',\n", + " 'he',\n", + " 'beheld',\n", + " 'his',\n", + " 'ship',\n", + " 'coming',\n", + " 'with',\n", + " 'the',\n", + " 'mist.',\n", + " '',\n", + " 'Then',\n", + " 'the',\n", + " 'gates',\n", + " 'of',\n", + " 'his',\n", + " 'heart',\n", + " 'were',\n", + " 'flung',\n", + " 'open,',\n", + " 'and',\n", + " 'his',\n", + " 'joy',\n", + " 'flew',\n", + " 'far',\n", + " 'over',\n", + " 'the',\n", + " 'sea.',\n", + " 'And',\n", + " 'he',\n", + " 'closed',\n", + " 'his',\n", + " 'eyes',\n", + " 'and',\n", + " 'prayed',\n", + " 'in',\n", + " 'the',\n", + " 'silences',\n", + " 'of',\n", + " 'his',\n", + " 'soul.',\n", + " '',\n", + " '*****',\n", + " '',\n", + " 'But',\n", + " 'as',\n", + " 'he',\n", + " 'descended',\n", + " 'the',\n", + " 'hill,',\n", + " 'a',\n", + " 'sadness',\n", + " 'came',\n", + " 'upon',\n", + " 'him,',\n", + " 'and',\n", + " 'he',\n", + " 'thought',\n", + " 'in',\n", + " 'his',\n", + " 'heart:',\n", + " '',\n", + " 'How',\n", + " 'shall',\n", + " 'I',\n", + " 'go',\n", + " 'in',\n", + " 'peace',\n", + " 'and',\n", + " 'without',\n", + " 'sorrow?',\n", + " 'Nay,',\n", + " 'not',\n", + " 'without',\n", + " 'a',\n", + " 'wound',\n", + " 'in',\n", + " 'the',\n", + " 'spirit',\n", + " 'shall',\n", + " 'I',\n", + " 'leave',\n", + " 'this',\n", + " 'city.',\n", + " 'Long',\n", + " 'were',\n", + " 'the',\n", + " 'days',\n", + " 'of',\n", + " 'pain',\n", + " 'I',\n", + " 'have',\n", + " 'spent',\n", + " 'within',\n", + " 'its',\n", + " 'walls,',\n", + " 'and',\n", + " 'long',\n", + " 'were',\n", + " 'the',\n", + " 'nights',\n", + " 'of',\n", + " 'aloneness;',\n", + " 'and',\n", + " 'who',\n", + " 'can',\n", + " 'depart',\n", + " 'from',\n", + " 'his',\n", + " 'pain',\n", + " 'and',\n", + " 'his',\n", + " 'aloneness',\n", + " 'without',\n", + " 'regret?',\n", + " '',\n", + " 'Too',\n", + " 'many',\n", + " 'fragments',\n", + " 'of',\n", + " 'the',\n", + " 'spirit',\n", + " 'have',\n", + " 'I',\n", + " 'scattered',\n", + " 'in',\n", + " 'these',\n", + " 'streets,',\n", + " 'and',\n", + " 'too',\n", + " 'many',\n", + " 'are',\n", + " 'the',\n", + " 'children',\n", + " 'of',\n", + " 'my',\n", + " 'longing',\n", + " 'that',\n", + " 'walk',\n", + " 'naked',\n", + " 'among',\n", + " 'these',\n", + " 'hills,',\n", + " 'and',\n", + " 'I',\n", + " 'cannot',\n", + " 'withdraw',\n", + " 'from',\n", + " 'them',\n", + " 'without',\n", + " 'a',\n", + " 'burden',\n", + " 'and',\n", + " 'an',\n", + " 'ache.',\n", + " '',\n", + " 'It',\n", + " 'is',\n", + " 'not',\n", + " 'a',\n", + " 'garment',\n", + " 'I',\n", + " 'cast',\n", + " 'off',\n", + " 'this',\n", + " 'day,',\n", + " 'but',\n", + " 'a',\n", + " 'skin',\n", + " 'that',\n", + " 'I',\n", + " 'tear',\n", + " 'with',\n", + " 'my',\n", + " 'own',\n", + " 'hands.',\n", + " '',\n", + " 'Nor',\n", + " 'is',\n", + " 'it',\n", + " 'a',\n", + " 'thought',\n", + " 'I',\n", + " 'leave',\n", + " 'behind',\n", + " 'me,',\n", + " 'but',\n", + " 'a',\n", + " 'heart',\n", + " 'made',\n", + " 'sweet',\n", + " 'with',\n", + " 'hunger',\n", + " 'and',\n", + " 'with',\n", + " 'thirst.',\n", + " '',\n", + " '*****',\n", + " '',\n", + " 'Yet',\n", + " 'I',\n", + " 'cannot',\n", + " 'tarry',\n", + " 'longer.',\n", + " '',\n", + " 'The',\n", + " 'sea',\n", + " 'that',\n", + " 'calls',\n", + " 'all',\n", + " 'things',\n", + " 'unto',\n", + " 'her',\n", + " 'calls',\n", + " 'me,',\n", + " 'and',\n", + " 'I',\n", + " 'must',\n", + " 'embark.',\n", + " '',\n", + " 'For',\n", + " 'to',\n", + " 'stay,',\n", + " 'though',\n", + " 'the',\n", + " 'hours',\n", + " 'burn',\n", + " 'in',\n", + " 'the',\n", + " 'night,',\n", + " 'is',\n", + " 'to',\n", + " 'freeze',\n", + " 'and',\n", + " 'crystallize',\n", + " 'and',\n", + " 'be',\n", + " 'bound',\n", + " 'in',\n", + " 'a',\n", + " 'mould.',\n", + " '',\n", + " 'Fain',\n", + " 'would',\n", + " 'I',\n", + " 'take',\n", + " 'with',\n", + " 'me',\n", + " 'all',\n", + " 'that',\n", + " 'is',\n", + " 'here.',\n", + " 'But',\n", + " 'how',\n", + " 'shall',\n", + " 'I?',\n", + " '',\n", + " 'A',\n", + " 'voice',\n", + " 'cannot',\n", + " 'carry',\n", + " 'the',\n", + " 'tongue',\n", + " 'and',\n", + " 'the',\n", + " 'lips',\n", + " 'that',\n", + " 'gave',\n", + " 'it',\n", + " 'wings.',\n", + " 'Alone',\n", + " 'must',\n", + " 'it',\n", + " 'seek',\n", + " 'the',\n", + " 'ether.',\n", + " '',\n", + " 'And',\n", + " 'alone',\n", + " 'and',\n", + " 'without',\n", + " 'his',\n", + " 'nest',\n", + " 'shall',\n", + " 'the',\n", + " 'eagle',\n", + " 'fly',\n", + " 'across',\n", + " 'the',\n", + " 'sun.',\n", + " '',\n", + " '*****',\n", + " '',\n", + " 'Now',\n", + " 'when',\n", + " 'he',\n", + " 'reached',\n", + " 'the',\n", + " 'foot',\n", + " 'of',\n", + " 'the',\n", + " 'hill,',\n", + " 'he',\n", + " 'turned',\n", + " 'again',\n", + " 'towards',\n", + " 'the',\n", + " 'sea,',\n", + " 'and',\n", + " 'he',\n", + " 'saw',\n", + " 'his',\n", + " 'ship',\n", + " 'approaching',\n", + " 'the',\n", + " 'harbour,',\n", + " 'and',\n", + " 'upon',\n", + " 'her',\n", + " 'prow',\n", + " 'the',\n", + " 'mariners,',\n", + " 'the',\n", + " 'men',\n", + " 'of',\n", + " 'his',\n", + " 'own',\n", + " 'land.',\n", + " '',\n", + " 'And',\n", + " 'his',\n", + " 'soul',\n", + " 'cried',\n", + " 'out',\n", + " 'to',\n", + " 'them,',\n", + " 'and',\n", + " 'he',\n", + " 'said:',\n", + " '',\n", + " 'Sons',\n", + " 'of',\n", + " 'my',\n", + " 'ancient',\n", + " 'mother,',\n", + " 'you',\n", + " 'riders',\n", + " 'of',\n", + " 'the',\n", + " 'tides,',\n", + " '',\n", + " 'How',\n", + " 'often',\n", + " 'have',\n", + " 'you',\n", + " 'sailed',\n", + " 'in',\n", + " 'my',\n", + " 'dreams.',\n", + " 'And',\n", + " 'now',\n", + " 'you',\n", + " 'come',\n", + " 'in',\n", + " 'my',\n", + " 'awakening,',\n", + " 'which',\n", + " 'is',\n", + " 'my',\n", + " 'deeper',\n", + " 'dream.',\n", + " '',\n", + " 'Ready',\n", + " 'am',\n", + " 'I',\n", + " 'to',\n", + " 'go,',\n", + " 'and',\n", + " 'my',\n", + " 'eagerness',\n", + " 'with',\n", + " 'sails',\n", + " 'full',\n", + " 'set',\n", + " 'awaits',\n", + " 'the',\n", + " 'wind.',\n", + " '',\n", + " 'Only',\n", + " 'another',\n", + " 'breath',\n", + " 'will',\n", + " 'I',\n", + " 'breathe',\n", + " 'in',\n", + " 'this',\n", + " 'still',\n", + " 'air,',\n", + " 'only',\n", + " 'another',\n", + " 'loving',\n", + " 'look',\n", + " 'cast',\n", + " 'backward,',\n", + " '',\n", + " 'And',\n", + " 'then',\n", + " 'I',\n", + " 'shall',\n", + " 'stand',\n", + " 'among',\n", + " 'you,',\n", + " 'a',\n", + " 'seafarer',\n", + " 'among',\n", + " 'seafarers.',\n", + " 'And',\n", + " 'you,',\n", + " 'vast',\n", + " 'sea,',\n", + " 'sleepless',\n", + " 'mother,',\n", + " '',\n", + " 'Who',\n", + " 'alone',\n", + " 'are',\n", + " 'peace',\n", + " 'and',\n", + " 'freedom',\n", + " 'to',\n", + " 'the',\n", + " 'river',\n", + " 'and',\n", + " 'the',\n", + " 'stream,',\n", + " '',\n", + " 'Only',\n", + " 'another',\n", + " 'winding',\n", + " 'will',\n", + " 'this',\n", + " 'stream',\n", + " 'make,',\n", + " 'only',\n", + " 'another',\n", + " 'murmur',\n", + " 'in',\n", + " 'this',\n", + " 'glade,',\n", + " '',\n", + " 'And',\n", + " 'then',\n", + " 'shall',\n", + " 'I',\n", + " 'come',\n", + " 'to',\n", + " 'you,',\n", + " 'a',\n", + " 'boundless',\n", + " 'drop',\n", + " 'to',\n", + " 'a',\n", + " 'boundless',\n", + " 'ocean.',\n", + " '',\n", + " '*****',\n", + " '',\n", + " 'And',\n", + " 'as',\n", + " 'he',\n", + " 'walked',\n", + " 'he',\n", + " 'saw',\n", + " 'from',\n", + " 'afar',\n", + " 'men',\n", + " 'and',\n", + " 'women',\n", + " 'leaving',\n", + " 'their',\n", + " 'fields',\n", + " 'and',\n", + " 'their',\n", + " 'vineyards',\n", + " 'and',\n", + " 'hastening',\n", + " 'towards',\n", + " 'the',\n", + " 'city',\n", + " 'gates.',\n", + " '',\n", + " 'And',\n", + " 'he',\n", + " 'heard',\n", + " 'their',\n", + " 'voices',\n", + " 'calling',\n", + " 'his',\n", + " 'name,',\n", + " 'and',\n", + " 'shouting',\n", + " 'from',\n", + " 'field',\n", + " 'to',\n", + " 'field',\n", + " 'telling',\n", + " 'one',\n", + " 'another',\n", + " 'of',\n", + " 'the',\n", + " 'coming',\n", + " 'of',\n", + " 'his',\n", + " 'ship.',\n", + " '',\n", + " 'And',\n", + " 'he',\n", + " 'said',\n", + " 'to',\n", + " 'himself:',\n", + " '',\n", + " 'Shall',\n", + " 'the',\n", + " 'day',\n", + " 'of',\n", + " 'parting',\n", + " 'be',\n", + " 'the',\n", + " 'day',\n", + " 'of',\n", + " 'gathering?',\n", + " '',\n", + " 'And',\n", + " 'shall',\n", + " 'it',\n", + " 'be',\n", + " 'said',\n", + " 'that',\n", + " 'my',\n", + " 'eve',\n", + " 'was',\n", + " 'in',\n", + " 'truth',\n", + " 'my',\n", + " 'dawn?',\n", + " '',\n", + " 'And',\n", + " 'what',\n", + " 'shall',\n", + " 'I',\n", + " 'give',\n", + " 'unto',\n", + " 'him',\n", + " 'who',\n", + " 'has',\n", + " 'left',\n", + " 'his',\n", + " 'plough',\n", + " 'in',\n", + " 'midfurrow,',\n", + " 'or',\n", + " 'to',\n", + " 'him',\n", + " 'who',\n", + " 'has',\n", + " 'stopped',\n", + " 'the',\n", + " 'wheel',\n", + " 'of',\n", + " 'his',\n", + " 'winepress?',\n", + " 'Shall',\n", + " 'my',\n", + " 'heart',\n", + " 'become',\n", + " 'a',\n", + " 'tree',\n", + " 'heavy-laden',\n", + " 'with',\n", + " 'fruit',\n", + " 'that',\n", + " 'I',\n", + " 'may',\n", + " 'gather',\n", + " 'and',\n", + " 'give',\n", + " 'unto',\n", + " 'them?',\n", + " '',\n", + " 'And',\n", + " 'shall',\n", + " 'my',\n", + " 'desires',\n", + " 'flow',\n", + " 'like',\n", + " 'a',\n", + " 'fountain',\n", + " 'that',\n", + " 'I',\n", + " 'may',\n", + " 'fill',\n", + " 'their',\n", + " 'cups?',\n", + " '',\n", + " 'Am',\n", + " 'I',\n", + " 'a',\n", + " 'harp',\n", + " 'that',\n", + " 'the',\n", + " 'hand',\n", + " 'of',\n", + " 'the',\n", + " 'mighty',\n", + " 'may',\n", + " 'touch',\n", + " 'me,',\n", + " 'or',\n", + " 'a',\n", + " 'flute',\n", + " 'that',\n", + " 'his',\n", + " 'breath',\n", + " 'may',\n", + " 'pass',\n", + " 'through',\n", + " 'me?',\n", + " '',\n", + " 'A',\n", + " 'seeker',\n", + " 'of',\n", + " 'silences',\n", + " 'am',\n", + " 'I,',\n", + " 'and',\n", + " 'what',\n", + " 'treasure',\n", + " 'have',\n", + " 'I',\n", + " 'found',\n", + " 'in',\n", + " 'silences',\n", + " 'that',\n", + " 'I',\n", + " 'may',\n", + " 'dispense',\n", + " 'with',\n", + " 'confidence?',\n", + " '',\n", + " 'If',\n", + " 'this',\n", + " 'is',\n", + " 'my',\n", + " 'day',\n", + " 'of',\n", + " 'harvest,',\n", + " 'in',\n", + " 'what',\n", + " 'fields',\n", + " 'have',\n", + " 'I',\n", + " 'sowed',\n", + " 'the',\n", + " 'seed,',\n", + " 'and',\n", + " 'in',\n", + " 'what',\n", + " 'unremembered',\n", + " 'seasons?',\n", + " '',\n", + " 'If',\n", + " 'this',\n", + " 'indeed',\n", + " 'be',\n", + " 'the',\n", + " 'hour',\n", + " 'in',\n", + " 'which',\n", + " 'I',\n", + " 'lift',\n", + " 'up',\n", + " 'my',\n", + " 'lantern,',\n", + " 'it',\n", + " 'is',\n", + " 'not',\n", + " 'my',\n", + " 'flame',\n", + " 'that',\n", + " 'shall',\n", + " 'burn',\n", + " 'therein.',\n", + " '',\n", + " 'Empty',\n", + " 'and',\n", + " 'dark',\n", + " 'shall',\n", + " 'I',\n", + " 'raise',\n", + " 'my',\n", + " 'lantern,',\n", + " '',\n", + " 'And',\n", + " 'the',\n", + " 'guardian',\n", + " 'of',\n", + " 'the',\n", + " 'night',\n", + " 'shall',\n", + " 'fill',\n", + " 'it',\n", + " 'with',\n", + " 'oil',\n", + " 'and',\n", + " 'he',\n", + " 'shall',\n", + " 'light',\n", + " 'it',\n", + " 'also.',\n", + " '',\n", + " '*****',\n", + " '',\n", + " 'These',\n", + " 'things',\n", + " 'he',\n", + " 'said',\n", + " 'in',\n", + " 'words.',\n", + " 'But',\n", + " 'much',\n", + " 'in',\n", + " 'his',\n", + " 'heart',\n", + " 'remained',\n", + " 'unsaid.',\n", + " 'For',\n", + " 'he',\n", + " 'himself',\n", + " 'could',\n", + " 'not',\n", + " 'speak',\n", + " 'his',\n", + " 'deeper',\n", + " 'secret.',\n", + " '',\n", + " '*****',\n", + " '',\n", + " '[Illustration:',\n", + " '0020]',\n", + " '',\n", + " 'And',\n", + " 'when',\n", + " 'he',\n", + " 'entered',\n", + " 'into',\n", + " 'the',\n", + " 'city',\n", + " 'all',\n", + " 'the',\n", + " 'people',\n", + " 'came',\n", + " 'to',\n", + " 'meet',\n", + " 'him,',\n", + " 'and',\n", + " 'they',\n", + " 'were',\n", + " 'crying',\n", + " 'out',\n", + " 'to',\n", + " 'him',\n", + " 'as',\n", + " 'with',\n", + " 'one',\n", + " 'voice.',\n", + " '',\n", + " 'And',\n", + " 'the',\n", + " 'elders',\n", + " 'of',\n", + " 'the',\n", + " 'city',\n", + " 'stood',\n", + " 'forth',\n", + " 'and',\n", + " 'said:',\n", + " '',\n", + " 'Go',\n", + " 'not',\n", + " 'yet',\n", + " 'away',\n", + " 'from',\n", + " 'us.',\n", + " '',\n", + " 'A',\n", + " 'noontide',\n", + " 'have',\n", + " 'you',\n", + " 'been',\n", + " 'in',\n", + " 'our',\n", + " 'twilight,',\n", + " 'and',\n", + " 'your',\n", + " 'youth',\n", + " 'has',\n", + " 'given',\n", + " 'us',\n", + " 'dreams',\n", + " 'to',\n", + " 'dream.',\n", + " '',\n", + " 'No',\n", + " 'stranger',\n", + " 'are',\n", + " 'you',\n", + " 'among',\n", + " 'us,',\n", + " 'nor',\n", + " 'a',\n", + " 'guest,',\n", + " 'but',\n", + " 'our',\n", + " 'son',\n", + " 'and',\n", + " 'our',\n", + " 'dearly',\n", + " 'beloved.',\n", + " '',\n", + " 'Suffer',\n", + " 'not',\n", + " 'yet',\n", + " 'our',\n", + " 'eyes',\n", + " 'to',\n", + " 'hunger',\n", + " 'for',\n", + " 'your',\n", + " 'face.',\n", + " '',\n", + " '*****',\n", + " '',\n", + " 'And',\n", + " 'the',\n", + " 'priests',\n", + " 'and',\n", + " 'the',\n", + " 'priestesses',\n", + " 'said',\n", + " 'unto',\n", + " 'him:',\n", + " '',\n", + " 'Let',\n", + " 'not',\n", + " 'the',\n", + " 'waves',\n", + " 'of',\n", + " 'the',\n", + " 'sea',\n", + " 'separate',\n", + " 'us',\n", + " 'now,',\n", + " 'and',\n", + " 'the',\n", + " 'years',\n", + " 'you',\n", + " 'have',\n", + " 'spent',\n", + " 'in',\n", + " 'our',\n", + " 'midst',\n", + " 'become',\n", + " 'a',\n", + " 'memory.',\n", + " '',\n", + " 'You',\n", + " 'have',\n", + " 'walked',\n", + " 'among',\n", + " 'us',\n", + " 'a',\n", + " 'spirit,',\n", + " 'and',\n", + " 'your',\n", + " 'shadow',\n", + " 'has',\n", + " 'been',\n", + " 'a',\n", + " 'light',\n", + " 'upon',\n", + " 'our',\n", + " 'faces.',\n", + " '',\n", + " 'Much',\n", + " 'have',\n", + " 'we',\n", + " 'loved',\n", + " 'you.',\n", + " 'But',\n", + " 'speechless',\n", + " 'was',\n", + " 'our',\n", + " 'love,',\n", + " 'and',\n", + " 'with',\n", + " 'veils',\n", + " 'has',\n", + " 'it',\n", + " 'been',\n", + " 'veiled.',\n", + " '',\n", + " 'Yet',\n", + " 'now',\n", + " 'it',\n", + " 'cries',\n", + " 'aloud',\n", + " 'unto',\n", + " 'you,',\n", + " 'and',\n", + " 'would',\n", + " 'stand',\n", + " 'revealed',\n", + " 'before',\n", + " 'you.',\n", + " '',\n", + " 'And',\n", + " 'ever',\n", + " 'has',\n", + " 'it',\n", + " 'been',\n", + " 'that',\n", + " 'love',\n", + " ...]" + ] + }, + "execution_count": 56, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ - "# your code here" + "prophet_flat = [z for x in line for z in x]\n", + "prophet_flat" ] }, { @@ -190,9 +4322,20 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 59, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "False" + ] + }, + "execution_count": 59, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "def word_filter(x):\n", " '''\n", @@ -208,8 +4351,16 @@ " Input: 'John'\n", " Output: True\n", " '''\n", - " \n", + "\n", " word_list = ['and', 'the', 'a', 'an']\n", + " if x in word_list:\n", + " return False\n", + " else:\n", + " return True\n", + " \n", + " # your code here\n", + " \n", + "word_filter(\"a\")\n", " \n", " # your code here" ] @@ -221,6 +4372,1027 @@ "Use the `filter()` function to filter out the words speficied in the `word_filter()` function. Store the filtered list in the variable `prophet_filter`." ] }, + { + "cell_type": "code", + "execution_count": 58, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "['PROPHET',\n", + " '',\n", + " '|Almustafa,',\n", + " 'chosen',\n", + " 'beloved,',\n", + " 'who',\n", + " 'was',\n", + " 'dawn',\n", + " 'unto',\n", + " 'his',\n", + " 'own',\n", + " 'day,',\n", + " 'had',\n", + " 'waited',\n", + " 'twelve',\n", + " 'years',\n", + " 'in',\n", + " 'city',\n", + " 'of',\n", + " 'Orphalese',\n", + " 'for',\n", + " 'his',\n", + " 'ship',\n", + " 'that',\n", + " 'was',\n", + " 'to',\n", + " 'return',\n", + " 'bear',\n", + " 'him',\n", + " 'back',\n", + " 'to',\n", + " 'isle',\n", + " 'of',\n", + " 'his',\n", + " 'birth.',\n", + " '',\n", + " 'And',\n", + " 'in',\n", + " 'twelfth',\n", + " 'year,',\n", + " 'on',\n", + " 'seventh',\n", + " 'day',\n", + " 'of',\n", + " 'Ielool,',\n", + " 'month',\n", + " 'of',\n", + " 'reaping,',\n", + " 'he',\n", + " 'climbed',\n", + " 'hill',\n", + " 'without',\n", + " 'city',\n", + " 'walls',\n", + " 'looked',\n", + " 'seaward;',\n", + " 'he',\n", + " 'beheld',\n", + " 'his',\n", + " 'ship',\n", + " 'coming',\n", + " 'with',\n", + " 'mist.',\n", + " '',\n", + " 'Then',\n", + " 'gates',\n", + " 'of',\n", + " 'his',\n", + " 'heart',\n", + " 'were',\n", + " 'flung',\n", + " 'open,',\n", + " 'his',\n", + " 'joy',\n", + " 'flew',\n", + " 'far',\n", + " 'over',\n", + " 'sea.',\n", + " 'And',\n", + " 'he',\n", + " 'closed',\n", + " 'his',\n", + " 'eyes',\n", + " 'prayed',\n", + " 'in',\n", + " 'silences',\n", + " 'of',\n", + " 'his',\n", + " 'soul.',\n", + " '',\n", + " '*****',\n", + " '',\n", + " 'But',\n", + " 'as',\n", + " 'he',\n", + " 'descended',\n", + " 'hill,',\n", + " 'sadness',\n", + " 'came',\n", + " 'upon',\n", + " 'him,',\n", + " 'he',\n", + " 'thought',\n", + " 'in',\n", + " 'his',\n", + " 'heart:',\n", + " '',\n", + " 'How',\n", + " 'shall',\n", + " 'I',\n", + " 'go',\n", + " 'in',\n", + " 'peace',\n", + " 'without',\n", + " 'sorrow?',\n", + " 'Nay,',\n", + " 'not',\n", + " 'without',\n", + " 'wound',\n", + " 'in',\n", + " 'spirit',\n", + " 'shall',\n", + " 'I',\n", + " 'leave',\n", + " 'this',\n", + " 'city.',\n", + " 'Long',\n", + " 'were',\n", + " 'days',\n", + " 'of',\n", + " 'pain',\n", + " 'I',\n", + " 'have',\n", + " 'spent',\n", + " 'within',\n", + " 'its',\n", + " 'walls,',\n", + " 'long',\n", + " 'were',\n", + " 'nights',\n", + " 'of',\n", + " 'aloneness;',\n", + " 'who',\n", + " 'can',\n", + " 'depart',\n", + " 'from',\n", + " 'his',\n", + " 'pain',\n", + " 'his',\n", + " 'aloneness',\n", + " 'without',\n", + " 'regret?',\n", + " '',\n", + " 'Too',\n", + " 'many',\n", + " 'fragments',\n", + " 'of',\n", + " 'spirit',\n", + " 'have',\n", + " 'I',\n", + " 'scattered',\n", + " 'in',\n", + " 'these',\n", + " 'streets,',\n", + " 'too',\n", + " 'many',\n", + " 'are',\n", + " 'children',\n", + " 'of',\n", + " 'my',\n", + " 'longing',\n", + " 'that',\n", + " 'walk',\n", + " 'naked',\n", + " 'among',\n", + " 'these',\n", + " 'hills,',\n", + " 'I',\n", + " 'cannot',\n", + " 'withdraw',\n", + " 'from',\n", + " 'them',\n", + " 'without',\n", + " 'burden',\n", + " 'ache.',\n", + " '',\n", + " 'It',\n", + " 'is',\n", + " 'not',\n", + " 'garment',\n", + " 'I',\n", + " 'cast',\n", + " 'off',\n", + " 'this',\n", + " 'day,',\n", + " 'but',\n", + " 'skin',\n", + " 'that',\n", + " 'I',\n", + " 'tear',\n", + " 'with',\n", + " 'my',\n", + " 'own',\n", + " 'hands.',\n", + " '',\n", + " 'Nor',\n", + " 'is',\n", + " 'it',\n", + " 'thought',\n", + " 'I',\n", + " 'leave',\n", + " 'behind',\n", + " 'me,',\n", + " 'but',\n", + " 'heart',\n", + " 'made',\n", + " 'sweet',\n", + " 'with',\n", + " 'hunger',\n", + " 'with',\n", + " 'thirst.',\n", + " '',\n", + " '*****',\n", + " '',\n", + " 'Yet',\n", + " 'I',\n", + " 'cannot',\n", + " 'tarry',\n", + " 'longer.',\n", + " '',\n", + " 'The',\n", + " 'sea',\n", + " 'that',\n", + " 'calls',\n", + " 'all',\n", + " 'things',\n", + " 'unto',\n", + " 'her',\n", + " 'calls',\n", + " 'me,',\n", + " 'I',\n", + " 'must',\n", + " 'embark.',\n", + " '',\n", + " 'For',\n", + " 'to',\n", + " 'stay,',\n", + " 'though',\n", + " 'hours',\n", + " 'burn',\n", + " 'in',\n", + " 'night,',\n", + " 'is',\n", + " 'to',\n", + " 'freeze',\n", + " 'crystallize',\n", + " 'be',\n", + " 'bound',\n", + " 'in',\n", + " 'mould.',\n", + " '',\n", + " 'Fain',\n", + " 'would',\n", + " 'I',\n", + " 'take',\n", + " 'with',\n", + " 'me',\n", + " 'all',\n", + " 'that',\n", + " 'is',\n", + " 'here.',\n", + " 'But',\n", + " 'how',\n", + " 'shall',\n", + " 'I?',\n", + " '',\n", + " 'A',\n", + " 'voice',\n", + " 'cannot',\n", + " 'carry',\n", + " 'tongue',\n", + " 'lips',\n", + " 'that',\n", + " 'gave',\n", + " 'it',\n", + " 'wings.',\n", + " 'Alone',\n", + " 'must',\n", + " 'it',\n", + " 'seek',\n", + " 'ether.',\n", + " '',\n", + " 'And',\n", + " 'alone',\n", + " 'without',\n", + " 'his',\n", + " 'nest',\n", + " 'shall',\n", + " 'eagle',\n", + " 'fly',\n", + " 'across',\n", + " 'sun.',\n", + " '',\n", + " '*****',\n", + " '',\n", + " 'Now',\n", + " 'when',\n", + " 'he',\n", + " 'reached',\n", + " 'foot',\n", + " 'of',\n", + " 'hill,',\n", + " 'he',\n", + " 'turned',\n", + " 'again',\n", + " 'towards',\n", + " 'sea,',\n", + " 'he',\n", + " 'saw',\n", + " 'his',\n", + " 'ship',\n", + " 'approaching',\n", + " 'harbour,',\n", + " 'upon',\n", + " 'her',\n", + " 'prow',\n", + " 'mariners,',\n", + " 'men',\n", + " 'of',\n", + " 'his',\n", + " 'own',\n", + " 'land.',\n", + " '',\n", + " 'And',\n", + " 'his',\n", + " 'soul',\n", + " 'cried',\n", + " 'out',\n", + " 'to',\n", + " 'them,',\n", + " 'he',\n", + " 'said:',\n", + " '',\n", + " 'Sons',\n", + " 'of',\n", + " 'my',\n", + " 'ancient',\n", + " 'mother,',\n", + " 'you',\n", + " 'riders',\n", + " 'of',\n", + " 'tides,',\n", + " '',\n", + " 'How',\n", + " 'often',\n", + " 'have',\n", + " 'you',\n", + " 'sailed',\n", + " 'in',\n", + " 'my',\n", + " 'dreams.',\n", + " 'And',\n", + " 'now',\n", + " 'you',\n", + " 'come',\n", + " 'in',\n", + " 'my',\n", + " 'awakening,',\n", + " 'which',\n", + " 'is',\n", + " 'my',\n", + " 'deeper',\n", + " 'dream.',\n", + " '',\n", + " 'Ready',\n", + " 'am',\n", + " 'I',\n", + " 'to',\n", + " 'go,',\n", + " 'my',\n", + " 'eagerness',\n", + " 'with',\n", + " 'sails',\n", + " 'full',\n", + " 'set',\n", + " 'awaits',\n", + " 'wind.',\n", + " '',\n", + " 'Only',\n", + " 'another',\n", + " 'breath',\n", + " 'will',\n", + " 'I',\n", + " 'breathe',\n", + " 'in',\n", + " 'this',\n", + " 'still',\n", + " 'air,',\n", + " 'only',\n", + " 'another',\n", + " 'loving',\n", + " 'look',\n", + " 'cast',\n", + " 'backward,',\n", + " '',\n", + " 'And',\n", + " 'then',\n", + " 'I',\n", + " 'shall',\n", + " 'stand',\n", + " 'among',\n", + " 'you,',\n", + " 'seafarer',\n", + " 'among',\n", + " 'seafarers.',\n", + " 'And',\n", + " 'you,',\n", + " 'vast',\n", + " 'sea,',\n", + " 'sleepless',\n", + " 'mother,',\n", + " '',\n", + " 'Who',\n", + " 'alone',\n", + " 'are',\n", + " 'peace',\n", + " 'freedom',\n", + " 'to',\n", + " 'river',\n", + " 'stream,',\n", + " '',\n", + " 'Only',\n", + " 'another',\n", + " 'winding',\n", + " 'will',\n", + " 'this',\n", + " 'stream',\n", + " 'make,',\n", + " 'only',\n", + " 'another',\n", + " 'murmur',\n", + " 'in',\n", + " 'this',\n", + " 'glade,',\n", + " '',\n", + " 'And',\n", + " 'then',\n", + " 'shall',\n", + " 'I',\n", + " 'come',\n", + " 'to',\n", + " 'you,',\n", + " 'boundless',\n", + " 'drop',\n", + " 'to',\n", + " 'boundless',\n", + " 'ocean.',\n", + " '',\n", + " '*****',\n", + " '',\n", + " 'And',\n", + " 'as',\n", + " 'he',\n", + " 'walked',\n", + " 'he',\n", + " 'saw',\n", + " 'from',\n", + " 'afar',\n", + " 'men',\n", + " 'women',\n", + " 'leaving',\n", + " 'their',\n", + " 'fields',\n", + " 'their',\n", + " 'vineyards',\n", + " 'hastening',\n", + " 'towards',\n", + " 'city',\n", + " 'gates.',\n", + " '',\n", + " 'And',\n", + " 'he',\n", + " 'heard',\n", + " 'their',\n", + " 'voices',\n", + " 'calling',\n", + " 'his',\n", + " 'name,',\n", + " 'shouting',\n", + " 'from',\n", + " 'field',\n", + " 'to',\n", + " 'field',\n", + " 'telling',\n", + " 'one',\n", + " 'another',\n", + " 'of',\n", + " 'coming',\n", + " 'of',\n", + " 'his',\n", + " 'ship.',\n", + " '',\n", + " 'And',\n", + " 'he',\n", + " 'said',\n", + " 'to',\n", + " 'himself:',\n", + " '',\n", + " 'Shall',\n", + " 'day',\n", + " 'of',\n", + " 'parting',\n", + " 'be',\n", + " 'day',\n", + " 'of',\n", + " 'gathering?',\n", + " '',\n", + " 'And',\n", + " 'shall',\n", + " 'it',\n", + " 'be',\n", + " 'said',\n", + " 'that',\n", + " 'my',\n", + " 'eve',\n", + " 'was',\n", + " 'in',\n", + " 'truth',\n", + " 'my',\n", + " 'dawn?',\n", + " '',\n", + " 'And',\n", + " 'what',\n", + " 'shall',\n", + " 'I',\n", + " 'give',\n", + " 'unto',\n", + " 'him',\n", + " 'who',\n", + " 'has',\n", + " 'left',\n", + " 'his',\n", + " 'plough',\n", + " 'in',\n", + " 'midfurrow,',\n", + " 'or',\n", + " 'to',\n", + " 'him',\n", + " 'who',\n", + " 'has',\n", + " 'stopped',\n", + " 'wheel',\n", + " 'of',\n", + " 'his',\n", + " 'winepress?',\n", + " 'Shall',\n", + " 'my',\n", + " 'heart',\n", + " 'become',\n", + " 'tree',\n", + " 'heavy-laden',\n", + " 'with',\n", + " 'fruit',\n", + " 'that',\n", + " 'I',\n", + " 'may',\n", + " 'gather',\n", + " 'give',\n", + " 'unto',\n", + " 'them?',\n", + " '',\n", + " 'And',\n", + " 'shall',\n", + " 'my',\n", + " 'desires',\n", + " 'flow',\n", + " 'like',\n", + " 'fountain',\n", + " 'that',\n", + " 'I',\n", + " 'may',\n", + " 'fill',\n", + " 'their',\n", + " 'cups?',\n", + " '',\n", + " 'Am',\n", + " 'I',\n", + " 'harp',\n", + " 'that',\n", + " 'hand',\n", + " 'of',\n", + " 'mighty',\n", + " 'may',\n", + " 'touch',\n", + " 'me,',\n", + " 'or',\n", + " 'flute',\n", + " 'that',\n", + " 'his',\n", + " 'breath',\n", + " 'may',\n", + " 'pass',\n", + " 'through',\n", + " 'me?',\n", + " '',\n", + " 'A',\n", + " 'seeker',\n", + " 'of',\n", + " 'silences',\n", + " 'am',\n", + " 'I,',\n", + " 'what',\n", + " 'treasure',\n", + " 'have',\n", + " 'I',\n", + " 'found',\n", + " 'in',\n", + " 'silences',\n", + " 'that',\n", + " 'I',\n", + " 'may',\n", + " 'dispense',\n", + " 'with',\n", + " 'confidence?',\n", + " '',\n", + " 'If',\n", + " 'this',\n", + " 'is',\n", + " 'my',\n", + " 'day',\n", + " 'of',\n", + " 'harvest,',\n", + " 'in',\n", + " 'what',\n", + " 'fields',\n", + " 'have',\n", + " 'I',\n", + " 'sowed',\n", + " 'seed,',\n", + " 'in',\n", + " 'what',\n", + " 'unremembered',\n", + " 'seasons?',\n", + " '',\n", + " 'If',\n", + " 'this',\n", + " 'indeed',\n", + " 'be',\n", + " 'hour',\n", + " 'in',\n", + " 'which',\n", + " 'I',\n", + " 'lift',\n", + " 'up',\n", + " 'my',\n", + " 'lantern,',\n", + " 'it',\n", + " 'is',\n", + " 'not',\n", + " 'my',\n", + " 'flame',\n", + " 'that',\n", + " 'shall',\n", + " 'burn',\n", + " 'therein.',\n", + " '',\n", + " 'Empty',\n", + " 'dark',\n", + " 'shall',\n", + " 'I',\n", + " 'raise',\n", + " 'my',\n", + " 'lantern,',\n", + " '',\n", + " 'And',\n", + " 'guardian',\n", + " 'of',\n", + " 'night',\n", + " 'shall',\n", + " 'fill',\n", + " 'it',\n", + " 'with',\n", + " 'oil',\n", + " 'he',\n", + " 'shall',\n", + " 'light',\n", + " 'it',\n", + " 'also.',\n", + " '',\n", + " '*****',\n", + " '',\n", + " 'These',\n", + " 'things',\n", + " 'he',\n", + " 'said',\n", + " 'in',\n", + " 'words.',\n", + " 'But',\n", + " 'much',\n", + " 'in',\n", + " 'his',\n", + " 'heart',\n", + " 'remained',\n", + " 'unsaid.',\n", + " 'For',\n", + " 'he',\n", + " 'himself',\n", + " 'could',\n", + " 'not',\n", + " 'speak',\n", + " 'his',\n", + " 'deeper',\n", + " 'secret.',\n", + " '',\n", + " '*****',\n", + " '',\n", + " '[Illustration:',\n", + " '0020]',\n", + " '',\n", + " 'And',\n", + " 'when',\n", + " 'he',\n", + " 'entered',\n", + " 'into',\n", + " 'city',\n", + " 'all',\n", + " 'people',\n", + " 'came',\n", + " 'to',\n", + " 'meet',\n", + " 'him,',\n", + " 'they',\n", + " 'were',\n", + " 'crying',\n", + " 'out',\n", + " 'to',\n", + " 'him',\n", + " 'as',\n", + " 'with',\n", + " 'one',\n", + " 'voice.',\n", + " '',\n", + " 'And',\n", + " 'elders',\n", + " 'of',\n", + " 'city',\n", + " 'stood',\n", + " 'forth',\n", + " 'said:',\n", + " '',\n", + " 'Go',\n", + " 'not',\n", + " 'yet',\n", + " 'away',\n", + " 'from',\n", + " 'us.',\n", + " '',\n", + " 'A',\n", + " 'noontide',\n", + " 'have',\n", + " 'you',\n", + " 'been',\n", + " 'in',\n", + " 'our',\n", + " 'twilight,',\n", + " 'your',\n", + " 'youth',\n", + " 'has',\n", + " 'given',\n", + " 'us',\n", + " 'dreams',\n", + " 'to',\n", + " 'dream.',\n", + " '',\n", + " 'No',\n", + " 'stranger',\n", + " 'are',\n", + " 'you',\n", + " 'among',\n", + " 'us,',\n", + " 'nor',\n", + " 'guest,',\n", + " 'but',\n", + " 'our',\n", + " 'son',\n", + " 'our',\n", + " 'dearly',\n", + " 'beloved.',\n", + " '',\n", + " 'Suffer',\n", + " 'not',\n", + " 'yet',\n", + " 'our',\n", + " 'eyes',\n", + " 'to',\n", + " 'hunger',\n", + " 'for',\n", + " 'your',\n", + " 'face.',\n", + " '',\n", + " '*****',\n", + " '',\n", + " 'And',\n", + " 'priests',\n", + " 'priestesses',\n", + " 'said',\n", + " 'unto',\n", + " 'him:',\n", + " '',\n", + " 'Let',\n", + " 'not',\n", + " 'waves',\n", + " 'of',\n", + " 'sea',\n", + " 'separate',\n", + " 'us',\n", + " 'now,',\n", + " 'years',\n", + " 'you',\n", + " 'have',\n", + " 'spent',\n", + " 'in',\n", + " 'our',\n", + " 'midst',\n", + " 'become',\n", + " 'memory.',\n", + " '',\n", + " 'You',\n", + " 'have',\n", + " 'walked',\n", + " 'among',\n", + " 'us',\n", + " 'spirit,',\n", + " 'your',\n", + " 'shadow',\n", + " 'has',\n", + " 'been',\n", + " 'light',\n", + " 'upon',\n", + " 'our',\n", + " 'faces.',\n", + " '',\n", + " 'Much',\n", + " 'have',\n", + " 'we',\n", + " 'loved',\n", + " 'you.',\n", + " 'But',\n", + " 'speechless',\n", + " 'was',\n", + " 'our',\n", + " 'love,',\n", + " 'with',\n", + " 'veils',\n", + " 'has',\n", + " 'it',\n", + " 'been',\n", + " 'veiled.',\n", + " '',\n", + " 'Yet',\n", + " 'now',\n", + " 'it',\n", + " 'cries',\n", + " 'aloud',\n", + " 'unto',\n", + " 'you,',\n", + " 'would',\n", + " 'stand',\n", + " 'revealed',\n", + " 'before',\n", + " 'you.',\n", + " '',\n", + " 'And',\n", + " 'ever',\n", + " 'has',\n", + " 'it',\n", + " 'been',\n", + " 'that',\n", + " 'love',\n", + " 'knows',\n", + " 'not',\n", + " 'its',\n", + " 'own',\n", + " 'depth',\n", + " 'until',\n", + " 'hour',\n", + " 'of',\n", + " 'separation.',\n", + " '',\n", + " '*****',\n", + " '',\n", + " 'And',\n", + " 'others',\n", + " 'came',\n", + " 'also',\n", + " 'entreated',\n", + " 'him.',\n", + " 'But',\n", + " 'he',\n", + " 'answered',\n", + " 'them',\n", + " 'not.',\n", + " 'He',\n", + " 'only',\n", + " 'bent',\n", + " 'his',\n", + " 'head;',\n", + " 'those',\n", + " 'who',\n", + " 'stood',\n", + " 'near',\n", + " 'saw',\n", + " 'his',\n", + " 'tears',\n", + " 'falling',\n", + " 'upon',\n", + " 'his',\n", + " 'breast.',\n", + " '',\n", + " 'And',\n", + " 'he',\n", + " 'people',\n", + " 'proceeded',\n", + " 'towards',\n", + " 'great',\n", + " 'square',\n", + " 'before',\n", + " 'temple.',\n", + " '',\n", + " 'And',\n", + " 'there',\n", + " 'came',\n", + " 'out',\n", + " 'of',\n", + " 'sanctuary',\n", + " 'woman',\n", + " 'whose',\n", + " 'name',\n", + " 'was',\n", + " 'Almitra.',\n", + " 'And',\n", + " 'she',\n", + " 'was',\n", + " 'seeress.',\n", + " '',\n", + " 'And',\n", + " 'he',\n", + " 'looked',\n", + " 'upon',\n", + " 'her',\n", + " 'with',\n", + " 'exceeding',\n", + " 'tenderness,',\n", + " 'for',\n", + " 'it',\n", + " 'was',\n", + " 'she',\n", + " 'who',\n", + " 'had',\n", + " 'first',\n", + " 'sought',\n", + " 'believed',\n", + " 'in',\n", + " 'him',\n", + " 'when',\n", + " 'he',\n", + " 'had',\n", + " 'been',\n", + " 'but',\n", + " 'day',\n", + " 'in',\n", + " 'their',\n", + " 'city.',\n", + " 'And',\n", + " 'she',\n", + " 'hailed',\n", + " 'him,',\n", + " 'saying:',\n", + " '',\n", + " 'Prophet',\n", + " 'of',\n", + " 'God,',\n", + " 'in',\n", + " 'quest',\n", + " 'of',\n", + " 'uttermost,',\n", + " 'long',\n", + " 'have',\n", + " 'you',\n", + " 'searched',\n", + " 'distances',\n", + " 'for',\n", + " 'your',\n", + " 'ship.',\n", + " '',\n", + " 'And',\n", + " 'now',\n", + " 'your',\n", + " 'ship',\n", + " 'has',\n", + " ...]" + ] + }, + "execution_count": 58, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "prophet_filter = list(filter(word_filter, prophet_flat))\n", + "prophet_filter" + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -232,7 +5404,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 11, "metadata": {}, "outputs": [], "source": [ @@ -256,7 +5428,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 12, "metadata": {}, "outputs": [], "source": [ @@ -282,7 +5454,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 13, "metadata": {}, "outputs": [], "source": [ @@ -302,7 +5474,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 14, "metadata": {}, "outputs": [], "source": [ @@ -318,7 +5490,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 15, "metadata": {}, "outputs": [], "source": [ @@ -348,7 +5520,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 16, "metadata": {}, "outputs": [], "source": [ @@ -364,7 +5536,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 17, "metadata": {}, "outputs": [], "source": [ @@ -390,7 +5562,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 18, "metadata": {}, "outputs": [], "source": [ @@ -408,7 +5580,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 19, "metadata": {}, "outputs": [], "source": [ @@ -442,7 +5614,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.13" + "version": "3.11.6" }, "toc": { "base_numbering": 1,