Chapter 15 Positive and Not So Postive Lines

sentiment_lines  =  train %>%
  unnest_tokens(word, text) %>%
  inner_join(get_sentiments("afinn"), by = "word") %>%
  group_by(id) %>%
  summarize(sentiment = mean(score),
            words = n()) 

The sentences having top Ten positive sentiments are

id sentiment words text author len
id05517 5 1 The apartment was superb. EAP 25
id07548 5 1 My original soul seemed, at once, to take its flight from my body and a more than fiendish malevolence, gin nurtured, thrilled every fibre of my frame. EAP 151
id10196 5 1 “I thought so I knew it hurrah” vociferated Legrand, letting the negro go, and executing a series of curvets and caracols, much to the astonishment of his valet, who, arising from his knees, looked, mutely, from his master to myself, and then from myself to his master. EAP 269
id25394 5 1 “Superb physiologist” said the Westminster. EAP 43
id00752 4 1 Then I would hasten to my desk, weave the new found web of mind in firm texture and brilliant colours, leaving the fashioning of the material to a calmer moment. MWS 161
id00880 4 1 The Automaton does not invariably win the game. EAP 47
id01194 4 1 “Wonderful genius” said the Quarterly. EAP 38
id01391 4 1 With the quick sensibility peculiar to his temperament, he perceived his power in the brilliant circle to be on the wane. MWS 121
id01674 4 1 Ibid’s masterpiece, on the other hand, was the famous Op. HPL 57
id01902 4 1 The ‘Oil of Bob’ is the title of this masterpiece of eloquence and art. EAP 71
id01957 4 1 As soon as I sufficiently recovered my senses to comprehend the terrific predicament in which I stood or rather hung, I exerted all the power of my lungs to make that predicament known to the æronaut overhead. EAP 209
id02055 4 1 “Astonishingly,” said the second; “still quite a brilliant air, but art will do wonders. EAP 88
id02141 4 1 And now for the first time my memory records verbal discourse, Warren addressing me at length in his mellow tenor voice; a voice singularly unperturbed by our awesome surroundings. HPL 180
id02150 4 1 The general burst of terrific grandeur was all that I beheld. EAP 61
id03133 4 1 It appears to me a miracle of miracles that our enormous bulk is not swallowed up at once and forever. EAP 102
id04370 4 1 Phantasies such as these, presenting themselves at night, extended their terrific influence far into my waking hours. EAP 117
id04796 4 1 But here’s a funny thing. HPL 25
id04987 4 1 But his wife had said she found a funny tin thing in one of the beds when she fixed the rooms at noon, and maybe that was it. HPL 125
id05161 4 1 Some miracle might have produced it, yet the stages of the discovery were distinct and probable. MWS 96
id05414 4 1 Here he pointed to a fabulous creature of the artist, which one might describe as a sort of dragon with the head of an alligator. HPL 129
id05512 4 1 The starry sky, the sea, and every sight afforded by these wonderful regions seem still to have the power of elevating his soul from earth. MWS 139
id05994 4 1 Still others, including Joe himself, have theories too wild and fantastic for sober credence. HPL 93
id06517 4 1 The galvanic battery was applied, and he suddenly expired in one of those ecstatic paroxysms which, occasionally, it superinduces. EAP 130
id07409 4 1 Gilman came from Haverhill, but it was only after he had entered college in Arkham that he began to connect his mathematics with the fantastic legends of elder magic. HPL 166
id07919 4 1 There were secrets, said the peasants, which must not be uncovered; secrets that had lain hidden since the plague came to the children of Partholan in the fabulous years beyond history. HPL 185
id08642 4 1 But for one thing he would have been completely triumphant. MWS 59
id09430 4 1 At a terrific height directly above us, and upon the very verge of the precipitous descent, hovered a gigantic ship of, perhaps, four thousand tons. EAP 148
id10453 4 1 It is of a brilliant gold color about the size of a large hickory nut with two jet black spots near one extremity of the back, and another, somewhat longer, at the other. EAP 170
id10612 4 1 I heard of the slothful Asiatics, of the stupendous genius and mental activity of the Grecians, of the wars and wonderful virtue of the early Romans of their subsequent degenerating of the decline of that mighty empire, of chivalry, Christianity, and kings. MWS 257
id10741 4 1 I could scarcely contain my feelings of triumph. EAP 48
id11420 4 1 And thus were produced a multitude of gaudy and fantastic appearances. EAP 70
id12199 4 1 You never saw a more brilliant metallic lustre than the scales emit but of this you cannot judge till tomorrow. EAP 111
id12895 4 1 When rocked by the waves of the lake my spirits rose in triumph as a horseman feels with pride the motions of his high fed steed. MWS 129
id13372 4 2 The principle being discovered by which a machine can be made to play a game of chess, an extension of the same principle would enable it to win a game a farther extension would enable it to win all games that is, to beat any possible game of an antagonist. EAP 257
id14028 4 1 And at such moments was her beauty in my heated fancy thus it appeared perhaps the beauty of beings either above or apart from the earth the beauty of the fabulous Houri of the Turk. EAP 182
id14063 4 1 It is rumoured in Ulthar, beyond the river Skai, that a new king reigns on the opal throne in Ilek Vad, that fabulous town of turrets atop the hollow cliffs of glass overlooking the twilight sea wherein the bearded and finny Gnorri build their singular labyrinths, and I believe I know how to interpret this rumour. HPL 315
id14303 4 1 I displayed a peculiar erudition utterly unlike the fantastic, monkish lore over which I had pored in youth; and covered the flyleaves of my books with facile impromptu epigrams which brought up suggestions of Gay, Prior, and the sprightliest of the Augustan wits and rimesters. HPL 278
id14573 4 1 For your life you could not have found a fault with its wonderful proportion. EAP 77
id17723 4 1 Even Perdita will rejoice. MWS 26
id17854 4 1 In a moment of fantastic whim I whispered questions to the reddening ears; questions of other worlds of which the memory might still be present. HPL 144
id18191 4 1 In the midst of these reflections, as if dramatically arranged to intensify them, there fell near by a terrific bolt of lightning followed by the sound of sliding earth. HPL 169
id18900 4 1 Once a terrific flash and peal shook the frail house to its foundations, but the whisperer seemed not to notice it. HPL 115
id18936 4 1 Its productions and features may be without example, as the phenomena of the heavenly bodies undoubtedly are in those undiscovered solitudes. MWS 141
id19544 4 1 As he walked among other men he seemed encompassed with a heavenly halo that divided him from and lifted him above them. MWS 120
id19712 4 1 Thus it was that, by a master stroke of genius, I at length consummated my triumphs by “putting money in my purse,” and thus may be said really and fairly to have commenced that brilliant and eventful career which rendered me illustrious, and which now enables me to say, with Chateaubriand, “I have made history” “I’ai fait l’histoire.” EAP 337
id19994 4 1 The resources of his mind on this occasion were truly astonishing: his conversation was full of imagination; and very often, in imitation of the Persian and Arabic writers, he invented tales of wonderful fancy and passion. MWS 222
id20925 4 1 Wonderful likewise were the gardens made by Zokkar the olden king. HPL 66
id20938 4 1 A moment more and the old walls again met my sight, while over them hovered a murky cloud; fragments of buildings whirled above, half seen in smoke, while flames burst out beneath, and continued explosions filled the air with terrific thunders. MWS 244
id21073 4 1 The whole cohort now remained at a standstill, and as the torches faded I watched what I thought were fantastic shadows outlined in the sky by the spectral luminosity of the Via Lactea as it flowed through Perseus, Cassiopeia, Cepheus, and Cygnus. HPL 247
id21163 4 1 Then they all sprang at him and tore him to pieces before my eyes, bearing the fragments away into that subterranean vault of fabulous abominations. HPL 148
id21978 4 1 But more wonderful than the lore of old men and the lore of books is the secret lore of ocean. HPL 94
id22192 4 1 Overjoyed at this discovery, he hastened to the house, which was situated in a mean street near the Reuss. MWS 106
id22670 4 1 Only at the twelfth was the triumph complete. EAP 45
id22754 4 1 While they were talking Desrochers dropped in to say that he had heard a terrific clattering overhead in the dark small hours. HPL 126
id23837 4 1 I frequently engaged him in play, and contrived, with the gambler’s usual art, to let him win considerable sums, the more effectually to entangle him in my snares. EAP 163
id24090 4 1 Curtis Whateley was only just regaining consciousness when the Arkham men came slowly down the mountain in the beams of a sunlight once more brilliant and untainted. HPL 165
id24735 4 1 And yet I saw them in a limitless stream flopping, hopping, croaking, bleating surging inhumanly through the spectral moonlight in a grotesque, malignant saraband of fantastic nightmare. HPL 186
id27441 4 1 I will therefore guess even;’ he guesses even, and wins. EAP 56
id27698 4 1 Yet there have been many and wonderful automata. EAP 48

The sentences having top Ten NOT so positive sentiments are

## Joining, by = "id"
id sentiment words text author len
id05489 -5 1 We shall see that at which dogs howl in the dark, and that at which cats prick up their ears after midnight. HPL 108
id16045 -5 1 How did he know the time when Nahab and her acolyte were due to bear the brimming bowl which would follow the black cock and the black goat? HPL 140
id00307 -4 1 It rang on my ears long and heavily; the mountains re echoed it, and I felt as if all hell surrounded me with mockery and laughter. MWS 131
id00476 -4 1 and was he not consequently damned? EAP 35
id02649 -4 1 You have given me new wants and now your trifle with me as if my heart were as whole as yours, as if I were not in truth a shorn lamb thrust out on the bleak hill side, tortured by every blast. MWS 193
id06874 -4 1 The very beauty of the Grecian climate, during the season of spring, added torture to her sensations. MWS 101
id08709 -4 1 “Ass” said the fourth. EAP 22
id09729 -4 1 There was a secret which even torture could not extract. HPL 56
id11422 -4 1 My companion looked eagerly from one bed to the other, till at the end of the ward she espied, on a wretched bed, a squalid, haggard creature, writhing under the torture of disease. MWS 181
id11965 -4 1 Perdita, who then resided with Evadne, saw the torture that Adrian endured. MWS 75
id15587 -4 1 Raymond staggered forth from this scene, as a man might do, who had been just put to the torture, and looked forward to when it would be again inflicted. MWS 153
id16281 -4 1 I heard many things in hell. EAP 28
id16535 -4 1 I might be driven into the wide Atlantic and feel all the tortures of starvation or be swallowed up in the immeasurable waters that roared and buffeted around me. MWS 162
id16780 -4 1 The tortures endured, however, were indubitably quite equal for the time, to those of actual sepulture. EAP 103
id21653 -4 1 I don’t believe anybody since Goya could put so much of sheer hell into a set of features or a twist of expression. HPL 115
id21796 -4 1 This idea was torture to him. MWS 29
id22475 -4 1 In the former, the torture of meditation was excessive in the latter, supreme. EAP 78
id22542 -4 1 Molehills . . . the damned place must be honeycombed . . . HPL 58
id23474 -4 1 “The full moon damn ye ye . . . HPL 31