Bor Hodošček commited on
Commit
33dc3b3
·
1 Parent(s): 7614360

feat: initial version

Browse files
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.12-slim
2
+ COPY --from=ghcr.io/astral-sh/uv:0.8.3 /uv /bin/uv
3
+
4
+ RUN useradd -m -u 1000 user
5
+ ENV PATH="/home/user/.local/bin:$PATH"
6
+ ENV UV_SYSTEM_PYTHON=1
7
+
8
+ WORKDIR /app
9
+
10
+ RUN mkdir -p /app && chown -R user:user /app
11
+
12
+ COPY --chown=user ./pyproject.toml ./uv.lock ./app.py ./*.csv /app
13
+
14
+ RUN chmod -R u+w /app
15
+
16
+ USER user
17
+
18
+ RUN uv sync
19
+
20
+ CMD ["uv", "run", "marimo", "run", "app.py", "--no-sandbox", "--include-code", "--host", "0.0.0.0", "--port", "7860"]
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- title: Lr Text Classification
3
  emoji: 🐨
4
  colorFrom: indigo
5
  colorTo: pink
 
1
  ---
2
+ title: LR Text Classification
3
  emoji: 🐨
4
  colorFrom: indigo
5
  colorTo: pink
a-merritt_the-moon-pool.csv ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ text,label
2
+ "I the thing on the Moon Path for two month I have be on the d’Entrecasteaux Islands gather datum for the conclude chapter of my book upon the flora of the volcanic island of the South Pacific . the day before I have reach Port Moresby and have see my specimen safely store on board the Southern Queen . as I sit on the upper deck I think , with homesick mind , of the long league between I and Melbourne , and the long one between Melbourne and New York . it be one of Papua ’s yellow morning",merritt
3
+ "when she show herself in her sombrest , most baleful mood . the sky be smoulder ochre . over the island brood a spirit sullen , alien , implacable , fill with the threat of latent , malefic force wait to be unleash . it seem an emanation out of the untamed , sinister heart of Papua herself — sinister even when she smile . and now and then , on the wind , come a breath from virgin jungle , laden with unfamiliar odour , mysterious and menacing . it be on such morning that Papua whisper to you",merritt
4
+ "of her immemorial ancientness and of her power . and , as every white man must , I fight against her spell . while I struggle I see a tall figure stride down the pier ; a kapa - kapa boy follow swinge a new valise . there be something familiar about the tall man . as he reach the gangplank he look up straight into my eye , stare for a moment , then wave his hand . and now I know he . it be Dr. David Throckmartin—“Throck "" he be to I always , one of my",merritt
5
+ "old friend and , as well , a mind of the first water whose power and achievement be for I a constant inspiration as they be , I know , for score other . coincidentally with my recognition come a shock of surprise , definitely — unpleasant . it be Throckmartin — but about he be something disturbingly unlike the man I have know long so well and to whom and to whose little party I have bid farewell less than a month before I myself have sail for these sea . he have marry only a few week before",merritt
6
+ ", Edith , the daughter of Professor William Frazier , young by at least a decade than he but at one with he in his ideal and as much in love , if it be possible , as Throckmartin . by virtue of her father ’s training a wonderful assistant , by virtue of her own sweet , sound heart a — I use the word in its olden sense — lover . with his equally youthful associate Dr. Charles Stanton and a swedish woman , Thora Halversen , who have be Edith Throckmartin ’s nurse from babyhood , they",merritt
7
+ "have set forth for the Nan - Matal , that extraordinary group of island ruin cluster along the eastern shore of Ponape in the Carolines . I know that he have plan to spend at least a year among these ruin , not only of Ponape but of Lele — twin centre of a colossal riddle of humanity , a weird flower of civilization that blossom age before the seed of Egypt be sow ; of whose art we know little enough and of whose science nothing . he have carry with he unusually complete equipment for the work he",merritt
8
+ "have expect to do and which , he hope , would be his monument . what then have bring Throckmartin to Port Moresby , and what be that change I have sense in he ? hurry down to the low deck I find he with the purser . as I speak he turn , thrust out to I an eager hand — and then I see what be that difference that have so move I . he know , of course by my silence and involuntary shrink the shock my close look have give I . his eye fill ;",merritt
9
+ "he turn brusquely from the purser , hesitate — then hurry off to his stateroom . ""   ' e look rather queer — eh ? "" say the purser . "" know ' I m well , sir ? seem to ' ave give you quite a start . "" I make some reply and go slowly up to my chair . there I sit , compose my mind and try to define what it be that have shake I so . now it come to I . the old Throckmartin be on the eve of his venture just",merritt
10
+ "turn forty , lithe , erect , muscular ; his control expression one of enthusiasm , of intellectual keenness , of — what shall I say — expectant search . his always question brain have stamp its vigor upon his face . but the Throckmartin I have see below be one who have bear some scare shock of mingled rapture and horror ; some soul cataclysm that in its climax have remould , deep from within , his face , set on it seal of wed ecstasy and despair ; as though indeed these two have come to he hand",merritt
11
+ "in hand , take possession of he and depart leave behind , ineradicably , their link shadow ! yes — it be that which appal . for how could rapture and horror , Heaven and Hell mix , clasp hand — kiss ? yet these be what in close embrace lie on Throckmartin ’s face ! deep in thought , subconsciously with relief , I watch the shoreline sink behind ; welcome the touch of the wind of the free sea . I have hope , and within the hope be an inexplicable shrinking that I would meet Throckmartin at",merritt
12
+ "lunch . he do not come down , and I be sensible of deliverance within my disappointment . all that afternoon I lounge about uneasily but still he keep to his cabin — and within I be no strength to summon he . nor do he appear at dinner . Dusk and night fall swiftly . I be warm and go back to my deck - chair . the Southern Queen be roll to a disquieting swell and I have the place to myself . over the heaven be a canopy of cloud , glow faintly and testify to the",merritt
13
+ "moon ride behind it . there be much phosphorescence . fitfully before the ship and at her side arise those strange little swirl of mist that swirl up from the Southern Ocean like breath of sea monster , whirl for an instant and disappear . suddenly the deck door open and through it come Throckmartin . he pause uncertainly , look up at the sky with a curiously eager , intent gaze , hesitate , then close the door behind he . "" Throck , "" I call . "" come ! it ’ goodwin . "" he make his",merritt
14
+ "way to I . "" Throck , "" I say , waste no time in preliminary . "" what ’ wrong ? can I help you ? "" I feel his body grow tense . "" I ’m go to Melbourne , Goodwin , "" he answer . "" I need a few thing — need they urgently . and more man — white man — "" he stop abruptly ; rise from his chair , gaze intently toward the north . I follow his gaze . far , far away the moon have break through the cloud . almost",merritt
15
+ "on the horizon , you could see the faint luminescence of it upon the smooth sea . the distant patch of light quiver and shake . the cloud thicken again and it be go . the ship race on southward , swiftly . Throckmartin drop into his chair . he light a cigarette with a hand that tremble ; then turn to I with abrupt resolution . "" goodwin , "" he say . "" I do need help . if ever man need it , I do . goodwin — can you imagine yourself in another world , alien",merritt
16
+ ", unfamiliar , a world of terror , whose unknown joy be its great terror of all ; you all alone there , a stranger ! as such a man would need help , so I need — "" he pause abruptly and arise ; the cigarette drop from his finger . the moon have again break through the cloud , and this time much near . not a mile away be the patch of light that it throw upon the wave . back of it , to the rim of the sea be a lane of moonlight ; a",merritt
17
+ "gigantic gleam serpent race over the edge of the world straight and surely toward the ship . Throckmartin stiffen to it as a pointer do to a hidden covey . to I from he pulse a thrill of horror — but horror tinge with an unfamiliar , an infernal joy . it come to I and pass away — leave I tremble with its shock of bitter sweet . he bend forward , all his soul in his eye . the moon path sweep close , close still . it be now less than half a mile away . from",merritt
18
+ "it the ship flee — almost as though pursue . down upon it , swift and straight , a radiant torrent cleave the wave , race the moon stream . "" good God ! "" breathe Throckmartin , and if ever the word be a prayer and an invocation they be . and then , for the first time — I see — it ! the moon path stretch to the horizon and be border by darkness . it be as though the cloud above have be part to form a lane — draw aside like curtain or as the",merritt
19
+ "water of the Red Sea be hold back to let the host of Israel through . on each side of the stream be the black shadow cast by the fold of the high canopy . and straight as a road between the opaque wall gleam , shimmer , and dance the shine , racing , rapid of the moonlight . far , it seem immeasurably far , along this stream of silver fire I sense , rather than see , something come . it draw first into sight as a deep glow within the light . on and on it",merritt
20
+ "sweep toward we — an opalescent mistiness that speed with the suggestion of some wing creature in arrowed flight . dimly there creep into my mind memory of the Dyak legend of the wing messenger of Buddha — the Akla bird whose feather be weave of the moon ray , whose heart be a live opal , whose wing in flight echo the crystal clear music of the white star — but whose beak be of frozen flame and shred the soul of unbeliever . close it draw and now there come to I sweet , insistent tinkling — like",merritt
21
+ "pizzicati on violin of glass ; crystal clear ; diamond melt into sound ! now the thing be close to the end of the white path ; close up to the barrier of darkness still between the ship and the sparkling head of the moon stream . now it beat up against that barrier as a bird against the bar of its cage . it whirl with shimmering plume , with swirl of lacy light , with spiral of living vapour . it hold within it odd , unfamiliar gleam as of shift mother - of - pearl . coruscation",merritt
22
+ "and glitter atom drift through it as though it draw they from the ray that bathe it . Nearer and nearer it come , bear on the sparkle wave , and ever thin shrink the protect wall of shadow between it and we . within the mistiness be a core , a nucleus of intenser light — veined , opaline , effulgent , intensely alive . and above it , tangle in the plume and spiral that throb and whirl be seven glow light . through all the incessant but strangely order movement of the — thing — these light",merritt
23
+ "hold firm and steady . they be seven — like seven little moon . one be of a pearly pink , one of a delicate nacreous blue , one of lambent saffron , one of the emerald you see in the shallow water of tropic isle ; a deathly white ; a ghostly amethyst ; and one of the silver that be see only when the fly fish leap beneath the moon . the tinkle music be loud still . it pierce the ear with a shower of tiny lance ; it make the heart beat jubilantly — and check",merritt
24
+ "it dolorously . it close the throat with a throb of rapture and grip it tight with the hand of infinite sorrow ! come to I now a murmur cry , still the crystal note . it be articulate — but as though from something utterly foreign to this world . the ear take the cry and translate with conscious labour into the sound of Earth . and even as it compass , the brain shrink from it irresistibly , and simultaneously it seem reach toward it with irresistible eagerness . throckmartin strode toward the front of the deck ,",merritt
25
+ "straight toward the vision , now but a few yard away from the stern . his face have lose all human semblance . utter agony and utter ecstasy — there they be side by side , not resist each other ; unholy inhuman companion blend into a look that none of God ’s creature should wear — and deep , deep as his soul ! a devil and a God dwelling harmoniously side by side ! so must Satan , newly fall , still divine , see heaven and contemplate hell , have appear . and then — swiftly the",merritt
26
+ moon path fade ! the cloud sweep over the sky as though a hand have draw they together . up from the south come a roaring squall . as the moon vanish what I have see vanish with it — blot out as an image on a magic lantern ; the tinkling cease abruptly — leave a silence like that which follow an abrupt thunder clap . there be nothing about we but silence and blackness ! through I pass a trembling as one who have stand on the very verge of the gulf wherein the man of the Louisades,merritt
27
+ "say lurk the fisher of the soul of man , and have be pluck back by sheer chance . Throckmartin pass an arm around I . "" it be as I think , "" he say . in his voice be a new note ; the calm certainty that have sweep aside a wait terror of the unknown . "" now I know ! come with I to my cabin , old friend . for now that you too have see I can tell you”—he hesitated—“what it be you see , "" he end . as we pass through the",merritt
28
+ "door we meet the ship ’s first officer . Throckmartin compose his face into at least a semblance of normality . "" go to have much of a storm ? "" he ask . "" yes , "" say the mate . "" probably all the way to Melbourne . "" Throckmartin straighten as though with a new thought . he grip the officer ’s sleeve eagerly . "" you mean at least cloudy weather — for”—he hesitated—“for the next three night , say ? "" "" and for three more , "" reply the mate . "" thank God",merritt
29
+ "! "" cry Throckmartin , and I think I never hear such relief and hope as be in his voice . the sailor stand amazed . "" thank God ? "" he repeat . "" thank — what d’ye mean ? "" but Throckmartin be move onward to his cabin . I start to follow . the first officer stop I . "" your friend , "" he say , "" be he ill ? "" "" the sea ! "" I answer hurriedly . "" he ’s not use to it . I be go to look after he",merritt
30
+ ". "" doubt and disbelief be plain in the seaman ’s eye but I hurry on . for I know now that Throckmartin be ill indeed — but with a sickness the ship ’s doctor nor any other could heal . II "" dead ! all dead ! "" he be sit , face in hand , on the side of his berth as I enter . he have take off his coat . "" Throck , "" I cry . "" what be it ? what be you fly from , man ? where be your wife — and",merritt
31
+ "Stanton ? "" "" dead ! "" he reply monotonously . "" dead ! all dead ! "" then as I recoil from him—“all dead . Edith , Stanton , Thora — dead — or bad . and Edith in the Moon Pool — with they — draw by what you see on the moon path — that have put its brand upon I — and follow I ! "" he rip open his shirt . "" look at this , "" he say . around his chest , above his heart , the skin be white as pearl .",merritt
32
+ "this whiteness be sharply define against the healthy tint of the body . it circle he with an even cincture about two inch wide . "" burn it ! "" he say , and offer I his cigarette . I draw back . he gesture — peremptorily . I press the glowing end of the cigarette into the ribbon of white flesh . he do not flinch nor be there odour of burn nor , as I draw the little cylinder away , any mark upon the whiteness . "" feel it ! "" he command again . I place",merritt
33
+ "my finger upon the band . it be cold — like frozen marble . he draw his shirt around he . "" two thing you have see , "" he say . "" it — and its mark . see , you must believe my story . goodwin , I tell you again that my wife be dead — or bad — I do not know ; the prey of — what you see ; so , too , be Stanton ; so Thora . how — "" tear roll down the seared face . "" why do God let",merritt
34
+ "it conquer we ? why do he let it take my Edith ? "" he cry in utter bitterness . "" be there thing strong than God , do you think , Walter ? "" I hesitate . "" be there ? be there ? "" his wild eye search I . "" I do not know just how you define God , "" I manage at last through my astonishment to make answer . "" if you mean the will to know , work through science — "" he wave I aside impatiently . "" science , "" he",merritt
35
+ "say . "" what be our science against — that ? or against the science of whatever devil that make it — or make the way for it to enter this world of our ? "" with an effort he regain control . "" goodwin , "" he say , "" do you know at all of the ruin on the Carolines ; the cyclopean , megalithic city and harbour of Ponape and Lele , of Kusaie , of Ruk and Hogolu , and a score of other islet there ? particularly , do you know of the Nan -",merritt
36
+ "Matal and the Metalanim ? "" "" of the Metalanim I have hear and see photograph , "" I say . "" they call it , do n’t they , the Lost Venice of the Pacific ? "" "" look at this map , "" say Throckmartin . "" that , "" he go on , "" be Christian ’s chart of Metalanim harbour and the Nan - Matal . do you see the rectangle mark Nan - Tauach ? "" "" yes , "" I say . "" there , "" he say , "" under those wall be",merritt
37
+ "the Moon Pool and the seven gleam light that raise the Dweller in the Pool , and the altar and shrine of the dweller . and there in the Moon Pool with it lie Edith and Stanton and Thora . "" "" the Dweller in the Moon Pool ? "" I repeat half - incredulously . "" the thing you see , "" say Throckmartin solemnly . a solid sheet of rain sweep the port , and the Southern Queen begin to roll on the rise swell . Throckmartin draw another deep breath of relief , and draw aside a",merritt
38
+ "curtain peer out into the night . its blackness seem to reassure he . at any rate , when he sit again he be entirely calm . "" there be no more wonderful ruin in the world , "" he begin almost casually . "" they take in some fifty islet and cover with their intersect canal and lagoon about twelve square mile . who build they ? none know . when be they build ? age before the memory of present man , that be sure . ten thousand , twenty thousand , a hundred thousand year ago —",merritt
39
+ "the last more likely . "" all these islet , Walter , be square , and their shore be frown seawall of gigantic basalt block hew and put in place by the hand of ancient man . each inner waterfront be face with a terrace of those basalt block which stand out six foot above the shallow canal that meand between they . on the islet behind these wall be time - shatter fortress , palace , terrace , pyramid ; immense courtyard strew with ruin — and all so old that they seem to wither the eye of those",merritt
40
+ "who look on they . "" there have be a great subsidence . you can stand out of Metalanim harbour for three mile and look down upon the top of similar monolithic structure and wall twenty foot below you in the water . "" and all about , string on their canal , be the bulwarked islet with their enigmatic wall peer through the dense growth of mangrove — dead , desert for incalculable age ; shun by those who live near . "" you as a botanist be familiar with the evidence that a vast shadowy continent exist in",merritt
41
+ "the Pacific — a continent that be not rent asunder by volcanic force as be that legendary one of Atlantis in the Eastern ocean.1 my work in Java , in Papua , and in the Ladrones have set my mind upon this Pacific lose land . just as the Azores be believe to be the last high peak of Atlantis , so hint come to I steadily that Ponape and Lele and their basalt bulwark islet be the last point of the slowly sink western land cling still to the sunlight , and have be the last refuge and sacred",merritt
42
+ "place of the ruler of that race which have lose their immemorial home under the rise water of the Pacific . "" I believe that under these ruin I might find the evidence that I seek . "" my — my wife and I have talk before we be married of make this our great work . after the honeymoon we prepare for the expedition . Stanton be as enthusiastic as ourselves . we sail , as you know , last May for fulfilment of my dream . "" at Ponape we select , not without difficulty , workman to",merritt
43
+ "help we — digger . I have to make extraordinary inducement before I could get together my force . their belief be gloomy , these Ponapeans . they people their swamp , their forest , their mountain , and shore , with malignant spirit — ani they call they . and they be afraid — bitterly afraid of the isle of ruin and what they think the ruin hide . I do not wonder — now ! "" when they be tell where they be to go , and how long we expect to stay , they murmur . those",merritt
44
+ "who , at last , be tempt make what I think then merely a superstitious proviso that they be to be allow to go away on the three night of the full moon . would to God we have heed they and go too ! "" "" we pass into Metalanim harbour . off to our left — a mile away arise a massive quadrangle . its wall be all of forty foot high and hundred of foot on each side . as we draw by , our native grow very silent ; watch it furtively , fearfully . I",merritt
45
+ "know it for the ruin that be call Nan - Tauach , the ' place of frown wall . ' and at the silence of my man I recall what Christian have write of this place ; of how he have come upon its ' ancient platform and tetragonal enclosure of stonework ; its wonder of tortuous alleyway and labyrinth of shallow canal ; grim masse of stonework peer out from behind verdant screen ; cyclopean barricade , ' and of how , when he have turn ' into its ghostly shadow , straightway the merriment of guide be hush",merritt
46
+ "and conversation die down to whisper . '   "" he be silent for a little time . "" of course I want to pitch our camp there , "" he go on again quietly , "" but I soon give up that idea . the native be panic - stricken — threaten to turn back . ' no , ' they say , ' too great ani there . we go to any other place — but not there . ' "" we finally pick for our base the islet call Uschen - Tau . it be close to",merritt
47
+ "the isle of desire , but far enough away from it to satisfy our man . there be an excellent camping - place and a spring of fresh water . we pitch our tent , and in a couple of day the work be in full swing . "" iii the Moon Rock "" I do not intend to tell you now , "" Throckmartin continue , "" the result of the next two week , nor of what we find . later — if I be allow , I will lay all that before you . it be sufficient",merritt
48
+ "to say that at the end of those two week I have find confirmation for many of my theory . "" the place , for all its decay and desolation , have not infect we with any touch of morbidity — that be not Edith , Stanton , or myself . but Thora be very unhappy . she be a swede , as you know , and in her blood run the belief and superstition of the Northland — some of they so strangely akin to those of this far southern land ; belief of spirit of mountain and forest",merritt
49
+ "and water werewolf and being malign . from the first she show a curious sensitivity to what , I suppose , may be call the ' influence ' of the place . she say it ' smell ' of ghost and warlock . "" I laugh at she then — "" two week slip by , and at their end the spokesman for our native come to we . the next night be the full of the moon , he say . he remind I of my promise . they would go back to their village in the morning ;",merritt
50
+ "they would return after the third night , when the moon have begin to wane . they leave we sundry charm for our ' protection , ' and solemnly caution we to keep as far away as possible from Nan - Tauach during their absence . half - exasperate , half - amuse I watch they go . "" no work could be do without they , of course , so we decide to spend the day of their absence junket about the southern islet of the group . we mark down several spot for subsequent exploration , and on",merritt
51
+ "the morning of the third day set forth along the east face of the breakwater for our camp on Uschen - Tau , plan to have everything in readiness for the return of our man the next day . "" we land just before dusk , tired and ready for our cot . it be only a little after ten o’clock that Edith awaken I . ""   ' listen ! ' she say . ' lean over with your ear close to the ground ! ' "" I do so , and seem to hear , far , far",merritt
52
+ "below , as though come up from great distance , a faint chanting . it gather strength , die down , end ; begin , gather volume , fade away into silence . ""   ' it ’ the wave roll on rock somewhere , ' I say . ' we ’re probably over some ledge of rock that carry the sound . ' ""   ' it ’ the first time I ’ve hear it , ' reply my wife doubtfully . we listen again . then through the dim rhythm , deep beneath we , another sound come",merritt
53
+ ". it drift across the lagoon that lie between we and Nan - Tauach in little tinkle wave . it be music — of a sort ; I will not describe the strange effect it have upon I . you ’ve feel it — "" "" you mean on the deck ? "" I ask . Throckmartin nod . "" I go to the flap of the tent , "" he continue , "" and peer out . as I do so Stanton lift his flap and walk out into the moonlight , look over to the other islet and",merritt
54
+ "listening . I call to he . ""   ' that ’ the queer sound ! ' he say . he listen again . ' Crystalline ! like little note of translucent glass . like the bell of crystal on the sistrum of Isis at Dendarah Temple , ' he add half - dreamily . we gaze intently at the island . suddenly , on the seawall , move slowly , rhythmically , we see a little group of light . Stanton laugh . ""   ' the beggar ! ' he exclaim . ' that ’ why they want",merritt
55
+ "to get away , be it ? do not you see , Dave , it ’ some sort of a festival — rite of some kind that they hold during the full moon ! that ’s why they be so eager to have we keep away , too . ' "" the explanation seem good . I feel a curious sense of relief , although I have not be sensible of any oppression . ""   ' let ’s slip over , ' suggest Stanton — but I would not . ""   ' they ’re a difficult lot as",merritt
56
+ "it be , ' I say . ' if we break into one of their religious ceremony they ’ll probably never forgive we . let ’s keep out of any family party where we have not be invite . ' ""   ' that ’s so , ' agree Stanton . "" the strange tinkling rise and fall , rise and fall — ""   ' there ’ something — something very unsettling about it , ' say Edith at last soberly . ' I wonder what they make those sound with . they frighten I half to death ,",merritt
57
+ "and , at the same time , they make I feel as though some enormous rapture be just around the corner . ' ""   ' it ’ devilish uncanny ! ' break in Stanton . "" and as he speak the flap of Thora ’s tent be raise and out into the moonlight stride the old swede . she be the great Norse type — tall , deep - breast , mould on the old viking line . her sixty year have slip from she . she look like some ancient priestess of Odin . "" she stand there",merritt
58
+ ", her eye wide , brilliant , stare . she thrust her head forward toward Nan - Tauach , regard the move light ; she listen . suddenly she raise her arm and make a curious gesture to the moon . it be — an archaic — movement ; she seem to drag it from remote antiquity — yet in it be a strange suggestion of power . twice she repeat this gesture and — the tinkling die away ! she turn to we . ""   ' go ! ' she say , and her voice seem to come",merritt
59
+ "from far distance . ' go from here — and quickly ! go while you may . it have call — ' she point to the islet . ' it know you be here . it wait ! ' she wail . ' it beckon — the — the — ' "" she fall at Edith ’s foot , and over the lagoon come again the tinkling , now with a quick note of jubilance — almost of triumph . "" we watch beside she throughout the night . the sound from Nan - Tauach continue until about an hour",merritt
60
+ "before moon - set . in the morning Thora awoke , none the bad , apparently . she have have bad dream , she say . she could not remember what they be — except that they have warn she of danger . she be oddly sullen , and throughout the morning her gaze return again and again half - fascinatedly , half - wonderingly to the neighbouring isle . "" that afternoon the native return . and that night on Nan - Tauach the silence be unbroken nor be there light nor sign of life . "" you will",merritt
61
+ "understand , Goodwin , how the occurrence I have relate would excite the scientific curiosity . we reject immediately , of course , any explanation admit the supernatural . "" Our — symptom let I call they — could all very easily be account for . it be unquestionable that the vibration create by certain musical instrument have definite and sometimes extraordinary effect upon the nervous system . we accept this as the explanation of the reaction we have experience , hear the unfamiliar sound . Thora ’s nervousness , her superstitious apprehension , have work she up to a",merritt
62
+ "condition of semi - somnambulistic hysteria . science could readily explain her part in the night ’s scene . "" we come to the conclusion that there must be a passageway between Ponape and Nan - Tauach know to the native — and use by they during their rite . we decide that on the next departure of our labourer we would set forth immediately to Nan - Tauach . we would investigate during the day , and at evening my wife and Thora would go back to camp , leave Stanton and I to spend the night on the",merritt
63
+ "island , observe from some safe hiding - place what might occur . "" the moon wane ; appear crescent in the west ; wax slowly toward the full . before the man leave we they literally pray we to accompany they . their importunity only make we more eager to see what it be that , we be now convince , they want to conceal from we . at least that be true of Stanton and myself . it be not true of Edith . she be thoughtful , abstracted — reluctant . "" when the man be out",merritt
64
+ "of sight around the turn of the harbour , we take our boat and make straight for Nan - Tauach . soon its mighty seawall tower above we . we pass through the water - gate with its gigantic hewn prism of basalt and land beside a half - submerge pier . in front of we stretch a series of giant step lead into a vast court strew with fragment of fall pillar . in the centre of the court , beyond the shattered pillar , rise another terrace of basalt block , conceal , I know , still another",merritt
65
+ "enclosure . "" and now , Walter , for the well understanding of what follow — and — and — "" he hesitate . "" should you decide later to return with I or , if I be take , to — to — follow we — listen carefully to my description of this place : Nan - Tauach be literally three rectangle . the first rectangle be the seawall , build up of monolith — hewn and square , twenty foot wide at the top . to get to the gateway in the seawall you pass along the canal",merritt
66
+ "mark on the map between Nan - Tauach and the islet name Tau . the entrance to the canal be bid by dense thicket of mangrove ; once through these the way be clear . the step lead up from the landing of the sea - gate through the entrance to the courtyard . "" this courtyard be surround by another basalt wall , rectangular , follow with mathematical exactness the march of the outer barricade . the seawall be from thirty to forty foot high — originally it must have be much high , but there have be subsidence",merritt
67
+ "in part . the wall of the first enclosure be fifteen foot across the top and its height vary from twenty to fifty foot — here , too , the gradual sinking of the land have cause portion of it to fall . "" within this courtyard be the second enclosure . its terrace , of the same basalt as the outer wall , be about twenty foot high . entrance be gain to it by many breach which time have make in its stonework . this be the inner court , the heart of Nan - Tauach ! there",merritt
68
+ "lie the great central vault with which be associate the one name of live being that have come to we out of the mist of the past . the native say it be the treasure - house of Chau - te - leur , a mighty king who reign long ' before their father . ' as Chan be the ancient ponapean word both for sun and king , the name mean , without doubt , ' place of the sun king . ' it be a memory of a dynastic name of the race that rule the Pacific continent",merritt
69
+ ", now vanish — just as the ruler of ancient Crete take the name of Minos and the ruler of Egypt the name of Pharaoh . "" and opposite this place of the sun king be the moon rock that hide the Moon Pool . "" it be Stanton who discover the moon rock . we have be inspect the inner courtyard ; Edith and Thora be get together our lunch . I come out of the vault of Chau - te - leur to find Stanton before a part of the terrace study it wonderingly . ""   '",merritt
70
+ "what do you make of this ? ' he ask I as I come up . he point to the wall . I follow his finger and see a slab of stone about fifteen foot high and ten wide . at first all I notice be the exquisite nicety with which its edge join the block about it . then I realize that its colour be subtly different — tinge with grey and of a smooth , peculiar — deadness . ""   ' look more like calcite than basalt , ' I say . I touch it and withdraw",merritt
71
+ "my hand quickly for at the contact every nerve in my arm tingle as though a shock of frozen electricity have pass through it . it be not cold as we know cold . it be a chill force — the phrase I have use — frozen electricity — describe it well than anything else . Stanton look at I oddly . ""   ' so you feel it too , ' he say . ' I be wonder whether I be develop hallucination like Thora . Notice , by the way , that the block beside it be quite",merritt
72
+ "warm beneath the sun . ' "" we examine the slab eagerly . its edge be cut as though by an engraver of jewel . they fit against the neighbouring block in almost a hairline . its base be slightly curve , and fit as closely as top and side upon the huge stone on which it rest . and then we note that these stone have be hollow to follow the line of the grey stone ’s foot . there be a semicircular depression run from one side of the slab to the other . it be as though",merritt
73
+ "the grey rock stand in the centre of a shallow cup — reveal half , cover half . something about this hollow attract I . I reach down and feel it . goodwin , although the balance of the stone that form it , like all the stone of the courtyard , be rough and age - worn — this be as smooth , as even surface as though it have just leave the hand of the polisher . ""   ' it ’ a door ! ' exclaim Stanton . ' it swing around in that little cup .",merritt
74
+ "that ’ what make the hollow so smooth . ' ""   ' maybe you ’re right , ' I reply . ' but how the devil can we open it ? ' "" we go over the slab again — press upon its edge , thrust against its side . during one of those effort I happen to look up — and cry out . a foot above and on each side of the corner of the grey rock ’s lintel be a slight convexity , visible only from the angle at which my gaze strike it . """,merritt
75
+ "we carry with we a small scaling - ladder and up this I go . the boss be apparently nothing more than chisel curvature in the stone . I lay my hand on the one I be examine , and draw it back sharply . in my palm , at the base of my thumb , I have feel the same shock that I have in touch the slab below . I put my hand back . the impression come from a spot not more than an inch wide . I go carefully over the entire convexity , and six",merritt
76
+ "time more the chill run through my arm . there be seven circle an inch wide in the curved place , each of which communicate the precise sensation I have describe . the convexity on the opposite side of the slab give exactly the same result . but no amount of touch or of press these spot singly or in any combination give the slight promise of motion to the slab itself . ""   ' and yet — they’re what open it , ' say Stanton positively . ""   ' why do you say that ? ' I",merritt
77
+ "ask . ""   ' I — don’t know , ' he answer hesitatingly . ' but something tell I so . Throck , ' he go on half earnestly , half laughingly , ' the purely scientific part of I be fight the purely human part of I . the scientific part be urge I to find some way to get that slab either down or open . the human part be just as strongly urge I to do nothing of the sort and get away while I can ! ' "" he laugh again — shamefacedly . """,merritt
78
+ "  ' which shall it be ? ' he ask — and I think that in his tone the human side of he be ascendant . ""   ' it will probably stay as it be — unless we blow it to bit , ' I say . ""   ' I think of that , ' he answer , ' and I would not dare , ' he add soberly enough . and even as I have speak there come to I the same feeling that he have express . it be as though something pass out of the",merritt
79
+ "grey rock that strike my heart as a hand strike an impious lip . we turn away — uneasily , and face Thora come through a breach on the terrace . ""   ' Miss Edith want you quick , ' she begin — and stop . her eye go past I to the grey rock . her body grow rigid ; she take a few stiff step forward and then run straight to it . she cast herself upon its breast , hand and face press against it ; we hear her scream as though her very soul be",merritt
80
+ "be draw from she — and watch her fall at its foot . as we pick she up I see steal from her face the look I have observe when first we hear the crystal music of Nan - Tauach — that unhuman mingling of opposite ! "" IV the First Vanishings "" we carry Thora back , down to where Edith be wait . we tell she what have happen and what we have find . she listen gravely , and as we finish Thora sigh and open her eye . ""   ' I would like to see",merritt
81
+ "the stone , ' she say . ' Charles , you stay here with Thora . ' we pass through the outer court silently — and stand before the rock . she touch it , draw back her hand as I have ; thrust it forward again resolutely and hold it there . she seem to be listen . then she turn to I . ""   ' David , ' say my wife , and the wistfulness in her voice hurt me—‘David , would you be very , very disappointed if we go from here — without try to",merritt
82
+ "find out any more about it — would you ? ' "" Walter , I never want anything so much in my life as I want to learn what that rock conceal . nevertheless , I try to master my desire , and I answered—‘edith , not a bit if you want we to do it . ' "" she read my struggle in my eye . she turn back toward the grey rock . I see a shiver pass through she . I feel a tinge of remorse and pity ! ""   ' Edith , ' I exclaim",merritt
83
+ ", ' we ’ll go ! ' "" she look at I again . ' science be a jealous mistress , ' she quote . ' no , after all it may be just fancy . at any rate , you can not run away . no ! but , Dave , I ’m go to stay too ! ' "" and there be no change her decision . as we near the other she lay a hand on my arm . ""   ' Dave , ' she say , ' if there should be something — well —",merritt
84
+ "inexplicable tonight — something that seem — too dangerous — will you promise to go back to our own islet tomorrow , if we can — and wait until the native return ? ' "" I promise eagerly — the desire to stay and see what come with the night be like a fire within I . "" we pick a place about five hundred foot away from the step lead into the outer court . "" the spot we have select be well hidden . we could not be see , and yet we have a clear view of",merritt
85
+ "the stair and the gateway . we settle down just before dusk to wait for whatever might come . I be near the giant step ; next I Edith ; then Thora , and last Stanton . "" night fall . after a time the eastern sky begin to lighten , and we know that the moon be rise ; grow light still , and the orb peep over the sea ; swam into full sight . I glance at Edith and then at Thora . my wife be intently listen . Thora sit , as she have since we",merritt
86
+ "have place ourselves , elbow on knee , her hand cover her face . "" and then from the moonlight flood we there drip down on I a great drowsiness . Sleep seem to seep from the ray and fall upon my eye , close they — close they inexorably . Edith ’s hand in mine relaxed . Stanton ’s head fall upon his breast and his body sway drunkenly . I try to rise — to fight against the profound desire for slumber that press on I . "" and as I fight , Thora raise her head as",merritt
87
+ "though listen ; and turn toward the gateway . there be infinite despair in her face — and expectancy . I try again to rise — and a surge of sleep rush over I . dimly , as I sink within it , I hear a crystalline chime ; raise my lid once more with a supreme effort . "" Thora , bathe in light , be stand at the top of the stair . "" Sleep take I for its very own — sweep I into the heart of oblivion ! "" Dawn be break when I waken .",merritt
88
+ "Recollection rush back ; I thrust a panic - stricken hand out toward Edith ; touch she and my heart give a great leap of thankfulness . she stir , sit up , rub daze eye . Stanton lie on his side , back toward we , head in arm . "" Edith look at I laughingly . ' Heavens ! what sleep ! ' she say . memory come to she . ""   ' what happen ? ' she whisper . ' what make we sleep like that ? ' "" Stanton awoke . ""   ' what",merritt
89
+ "’s the matter ! ' he exclaim . ' you look as though you ’ve be see ghost . ' "" Edith catch my hand . ""   ' where ’s Thora ? ' she cry . before I could answer she have run out into the open , call . ""   ' Thora be take , ' be all I could say to Stanton . together we go to my wife , now stand beside the great stone step , look up fearfully at the gateway into the terrace . there I tell they what I have see",merritt
90
+ "before sleep have drown I . and together then we run up the stair , through the court and to the grey rock . "" the slab be close as it have be the day before , nor be there trace of its having open . no trace ? even as I think this Edith drop to her knee before it and reach toward something lie at its foot . it be a little piece of gay silk . I know it for part of the kerchief Thora wear about her hair . she lift the fragment . it have",merritt
91
+ "be cut from the kerchief as though by a razor - edge ; a few thread run from it — down toward the base of the slab ; run on to the base of the grey rock and — under it ! "" the grey rock be a door ! and it have open and Thora have pass through it ! "" I think that for the next few minute we all be a little insane . we beat upon that portal with our hand , with stone and stick . at last reason come back to we . """,merritt
92
+ "Goodwin , during the next two hour we try every way in our power to force entrance through the slab . the rock resist our drill . we try explosion at the base with charge cover by rock . they make not the slight impression on the surface , expend their force , of course , upon the slighter resistance of their covering . "" Afternoon find we hopeless . night be come on and we would have to decide our course of action . I want to go to Ponape for help . but Edith object that this would",merritt
93
+ "take hour and after we have reach there it would be impossible to persuade our man to return with we that night , if at all . what then be leave ? clearly only one of two choice : to go back to our camp , wait for our man , and on their return try to persuade they to go with we to Nan - Tauach . but this would mean the abandonment of Thora for at least two day . we could not do it ; it would have be too cowardly . "" the other choice be",merritt
94
+ "to wait where we be for night to come ; to wait for the rock to open as it have the night before , and to make a sortie through it for Thora before it could close again . "" our path lie clear before we . we have to spend that night on Nan - Tauach ! "" we have , of course , discuss the sleep phenomenon very fully . if our theory that light , sound , and Thora ’s disappearance be link with secret religious rite of the native , the logical inference be that the",merritt
95
+ "slumber have be produce by they , perhaps by vapour — you know as well as I , what extraordinary knowledge these Pacific people have of such thing . or the sleep might have be simply a coincidence and produce by emanation either gaseous or from plant , natural cause which have happen to coincide in their effect with the other manifestation . we make some rough and ready but effective respirator . "" as dusk fall we look over our weapon . Edith be an excellent shot with both rifle and pistol . we have decide that my wife",merritt
96
+ "be to remain in the hiding - place . Stanton would take up a station on the far side of the stairway and I would place myself opposite he on the side near Edith . the place I pick out be less than two hundred foot from she , and I could reassure myself now and then as to her safety as it look down upon the hollow wherein she crouch . from our respective station Stanton and I could command the gateway entrance . his position give he also a glimpse of the outer courtyard . "" a faint",merritt
97
+ "glow in the sky herald the moon . Stanton and I take our place . the moon dawn increase rapidly ; the disk swam up , and in a moment it be shine in full radiance upon ruin and sea . "" as it rise there come a curious little sighing sound from the inner terrace . Stanton straighten up and stare intently through the gateway , rifle ready . ""   ' Stanton , what do you see ? ' I call cautiously . he wave a silence hand . I turn my head to look at Edith .",merritt
98
+ "a shock run through I . she lie upon her side . her face , grotesque with its nose and mouth cover by the respirator , be turn full toward the moon . she be again in deep sleep ! "" as I turn again to call to Stanton , my eye sweep the head of the step and stop , fascinated . for the moonlight have thicken . it seem to be — curdle — there ; and through it run little gleam and vein of shimmer white fire . a languor pass through I . it be not",merritt
99
+ "the ineffable drowsiness of the precede night . it be a sapping of all will to move . I try to cry out to Stanton . I have not even the will to move my lip . goodwin — I could not even move my eye ! "" Stanton be in the range of my fix vision . I watch he leap up the step and move toward the gateway . the curdle radiance seem to await he . he step into it — and be lose to my sight . "" for a dozen heart beat there be silence",merritt
100
+ ". then a rain of tinkling that set the pulse race with joy and at once check they with tiny finger of ice — and ring through they Stanton ’s voice from the courtyard — a great cry — a scream — fill with ecstasy insupportable and horror unimaginable ! and once more there be silence . I strove to burst the bond that hold I . I could not . even my eyelid be fix . within they my eye , dry and aching , burn . "" then Goodwin — I first see the — inexplicable ! the",merritt
101
+ "crystalline music swell . where I sit I could take in the gateway and its basalt portal , rough and broken , rise to the top of the wall forty foot above , shatter , ruin portal — unclimbable . from this gateway an intenser light begin to flow . it grow , it gush , and out of it walk Stanton . "" Stanton ! but — God ! what a vision ! "" a deep tremor shake he . I wait — wait . v into the Moon Pool "" goodwin , "" Throckmartin go on at last",merritt
app.py ADDED
@@ -0,0 +1,677 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import marimo
2
+
3
+ __generated_with = "0.14.13"
4
+ app = marimo.App(
5
+ width="full",
6
+ app_title="Text classification using Logistic Regression",
7
+ )
8
+
9
+ with app.setup:
10
+ import glob
11
+
12
+ import altair as alt
13
+ import eli5
14
+ import marimo as mo
15
+ import numpy as np
16
+ import pandas as pd
17
+ from eli5 import format_as_html
18
+ from sklearn.calibration import calibration_curve
19
+ from sklearn.feature_extraction.text import TfidfVectorizer
20
+ from sklearn.linear_model import LogisticRegression
21
+ from sklearn.metrics import (
22
+ brier_score_loss,
23
+ classification_report,
24
+ confusion_matrix,
25
+ )
26
+ from sklearn.model_selection import train_test_split
27
+ from sklearn.preprocessing import label_binarize
28
+
29
+
30
+ @app.cell
31
+ def _():
32
+ mo.md(
33
+ r"""
34
+ # テキスト分類モデルの可視化と解釈
35
+
36
+ このノートブックでは、テキスト分類モデルの学習と解釈方法をインタラクティブに探求します。
37
+ [scikit-learn](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html#logisticregression)のロジスティック回帰モデルを使用し、ELI5ライブラリで予測の説明を可視化します。
38
+ """
39
+ )
40
+ return
41
+
42
+
43
+ @app.cell
44
+ def _():
45
+ mo.md(
46
+ r"""
47
+ ## ロジスティック回帰の内部(テキスト分類向け)
48
+
49
+ **二値分類(クラスが2つ)**
50
+
51
+ $$
52
+ s=\mathbf{w}^\top\mathbf{x}+b
53
+ =\sum_{i=1}^{d} w_i\,x_i + b
54
+ = w_1x_1+w_2x_2+\cdots+w_dx_d+b.
55
+ $$
56
+
57
+ **多クラス(クラス $c$ のスコア)**
58
+
59
+ $$
60
+ s_c=\mathbf{w}_c^\top\mathbf{x}+b_c
61
+ =\sum_{i=1}^{d} w_{c,i}\,x_i + b_c
62
+ = w_{c,1}x_1+w_{c,2}x_2+\cdots+w_{c,d}x_d+b_c.
63
+ $$
64
+
65
+ **全クラス同時表示(行列形)**
66
+
67
+ $$
68
+ \mathbf{s}=W\mathbf{x}+\mathbf{b},\quad
69
+ W\in\mathbb{R}^{K\times d},\ \mathbf{s}\in\mathbb{R}^{K}.
70
+ $$
71
+
72
+ **テキスト分類の対応づけ(例)**
73
+
74
+ $$
75
+ x_i=\mathrm{tfidf}(\text{term}_i,\ \text{doc}),\qquad
76
+ \text{contrib}_{i\to c}=x_i\,w_{c,i}.
77
+ $$
78
+
79
+ **二値の確率化(シグモイド)**
80
+
81
+ $$
82
+ p(y=1\mid \mathbf{x})=\sigma(s)=\frac{1}{1+e^{-s}},\quad
83
+ \log\frac{p}{1-p}=s
84
+ $$
85
+
86
+ **多クラスの確率化(ソフトマックス)**
87
+
88
+ $$
89
+ p(y=c\mid \mathbf{x})=\frac{e^{s_c}}{\sum_{k} e^{s_k}},\quad
90
+ s_c=\mathbf{w}_c^\top \mathbf{x}+b_c
91
+ $$
92
+
93
+ **決定境界と閾値**
94
+ 二値では$s=0$が閾値(通常は$p=0.5$)。
95
+ 多クラスでは$\{s_c\}$の最大を選ぶ。
96
+
97
+ **学習と正則化**
98
+
99
+ $$
100
+ \min_{\{\mathbf{w}_c,b_c\}}
101
+ \left[-\sum_{i}\log p(y_i\mid \mathbf{x}_i)\right]
102
+ +\frac{\lambda}{2}\sum_{c}\|\mathbf{w}_c\|_2^2
103
+ $$
104
+
105
+ scikit-learnの$C$は$\lambda$の逆数に相当($C$が小さければ$\Rightarrow$正則化強)。
106
+ """
107
+ )
108
+ return
109
+
110
+
111
+ @app.cell
112
+ def _():
113
+ mo.md(
114
+ """
115
+ ## データセットの確認
116
+
117
+ 4つの作家の小説から構成される小さなテキストコーパスです。
118
+ 各作品からは先頭100トークンのチャンク100個があり、トークンはレマ化されています。
119
+
120
+ - A. Merritt: The Moon Pool (Science fiction)
121
+ - E. R. Eddison: The Worm Ouroboros (Fantasy)
122
+ - H. G. Wells: The Wonderful Visit (Fantasy)
123
+ - Mark Twain: A Connecticut Yankee in King Arthur's Court (Historical fiction/Fantasy)
124
+
125
+ (StandardEbooksより)
126
+ """
127
+ )
128
+ return
129
+
130
+
131
+ @app.cell
132
+ def _():
133
+ rng = np.random.default_rng(42)
134
+
135
+ df = pd.DataFrame(columns=["text", "label"])
136
+ for csv_file in glob.glob("./*.csv"):
137
+ d = pd.read_csv(csv_file)
138
+ df = pd.concat([df, d]).reset_index(drop=True)
139
+
140
+ mo.vstack([mo.md("### コーパス"), df])
141
+ return (df,)
142
+
143
+
144
+ @app.cell
145
+ def _():
146
+ mo.md(
147
+ """
148
+ ## ハイパーパラメータの調整
149
+
150
+ 以下のスライダーとドロップダウンでモデルのハイパーパラメータを調整できます:
151
+
152
+ - **テスト比率**: 訓練データとテストデータの分割比率
153
+ - **最大n-gram**: 使用するn-gramの最大長(1=単語、2=連続する2単語、など)
154
+ - **最小出現回数**: 特徴量として扱う単語の最小出現回数
155
+ - **正則化C**: ロジスティック回帰の正則化強度(小さいほど強い正則化)
156
+ """
157
+ )
158
+ return
159
+
160
+
161
+ @app.cell
162
+ def _():
163
+ split = mo.ui.slider(0.1, 0.9, value=0.3, step=0.05, label="テスト比率")
164
+ max_ng = mo.ui.slider(1, 4, value=2, step=1, label="最大n-gram")
165
+ min_df = mo.ui.slider(1, 10, value=1, step=1, label="最小出現回数")
166
+ C_pick = mo.ui.dropdown(options=[0.01, 0.1, 1.0, 10.0], value=1.0, label="正則化C")
167
+ k_top = mo.ui.slider(5, 40, value=20, step=5, label="表示上位語数")
168
+ cls_for_cal = mo.ui.dropdown(options=["All"], value="All", label="クラス(信頼性曲線)")
169
+ mo.vstack([split, max_ng, min_df, C_pick, k_top, cls_for_cal])
170
+ return C_pick, cls_for_cal, max_ng, min_df, split
171
+
172
+
173
+ @app.cell
174
+ def _(C_pick, df, max_ng, min_df, split):
175
+ for _ in mo.status.progress_bar(
176
+ range(10),
177
+ title="Training Logistic Regression model",
178
+ subtitle="Please wait",
179
+ show_eta=True,
180
+ show_rate=True
181
+ ):
182
+ X_train_text, X_test_text, y_train, y_test = train_test_split(
183
+ df["text"].tolist(),
184
+ df["label"].tolist(),
185
+ test_size=split.value,
186
+ random_state=0,
187
+ stratify=df["label"].tolist(),
188
+ )
189
+ vec = TfidfVectorizer(ngram_range=(1, max_ng.value), min_df=min_df.value)
190
+ X_train = vec.fit_transform(X_train_text)
191
+ X_test = vec.transform(X_test_text)
192
+ clf = LogisticRegression(
193
+ C=float(C_pick.value), max_iter=2000, solver="lbfgs"
194
+ )
195
+ clf.fit(X_train, y_train)
196
+ classes = clf.classes_
197
+ return X_test, X_test_text, X_train, classes, clf, vec, y_test, y_train
198
+
199
+
200
+ @app.cell
201
+ def _(X_test, classes, clf, vec, y_test):
202
+ feature_names = vec.get_feature_names_out()
203
+ W = clf.coef_
204
+ b = clf.intercept_
205
+ weights_df = (
206
+ pd.DataFrame(W, index=classes, columns=feature_names)
207
+ .stack()
208
+ .rename("weight")
209
+ .reset_index()
210
+ .rename(columns={"level_0": "class", "level_1": "term"})
211
+ )
212
+ y_pred = clf.predict(X_test)
213
+ y_prob = clf.predict_proba(X_test)
214
+ probs_df = pd.DataFrame(y_prob, columns=classes)
215
+ cm = (
216
+ pd.DataFrame(
217
+ confusion_matrix(y_test, y_pred, labels=classes),
218
+ index=classes,
219
+ columns=classes,
220
+ )
221
+ .reset_index()
222
+ .melt(id_vars="index", var_name="pred", value_name="count")
223
+ .rename(columns={"index": "true"})
224
+ )
225
+ heat = (
226
+ alt.Chart(cm)
227
+ .mark_rect()
228
+ .encode(
229
+ x="pred:N",
230
+ y="true:N",
231
+ color=alt.Color("count:Q", scale=alt.Scale(scheme="blues")),
232
+ )
233
+ .properties(title="混同行列", width=300, height=300)
234
+ )
235
+ text = (
236
+ alt.Chart(cm)
237
+ .mark_text(baseline="middle")
238
+ .encode(
239
+ x="pred:N",
240
+ y="true:N",
241
+ text="count:Q",
242
+ color=alt.condition(
243
+ alt.datum.count > 5,
244
+ alt.value("white"),
245
+ alt.value("black")
246
+ )
247
+ )
248
+ )
249
+ cm_chart = alt.layer(heat, text).resolve_scale(color="independent")
250
+ mo.ui.altair_chart(cm_chart)
251
+ return weights_df, y_pred
252
+
253
+
254
+ @app.cell
255
+ def _():
256
+ mo.md(
257
+ """
258
+ ## 重みと文書頻度の関係
259
+
260
+ 各クラスに対する特徴語(単語/n-gram)の重みを可視化します。
261
+ 横軸は文書頻度の対数、縦軸は重みの大きさ(または符号付き)を表します。
262
+ これは、頻度の高い単語ほど重みが大きいわけではないことを示しています。
263
+ """
264
+ )
265
+ return
266
+
267
+
268
+ @app.cell
269
+ def _(X_train, classes, vec, weights_df):
270
+ df_counts = pd.Series((X_train>0).sum(axis=0).A1, index=vec.get_feature_names_out(), name="doc_freq").reset_index().rename(columns={"index":"term"})
271
+ wdf = weights_df.merge(df_counts, on="term", how="left")
272
+ wdf["doc_freq"] = wdf["doc_freq"].fillna(0).astype(int)
273
+ wdf["log_df"] = np.log10(wdf["doc_freq"]+1)
274
+ w_cls_pick = mo.ui.dropdown(options=list(classes), value=list(classes)[0], label="クラス")
275
+ abs_toggle = mo.ui.switch(label="絶対値で表示", value=True)
276
+ mo.hstack([w_cls_pick, abs_toggle])
277
+ return abs_toggle, w_cls_pick, wdf
278
+
279
+
280
+ @app.cell
281
+ def _(abs_toggle, w_cls_pick, wdf):
282
+ sub = wdf[wdf["class"]==w_cls_pick.value].copy()
283
+ sub["y"] = sub["weight"].abs() if abs_toggle.value else sub["weight"]
284
+ w_chart = alt.Chart(sub).mark_text().encode(
285
+ x=alt.X("log_df:Q", title="log10(文書頻度+1)"),
286
+ y=alt.Y("y:Q", title="重み"),
287
+ text="term:N",
288
+ tooltip=["term", "doc_freq", "weight"]
289
+ ).properties(width=500, height=360, title=f"重み{'(絶対値)' if abs_toggle.value else ''}と出現頻度の関係")
290
+
291
+ mo.ui.altair_chart(w_chart)
292
+ return
293
+
294
+
295
+ @app.cell
296
+ def _():
297
+ topK = mo.ui.slider(10, 80, value=30, step=5, label="対象語数")
298
+ mo.hstack([topK])
299
+ return (topK,)
300
+
301
+
302
+ @app.cell
303
+ def _():
304
+ mo.md(
305
+ """
306
+ ## 共起相関行列
307
+
308
+ 選択したクラスについて、上位の特徴語同士の共起相関をヒートマップで表示します。
309
+ 赤が正の相関(一緒に出現しやすい)、青が負の相関(同時に出現しにくい)です。
310
+ これにより、どの単語がセットでモデルに影響を与えているかを理解できます。
311
+ """
312
+ )
313
+ return
314
+
315
+
316
+ @app.cell
317
+ def _(X_train, topK, vec, w_cls_pick, weights_df):
318
+ wabs = (weights_df.assign(absw=weights_df["weight"].abs())
319
+ .sort_values(["class","absw"], ascending=[True, False]))
320
+ terms_ = wabs[wabs["class"]==w_cls_pick.value].head(topK.value)["term"].tolist()
321
+ indices = pd.Series(range(len(vec.get_feature_names_out())), index=vec.get_feature_names_out())
322
+ cols = [indices[t] for t in terms_ if t in indices]
323
+ Xm = (X_train[:, cols] > 0).astype("float32")
324
+ C_ = (Xm.T @ Xm).A
325
+ n = Xm.shape[0]
326
+ p = Xm.mean(axis=0).A1
327
+ std = np.sqrt(p*(1-p)+1e-9)
328
+ corr = (C_/n - np.outer(p,p)) / (np.outer(std,std)+1e-9)
329
+ corr_df = pd.DataFrame(corr, index=terms_, columns=terms_).stack().rename("corr").reset_index().rename(columns={"level_0":"t1","level_1":"t2"})
330
+ heat_ = alt.Chart(corr_df).mark_rect().encode(
331
+ x=alt.X("t1:N", sort=terms_),
332
+ y=alt.Y("t2:N", sort=terms_),
333
+ color=alt.Color("corr:Q", scale=alt.Scale(scheme="redblue", domain=[-1,1])),
334
+ tooltip=["t1","t2","corr"]
335
+ ).properties(width=420, height=420, title=f"共起相関({w_cls_pick.value} 上位語)")
336
+ mo.ui.altair_chart(heat_)
337
+ return
338
+
339
+
340
+ @app.cell
341
+ def _():
342
+ # cls_select = mo.ui.dropdown(
343
+ # options=list(classes), value=list(classes)[0], label="クラス(重み)"
344
+ # )
345
+ k_slider = mo.ui.slider(5, 40, value=5, step=5, label="上位語数")
346
+ # mo.hstack([cls_select, k_slider])
347
+ mo.hstack([k_slider])
348
+ return (k_slider,)
349
+
350
+
351
+ @app.cell
352
+ def _():
353
+ # dfc = weights_df[weights_df["class"] == cls_select.value]
354
+ # top_pos = dfc.nlargest(k_slider.value, "weight")
355
+ # top_neg = dfc.nsmallest(k_slider.value, "weight")
356
+ # pos_chart = (
357
+ # alt.Chart(top_pos.assign(dir="pos"))
358
+ # .mark_bar()
359
+ # .encode(x=alt.X("weight:Q", title="重み"), y=alt.Y("term:N", sort="-x"))
360
+ # .properties(width=420, height=420, title="正の寄与")
361
+ # )
362
+ # neg_chart = (
363
+ # alt.Chart(top_neg.assign(dir="neg"))
364
+ # .mark_bar()
365
+ # .encode(x=alt.X("weight:Q", title="重み"), y=alt.Y("term:N", sort="x"))
366
+ # .properties(width=420, height=420, title="負の寄与")
367
+ # )
368
+ # mo.hstack([mo.ui.altair_chart(pos_chart), mo.ui.altair_chart(neg_chart)])
369
+ return
370
+
371
+
372
+ @app.cell
373
+ def _():
374
+ mo.md(
375
+ """
376
+ ## クラスごとの特徴語
377
+
378
+ 各クラスで最も影響力の大きい(正と負の)特徴語を表示します。
379
+ 棒グラフで重みが大きい単語が分かりやすく可視化され、どの単語がクラスに寄与しているかを確認できます。
380
+ """
381
+ )
382
+ return
383
+
384
+
385
+ @app.cell
386
+ def _(classes, clf, k_slider, vec):
387
+ html_global = format_as_html(
388
+ eli5.explain_weights(clf, vec=vec, target_names=list(classes), top=(k_slider.value, k_slider.value))
389
+ )
390
+ mo.Html(html_global)
391
+ return
392
+
393
+
394
+ @app.cell
395
+ def _():
396
+ mo.md(
397
+ """
398
+ ## 個別予測の説明
399
+
400
+ テストデータから特定の文書を選択して、モデルの予測結果を詳しく調べます。
401
+ [ELI5ライブラリ](https://eli5.readthedocs.io/en/latest/overview.html)を使用して、どの単語がどの程度予測に寄与したかを可視化します。
402
+ """
403
+ )
404
+ return
405
+
406
+
407
+ @app.cell
408
+ def _(X_test_text):
409
+ idx = mo.ui.slider(0, len(X_test_text) - 1, value=0, step=1, label="予測対象文書の選択(インデックス)")
410
+ mo.hstack([idx])
411
+ return (idx,)
412
+
413
+
414
+ @app.cell
415
+ def _(X_test_text, classes, clf, idx, vec, y_test):
416
+ x = X_test_text[idx.value]
417
+ proba = clf.predict_proba(vec.transform([x]))[0]
418
+ pred = classes[np.argmax(proba)]
419
+ table = pd.DataFrame({"class": classes, "prob": proba}).sort_values(
420
+ "prob", ascending=False
421
+ )
422
+ mo.vstack([mo.md(f"**予測:** {pred} (正解:{y_test[idx.value]})"), mo.ui.table(table)])
423
+ return (x,)
424
+
425
+
426
+ @app.cell
427
+ def _(classes, clf, vec, x):
428
+ html_local = format_as_html(
429
+ eli5.explain_prediction(clf, x, vec=vec, target_names=list(classes), top=20)
430
+ )
431
+ mo.Html(html_local)
432
+ return
433
+
434
+
435
+ @app.cell
436
+ def _(classes, clf, vec, x):
437
+ html_cf = format_as_html(
438
+ eli5.explain_prediction(
439
+ clf, x, vec=vec, target_names=list(classes), top=(20, 20)
440
+ )
441
+ )
442
+ mo.Html(html_cf)
443
+ return
444
+
445
+
446
+ @app.cell
447
+ def _():
448
+ mo.md(
449
+ r"""
450
+ **How to read these explanations**
451
+
452
+ - Weights show how the model learned to associate words with a class, but words often occur together. Interpret groups, not single weights.
453
+ - Coefficients depend on feature scaling. Compare contributions in a specific text ($\textrm{value} \times \textrm{weight}$), not raw weights across different feature types.
454
+ - Rare words can have large weights yet seldom matter. Check frequency vs. weight and the per-example highlights above.
455
+ """
456
+ )
457
+ return
458
+
459
+
460
+ @app.cell
461
+ def _():
462
+ mo.md(
463
+ """
464
+ ## 反事実的分析(What-if分析)
465
+
466
+ 選択した文書を編集し、テキストの変更が予測確率にどのように影響するかを観察できます。
467
+ これはモデルの動作をより深く理解し、モデルに対する信頼を築くのに役立ちます。
468
+ """
469
+ )
470
+ return
471
+
472
+
473
+ @app.cell
474
+ def _(x):
475
+ editor = mo.ui.text_area(
476
+ label="テキスト編集(反事実)",
477
+ value=x,
478
+ full_width=True,
479
+ )
480
+ editor
481
+ return (editor,)
482
+
483
+
484
+ @app.cell
485
+ def _(classes, clf, editor, vec, x):
486
+ x2 = editor.value
487
+ p1 = clf.predict_proba(vec.transform([x]))[0]
488
+ p2 = clf.predict_proba(vec.transform([x2]))[0]
489
+ delta = pd.DataFrame(
490
+ {"class": classes, "before": p1, "after": p2, "diff": p2 - p1}
491
+ ).sort_values("after", ascending=False)
492
+ mo.ui.table(delta)
493
+ return
494
+
495
+
496
+ @app.cell
497
+ def _():
498
+ mo.md(
499
+ """
500
+ ## 正則化パスの可視化
501
+
502
+ 正則化係数Cを変化させたときの特徴語の重みの変化をプロットします。
503
+ これにより、どの特徴がロバストで、どの特徴が過学習の可能性があるかを理解できます。
504
+ """
505
+ )
506
+ return
507
+
508
+
509
+ @app.cell
510
+ def _(X_train, vec, y_train):
511
+ Cgrid = [0.01, 0.03, 0.1, 0.3, 1.0, 3.0, 10.0]
512
+ rows = []
513
+ terms = []
514
+ if hasattr(vec, "get_feature_names_out"):
515
+ terms = list(vec.get_feature_names_out())
516
+ terms_pick = terms[:1000]
517
+ pick = terms_pick[:5]
518
+ for C in Cgrid:
519
+ m = LogisticRegression(
520
+ C=C, max_iter=2000, solver="lbfgs"
521
+ ).fit(X_train, y_train)
522
+ W2 = m.coef_
523
+ fn = vec.get_feature_names_out()
524
+ dfW = (
525
+ pd.DataFrame(W2, index=m.classes_, columns=fn)
526
+ .stack()
527
+ .rename("w")
528
+ .reset_index()
529
+ .rename(columns={"level_0": "class", "level_1": "term"})
530
+ )
531
+ rows.append(dfW[dfW["term"].isin(pick)].assign(C=C))
532
+ path_df = (
533
+ pd.concat(rows) if rows else pd.DataFrame(columns=["class", "term", "w", "C"])
534
+ )
535
+ chart = (
536
+ alt.Chart(path_df)
537
+ .mark_line()
538
+ .encode(
539
+ x=alt.X("C:Q", scale=alt.Scale(type="log")),
540
+ y="w:Q",
541
+ color="term:N",
542
+ facet="class:N",
543
+ )
544
+ .properties(width=260, height=160, title="正則化で重みがどう変わるか")
545
+ )
546
+ mo.ui.altair_chart(chart)
547
+ return
548
+
549
+
550
+ @app.cell
551
+ def _():
552
+ mo.md(
553
+ """
554
+ ## 信頼性曲線
555
+
556
+ モデルの予測確率がどれだけ信頼できるかを評価するための信頼性曲線を表示します。
557
+ 理想的には45度線に近い方が良く、予測確率が実際の正解率と一致していることを意味します。
558
+ """
559
+ )
560
+ return
561
+
562
+
563
+ @app.cell
564
+ def _(X_test, classes, clf, y_test):
565
+ probs = clf.predict_proba(X_test)
566
+ dfp = pd.DataFrame(probs, columns=classes)
567
+ df_true = pd.Series(y_test, name="true")
568
+ cls_pick = classes[0]
569
+ bins = []
570
+ lines = []
571
+ for cls in classes:
572
+ y_bin = (df_true == cls).astype(int).to_numpy()
573
+ prob_cls = dfp[cls].to_numpy()
574
+ f_obs, f_pred = calibration_curve(y_bin, prob_cls, n_bins=8, strategy="uniform")
575
+ bins.append(
576
+ pd.DataFrame({"class": cls, "mean_pred": f_pred, "empirical": f_obs})
577
+ )
578
+ cal_df = pd.concat(bins)
579
+ base = (
580
+ alt.Chart(cal_df)
581
+ .mark_line()
582
+ .encode(
583
+ x=alt.X("mean_pred:Q", title="平均予測確率 (below x=y is over-confident)"),
584
+ y=alt.Y("empirical:Q", title="実測精度 (above x=y is under-confident)"),
585
+ color="class:N",
586
+ )
587
+ .properties(width=420, height=300, title="信頼性曲線")
588
+ .interactive()
589
+ )
590
+ diag = (
591
+ alt.Chart(pd.DataFrame({"x": [0, 1], "y": [0, 1]}))
592
+ .mark_line(strokeDash=[5, 5], color="black")
593
+ .encode(x="x:Q", y="y:Q")
594
+ .interactive()
595
+ )
596
+ combined = base + diag
597
+ mo.ui.altair_chart(combined)
598
+ return
599
+
600
+
601
+ @app.cell
602
+ def _(X_test, classes, clf, cls_for_cal, y_test):
603
+ cal_sel_m = cls_for_cal.value if 'cls_for_cal' in globals() else "All"
604
+ cal_proba_matrix_m = clf.predict_proba(X_test)
605
+ cal_df_proba_m = pd.DataFrame(cal_proba_matrix_m, columns=classes)
606
+ cal_true_series_m = pd.Series(y_test, name="true")
607
+ if cal_sel_m == "All":
608
+ cal_class_list_m = list(classes)
609
+ else:
610
+ cal_class_list_m = [cal_sel_m]
611
+ cal_rows_m = []
612
+ for cal_c_m in cal_class_list_m:
613
+ cal_ybin_m = (cal_true_series_m == cal_c_m).astype(int).to_numpy()
614
+ cal_p_m = cal_df_proba_m[cal_c_m].to_numpy()
615
+ cal_fobs_m, cal_fpred_m = calibration_curve(cal_ybin_m, cal_p_m, n_bins=10, strategy="uniform")
616
+ cal_n_m = len(cal_p_m)
617
+ cal_bin_m = pd.cut(cal_p_m, bins=np.linspace(0,1,11), right=False, include_lowest=True)
618
+ cal_group_m = pd.DataFrame({"bin": cal_bin_m, "p": cal_p_m, "y": cal_ybin_m}).groupby("bin")
619
+ cal_ece_m = (cal_group_m.apply(lambda g: abs(g["y"].mean() - g["p"].mean()) * len(g) / cal_n_m)).sum()
620
+ cal_rows_m.append({"class": cal_c_m, "ECE": cal_ece_m})
621
+ cal_ece_df_m = pd.DataFrame(cal_rows_m).sort_values("ECE").reset_index(drop=True)
622
+ cal_class_show_m = cal_class_list_m[0]
623
+ cal_hist_chart_m = alt.Chart(pd.DataFrame({"p": cal_df_proba_m[cal_class_show_m]})).mark_bar().encode(
624
+ x=alt.X("p:Q", bin=alt.Bin(maxbins=20), title=f"予測確率 p({cal_class_show_m})"),
625
+ y=alt.Y("count()", title="件数")
626
+ ).properties(width=360, height=220, title="信頼度ヒストグラム")
627
+ mo.hstack([mo.ui.table(cal_ece_df_m), mo.ui.altair_chart(cal_hist_chart_m)])
628
+ return
629
+
630
+
631
+ @app.cell
632
+ def _():
633
+ mo.md(
634
+ """
635
+ ## 混同行列の詳細分析
636
+
637
+ 特定の真のクラスと予測クラスの組み合わせについて、実際の予測例を確認できます。
638
+ これにより、モデルがどのような誤分類をしているかを具体的に観察できます。
639
+ """
640
+ )
641
+ return
642
+
643
+
644
+ @app.cell
645
+ def _(X_test_text, classes, y_pred, y_test):
646
+ df_show = pd.DataFrame({"text": X_test_text, "true": y_test, "pred": y_pred})
647
+ sel_true = mo.ui.dropdown(
648
+ options=list(classes), value=list(classes)[0], label="True"
649
+ )
650
+ sel_pred = mo.ui.dropdown(
651
+ options=list(classes), value=list(classes)[0], label="Pred"
652
+ )
653
+ mo.hstack([sel_true, sel_pred])
654
+ return df_show, sel_pred, sel_true
655
+
656
+
657
+ @app.cell
658
+ def _(df_show, sel_pred, sel_true):
659
+ subset = df_show[
660
+ (df_show["true"] == sel_true.value) & (df_show["pred"] == sel_pred.value)
661
+ ].reset_index(drop=True)
662
+ mo.ui.table(subset)
663
+ return
664
+
665
+
666
+ @app.cell
667
+ def _():
668
+ return
669
+
670
+
671
+ @app.cell
672
+ def _():
673
+ return
674
+
675
+
676
+ if __name__ == "__main__":
677
+ app.run()
development.md ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # Development
2
+
3
+ ## Testing your Dockerfile locally
4
+
5
+ ```bash
6
+ docker build -t lr-text-classification .
7
+ docker run -it --rm -p 7860:7860 lr-text-classification
8
+ ```
e-r-eddison_the-worm-ouroboros.csv ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ text,label
2
+ "I The Castle of Lord Juss Of the rarities that were in the lofty presence chamber fair and lovely to behold , and of the qualities and conditions of the lords of Demonland : and of the embassy sent unto them by King Gorice XI , and of the answer thereto . The eastern stars were paling to the dawn as Lessingham followed his conductor along the grass walk between the shadowy ranks of Irish yews , that stood like soldiers mysterious and expectant in the darkness . The grass was bathed in night - dew , and great white",eddison
3
+ "lilies sleeping in the shadows of the yews loaded the air of that garden with fragrance . Lessingham felt no touch of the ground beneath his feet , and when he stretched out his hand to touch a tree his hand passed through branch and leaves as though they were unsubstantial as a moonbeam . The little martlet , alighting on his shoulder , laughed in his ear . “ Child of earth , ” she said , “ dost think we are here in dreamland ? ” He answered nothing , and she said , “ This is no",eddison
4
+ "dream . Thou , first of the children of men , art come to Mercury , where thou and I will journey up and down for a season to show thee the lands and oceans , the forests , plains , and ancient mountains , cities and palaces of this world , Mercury , and the doings of them that dwell therein . But here thou canst not handle aught , neither make the folk ware of thee , not though thou shout thy throat hoarse . For thou and I walk here impalpable and invisible , as it were",eddison
5
+ "two dreams walking . ” They were now on the marble steps which led from the yew walk to the terrace opposite the great gate of the castle . “ No need to unbar gates to thee and me , ” said the martlet , as they passed beneath the darkness of that ancient portal , carved with strange devices , and clean through the massy timbers of the bolted gate thickly riveted with silver , into the inner court . “ Go we into the lofty presence chamber and there tarry awhile . Morning is kindling the upper air",eddison
6
+ ", and folk will soon be stirring in the castle , for they lie not long abed when day begins in Demonland . For be it known to thee , O earthborn , that this land is Demonland , and this castle the castle of Lord Juss , and this day now dawning his birthday , when the Demons hold high festival in Juss ’s castle to do honour unto him and to his brethren , Spitfire and Goldry Bluszco ; and these and their fathers before them bear rule from time immemorial in Demonland , and have the lordship",eddison
7
+ "over all the Demons . ” She spoke , and the first low beams of the sun smote javelin - like through the eastern windows , and the freshness of morning breathed and shimmered in that lofty chamber , chasing the blue and dusky shades of departed night to the corners and recesses , and to the rafters of the vaulted roof . Surely no potentate of earth , not Croesus , not the great King , not Minos in his royal palace in Crete , not all the Pharaohs , not Queen Semiramis , nor all the Kings of",eddison
8
+ "Babylon and Nineveh had ever a throne room to compare in glory with that high presence chamber of the lords of Demonland . Its walls and pillars were of snow - white marble , every vein whereof was set with small gems : rubies , corals , garnets , and pink topaz . Seven pillars on either side bore up the shadowy vault of the roof ; the rooftree and the beams were of gold , curiously carved , the roof itself of mother - of - pearl . A side aisle ran behind each row of pillars , and",eddison
9
+ "seven paintings on the western side faced seven spacious windows on the east . At the end of the hall upon a dais stood three high seats , the arms of each composed of two hippogriffs wrought in gold , with wings spread , and the legs of the seats the legs of the hippogriffs ; but the body of each high seat was a single jewel of monstrous size : the left - hand seat a black opal , a - sparkle with steel - blue fire , the next a fire - opal , as it were a",eddison
10
+ "burning coal , the third seat an alexandrite , purple like wine by night but deep sea - green by day . Ten more pillars stood in semicircle behind the high seats , bearing up above them and the dais a canopy of gold . The benches that ran from end to end of the lofty chamber were of cedar , inlaid with coral and ivory , and so were the tables that stood before the benches . The floor of the chamber was tesselated , of marble and green tourmaline , and on every square of tourmaline was carven",eddison
11
+ "the image of a fish : as the dolphin , the conger , the catfish , the salmon , the tunny , the squid , and other wonders of the deep . Hangings of tapestry were behind the high seats , worked with flowers , snake’s - head , snapdragon , dragon - mouth , and their kind ; and on the dado below the windows were sculptures of birds and beasts and creeping things . But a great wonder of this chamber , and a marvel to behold , was how the capital of every one of the four",eddison
12
+ "- and - twenty pillars was hewn from a single precious stone , carved by the hand of some sculptor of long ago into the living form of a monster : here was a harpy with screaming mouth , so wondrously cut in ochre - tinted jade it was a marvel to hear no scream from her : here in wine - yellow topaz a flying firedrake : there a cockatrice made of a single ruby : there a star sapphire the colour of moonlight , cut for a cyclops , so that the rays of the star trembled from",eddison
13
+ "his single eye : salamanders , mermaids , chimaeras , wild men o ’ the woods , leviathans , all hewn from faultless gems , thrice the bulk of a big man ’s body , velvet - dark sapphires , chrysolite , beryl , amethyst , and the yellow zircon that is like transparent gold . To give light to the presence chamber were seven escarbuncles , great as pumpkins , hung in order down the length of it , and nine fair moonstones standing in order on silver pedestals between the pillars on the dais . These jewels ,",eddison
14
+ "drinking in the sunshine by day , gave it forth during the hours of darkness in a radiance of pink light and a soft effulgence as of moonbeams . And yet another marvel , the nether side of the canopy over the high seats was encrusted with lapis lazuli , and in that feigned dome of heaven burned the twelve signs of the zodiac , every star a diamond that shone with its own light . Folk now began to be astir in the castle , and there came a score of serving men into the presence chamber with brooms",eddison
15
+ "and brushes , cloths and leathers , to sweep and garnish it , and burnish the gold and jewels of the chamber . Lissome they were and sprightly of gait , of fresh complexion and fair - haired . Horns grew on their heads . When their tasks were accomplished they departed , and the presence began to fill with guests . A joy it was to see such a shifting maze of velvets , furs , curious needleworks and cloth of tissue , tiffanies , laces , ruffs , goodly chains and carcanets of gold : such glitter of",eddison
16
+ "jewels and weapons : such nodding of the plumes the Demons wore in their hair , half veiling the horns that grew upon their heads . Some were sitting on the benches or leaning on the polished tables , some walking forth and back upon the shining floor . Here and there were women among them , women so fair one had said : it is surely white - armed Helen this one ; this , Arcadian Atalanta ; this , Phryne that stood to Praxiteles for Aphrodite ’s picture ; this , Thaïs , for whom great Alexander to",eddison
17
+ "pleasure her fantasy did burn Persepolis like a candle ; this , she that was rapt by the Dark God from the flowering fields of Enna , to be Queen forever among the dead that be departed . Now came a stir near the stately doorway , and Lessingham beheld a Demon of burly frame and noble port , richly attired . His face was ruddy and somewhat freckled , his forehead wide , his eyes calm and blue like the sea . His beard , thick and tawny , was parted and brushed back and upwards on either side",eddison
18
+ ". “ Tell me , my little martlet , ” said Lessingham , “ is this Lord Juss ? ” “ This is not Lord Juss , ” answered the martlet , “ nor aught so worshipful as he . The lord thou seest is Volle , who dwelleth under Kartadza , by the salt sea . A great sea - captain is he , and one that did service to the cause of Demonland , and of the whole world besides , in the late wars against the Ghouls . “ But cast thine eyes again towards the door",eddison
19
+ ", where one standeth amid a knot of friends , tall and somewhat stooping , in a corselet of silver , and a cloak of old brocaded silk coloured like tarnished gold ; something like to Volle in feature , but swarthy , and with bristling black moustachios . ” “ I see him , ” said Lessingham . “ This then is Lord Juss ! ” “ Not so , ” said the martlet . “   ’ Tis but Vizz , brother to Volle . He is wealthiest in goods of all the Demons , save the three",eddison
20
+ "brethren only and Lord Brandoch Daha . ” “ And who is this ? ” asked Lessingham , pointing to one of light and brisk step and humorous eye , who in that moment met Volle and engaged him in converse apart . Handsome of face he was , albeit somewhat long - nosed and sharp - nosed : keen and hard and filled with life and the joy of it . “ Here thou beholdest , ” answered she , “ Lord Zigg , the far - famed tamer of horses . Well loved is he among the Demons",eddison
21
+ ", for he is merry of mood , and a mighty man of his hands withal when he leadeth his horsemen against the enemy . ” Volle threw up his beard and laughed a great laugh at some jest that Zigg whispered in his ear , and Lessingham leaned forward into the hall if haply he might catch what was said . The hum of talk drowned the words , but leaning forward Lessingham saw where the arras curtains behind the dais parted for a moment , and one of princely bearing advanced past the high seats down the body",eddison
22
+ "of the hall . His gait was delicate , as of some lithe beast of prey newly wakened out of slumber , and he greeted with lazy grace the many friends who hailed his entrance . Very tall was that lord , and slender of build , like a girl . His tunic was of silk coloured like the wild rose , and embroidered in gold with representations of flowers and thunderbolts . Jewels glittered on his left hand and on the golden bracelets on his arms , and on the fillet twined among the golden curls of his hair",eddison
23
+ ", set with plumes of the kingbird of Paradise . His horns were dyed with saffron , and inlaid with filigree work of gold . His buskins were laced with gold , and from his belt hung a sword , narrow of blade and keen , the hilt rough with beryls and black diamonds . Strangely light and delicate was his frame and seeming , yet with a sense of slumbering power beneath , as the delicate peak of a snow mountain seen afar in the low red rays of morning . His face was beautiful to look upon ,",eddison
24
+ "and softly coloured like a girl ’s face , and his expression one of gentle melancholy , mixed with some disdain ; but fiery glints awoke at intervals in his eyes , and the lines of swift determination hovered round the mouth below his curled moustachios . “ At last , ” murmured Lessingham , “ at last , Lord Juss ! ” “ Little art thou to blame , ” said the martlet , “ for this misprision , for scarce could a lordlier sight have joyed thine eyes . Yet is this not Juss , but Lord Brandoch",eddison
25
+ "Daha , to whom all Demonland west of Shalgreth and Stropardon oweth allegiance : the rich vineyards of Krothering , the broad pasture lands of Failze , and all the western islands and their crag - bound fastnesses . Think not , because he affecteth silks and jewels like a queen , and carrieth himself light and dainty as a silver birch tree on the mountain , that his hand is light or his courage doubtful in war . For years was he held for the third best man - at - arms in all Mercury , along with these",eddison
26
+ ", Goldry Bluszco and Gorice X of Witchland . And Gorice he slew , nine summers back , in single combat , when the Witches harried in Goblinland and Brandoch Daha led five hundred and fourscore Demons to succour Gaslark , the king of that country . And now can none surpass Lord Brandoch Daha in feats of arms , save perchance Goldry alone . “ Yet , lo , ” she said , as a sweet and wild music stole on the ear , and the guests turned towards the dais , and the hangings parted , “ at",eddison
27
+ "last , the triple lordship of Demonland ! Strike softly , music : smile , Fates , on this festal day ! Joy and safe days shine for this world and Demonland ! Turn thy gaze first on him who walks in majesty in the midst , his tunic of olive - green velvet ornamented with devices of hidden meaning in thread of gold and beads of chrysolite . Mark how the buskins , clasping his stalwart calves , glitter with gold and amber . Mark the dusky cloak streamed with gold and lined with blood - red silk :",eddison
28
+ "a charmed cloak , made by the sylphs in forgotten days , bringing good hap to the wearer , so he be true of heart and no dastard . Mark him that weareth it , his sweet dark countenance , the violet fire in his eyes , the sombre warmth of his smile , like autumn woods in late sunshine . This is Lord Juss , lord of this age - remembering castle , than whom none hath more worship in wide Demonland . Somewhat he knoweth of art magical , yet useth not that art ; for it sappeth",eddison
29
+ "the life and strength , nor is it held worthy that a Demon should put trust in that art , but rather in his own might and main . “ Now turn thine eyes to him that leaneth on Juss ’s left arm , shorter but mayhap sturdier than he , apparelled in black silk that shimmers with gold as he moveth , and crowned with black eagle ’s feathers among his horns and yellow hair . His face is wild and keen like a sea - eagle ’s , and from his bristling brows the eyes dart glances sharp",eddison
30
+ "as a glancing spear . A faint flame , pallid like the fire of a Will - o’-the - Wisp , breathes ever and anon from his distended nostrils . This is Lord Spitfire , impetuous in war . “ Last , behold on Juss ’s right hand , yon lord that bulks mighty as Hercules yet steppeth lightly as a heifer . The thews and sinews of his great limbs ripple as he moves beneath a skin whiter than ivory ; his cloak of cloth of gold is heavy with jewels , his tunic of black sendaline hath great",eddison
31
+ "hearts worked thereon in rubies and red silk thread . Slung from his shoulders clanks a two - handed sword , the pommel a huge star - ruby carven in the image of a heart , for the heart is his sign and symbol . This is that sword forged by the elves , wherewith he slew the sea - monster , as thou mayest see in the painting on the wall . Noble is he of countenance , most like to his brother Juss , but darker brown of hair and ruddier of hue and bigger of cheekbone .",eddison
32
+ "Look well on him , for never shall thine eyes behold a greater champion than the Lord Goldry Bluszco , captain of the hosts of Demonland . ” Now when the greetings were done and the strains of the lutes and recorders sighed and lost themselves in the shadowy vault of the roof , the cupbearers did fill great gems made in form of cups with ancient wine , and the Demons caroused to Lord Juss deep draughts in honour of this day of his nativity . And now they were ready to set forth by twos and threes into",eddison
33
+ "the parks and pleasaunces , some to take their pleasure about the fair gardens and fishponds , some to hunt wild game among the wooded hills , some to disport themselves at quoits or tennis or riding at the ring or martial exercises ; that so they might spend the livelong day as befitteth high holiday , in pleasure and action without care , and thereafter revel in the lofty presence chamber till night grew old with eating and drinking and all delight . But as they were upon going forth , a trumpet was sounded without , three strident",eddison
34
+ "blasts . “ What killjoy have we here ? ” said Spitfire . “ The trumpet soundeth only for travellers from the outlands . I feel it in my bones some rascal is come to Galing , one that bringeth ill hap in his pocket and a shadow athwart the sun on this our day of festival . ” “ Speak no word of ill omen , ” answered Juss . “ Whosoe’er it be , we will straight dispatch his business and so fall to pleasure indeed . Some , run to the gate and bring him in .",eddison
35
+ "” The serving man hastened and returned , saying , “ Lord , it is an Ambassador from Witchland and his train . Their ship made land at Lookinghaven - ness at nightfall . They slept on board , and your soldiers gave them escort to Galing at break of day . He craveth present audience . ” “ From Witchland , ha ? ” said Juss . “ Such smokes use ever to go before the fire . ” “ Shall ’s bid the fellow , ” said Spitfire , “ wait on our pleasure ? It is pity",eddison
36
+ "such should poison our gladness . ” Goldry laughed and said , “ Whom hath he sent us ? Laxus , think you ? to make his peace with us again for that vile part of his practised against us off Kartadza , detestably falsifying his word he had given us ? ” Juss said to the serving man , “ Thou sawest the Ambassador . Who is he ? ” “ Lord , ” answered he , “ His face was strange to me . He is little of stature and , by your highness ’ leave , the",eddison
37
+ "most unlike to a great lord of Witchland that ever I saw . And , by your leave , for all the marvellous rich and sumptuous coat a weareth , he is very like a false jewel in a rich casing . ” “ Well , ” said Juss , “ a sour draught sweetens not in the waiting . Call we in the Ambassador . ” Lord Juss sat in the high seat midmost of the dais , with Goldry on his right in the seat of black opal , and on his left Spitfire , throned on the",eddison
38
+ "alexandrite . On the dais sat likewise those other lords of Demonland , and the guests of lower degree thronged the benches and the polished tables as the wide doors opened on their silver hinges , and the Ambassador with pomp and ceremony paced up the shining floor of marble and green tourmaline . “ Why , what a beastly fellow is this ? ” said Lord Goldry in his brother ’s ear . “ His hairy hands reach down to his knees . A shuffleth in his walk like a hobbled jackass . ” “ I like not the",eddison
39
+ "dirty face of the Ambassador , ” said Lord Zigg . “ His nose sitteth flat on the face of him as it were a dab of clay , and I can see pat up his nostrils a summer day ’s journey into his head . If ’s upper lip bespeak him not a rare spouter of rank fustian , perdition catch me . Were it a finger ’s breadth longer , a might tuck it into his collar to keep his chin warm of a winter ’s night . ” “ I like not the smell of the Ambassador",eddison
40
+ ", ” said Lord Brandoch Daha . And he called for censers and sprinklers of lavender and rose water to purify the chamber , and let open the crystal windows that the breezes of heaven might enter and make all sweet . So the Ambassador walked up the shining floor and stood before the lords of Demonland that sat upon the high seats between the golden hippogriffs . He was robed in a long mantle of scarlet velvet lined with ermine , with crabs , woodlice , and centipedes worked thereon in golden thread . His head was covered with",eddison
41
+ "a black velvet cap with a peacock ’s feather fastened with a brooch of silver . Supported by his trainbearers and attendants , and leaning on his golden staff , he with raucous accent delivered his mission : “ Juss , Goldry , and Spitfire , and ye other Demons , I come before you as the Ambassador of Gorice XI , most glorious King of Witchland , Lord and great Duke of Buteny and Estremerine , Commander of Shulan , Thramnë , Mingos , and Permio , and High Warden of the Esamocian Marches , Great Duke of Trace",eddison
42
+ ", King Paramount of Beshtria and Nevria and Prince of Ar , Great Lord over the country of Ojedia , Maltraëny , and of Baltary and Toribia , and Lord of many other countries , most glorious and most great , whose power and glory is over all the world and whose name shall endure for all generations . And first I bid you be bound by that reverence for my sacred office of envoy from the King , which is accorded by all people and potentates , save such as be utterly barbarous , to ambassadors and envoys .",eddison
43
+ "” “ Speak and fear not , ” answered Juss . “ Thou hast mine oath . And that hath never been forsworn , to Witch or other barbarian . ” The Ambassador shot out his lips in an O , and threatened with his head ; then grinned , laying bare his sharp and misshapen teeth , and proceeded : “ Thus saith King Gorice , great and glorious , and he chargeth me to deliver it to you , neither adding any word nor taking away : ‘ I have it in mind that no ceremony of homage",eddison
44
+ "or fealty hath been performed before me by the dwellers in my province of Demonland — ’   ” As the rustling of dry leaves strewn in a flagged court when a sudden wind striketh them , there went a stir among the guests . Nor might the Lord Spitfire contain his wrath , but springing up and clapping hand to sword - hilt , as minded to do a hurt to the Ambassador , “ Province ? ” he cried . “ Are not the Demons a free people ? And is it to be endured that Witchland should",eddison
45
+ "commission this slave to cast insults in our teeth , and this in our own castle ? ” A murmur went about the hall , and here and there folk rose from their seats . The Ambassador drew down his head between his shoulders like a tortoise , baring his teeth and blinking with his small eyes . But Lord Brandoch Daha , lightly laying his hand on Spitfire ’s arm , said : “ The Ambassador hath not ended his message , cousin , and thou hast frightened him . Have patience and spoil not the comedy . We",eddison
46
+ "shall not lack words to answer King Gorice : no , nor swords , if he must have them . But it shall not be said of us of Demonland that it needeth but a boorish message to turn us from our ancient courtesy toward ambassadors and heralds . ” So spake Lord Brandoch Daha , in lazy half - mocking tone , as one who but idly returneth the ball of conversation ; yet clearly , so that all might hear . And therewith the murmurs died down , and Spitfire said , “ I am tame . Say",eddison
47
+ "thine errand freely , and imagine not that we shall hold thee answerable for aught thou sayest , but him that sent thee . ” “ Whose humble mouthpiece I only am , ” said the Ambassador , somewhat gathering courage ; “ and who , saving your reverence , lacketh not the will nor the power to take revenge for any outrage done upon his servants . Thus saith the King : ‘ I therefore summon and command you , Juss , Spitfire , and Goldry Bluszco , to make haste and come to me in Witchland in my",eddison
48
+ "fortress of Carcë , and there dutifully kiss my toe , in witness before all the world that I am your Lord and King , and rightful overlord of all Demonland . ’   ” Gravely and without gesture Lord Juss harkened to the Ambassador , leaning back in his high seat with either arm thrown athwart the arched neck of a hippogriff . Goldry , smiling scornfully , toyed with the hilt of his great sword . Spitfire sat strained and glowering , the sparks crackling at his nostrils . “ Thou hast delivered all ? ” said Juss",eddison
49
+ ". “ All , ” answered the Ambassador . “ Thou shalt have thine answer , ” said Juss . “ While we take rede thereon , eat and drink ; ” and he beckoned the cupbearer to pour out bright wine for the Ambassador . But the Ambassador excused himself , saying that he was not athirst , and that he had store of food and wine aboard of his ship , which should suffice his needs and those of his following . Then said Lord Spitfire , “ No marvel though the spawn of Witchland fear venom in",eddison
50
+ "the cup . They who work commonly such villany against their enemies , as witness Recedor of Goblinland whom Corsus murthered with a poisonous draught , shake still in the knees lest themselves be so entertained to their destruction ; ” and snatching the cup he quaffed it to the dregs , and dashed it on the marble floor before the Ambassador , so that it was shivered into pieces . And the lords of Demonland rose up and withdrew behind the flowery hangings into a chamber apart , to determine of their answer to the message sent unto them",eddison
51
+ "by King Gorice of Witchland . When they were private together , Spitfire spake and said , “ Is it to be borne that the King should put such shame and mockery upon us ? Could a not at the least have made a son of Corund or of Corsus his Ambassador to bring us his defiance , ’ stead of this filthiest of his domestics , a gibbering dwarf fit only to make them gab and game at their tippling bouts when they be three parts senseless with boosing ? ” Lord Juss smiled somewhat scornfully . “ With",eddison
52
+ "wisdom , ” he said , “ and with foresight hath Witchland made choice of his time to move against us , knowing that thirty and three of our well - built ships are sunken in Kartadza Sound in the battle with the Ghouls , and but fourteen remain to us . Now that the Ghouls are slain , every soul , and utterly abolished from this world , and so the great curse and peril of all this world ended by the sword and great valour of Demonland alone , now seemeth the happy moment unto these late mouth",eddison
53
+ "- friends to fall upon us . For have not the Witches a strong fleet of ships , since their whole fleet fled at the beginning of their fight with us against the Ghouls , leaving us to bear the burden ? And now are they minded for this new treason , to set upon us traitorously and suddenly in this disadvantage . For the King well judgeth we can carry no army to Witchland nor do aught in his despite , but must be long months a - shipbuilding . And doubt not he holdeth an armament ready aboard",eddison
54
+ "at Tenemos to sail hither if he get the answer he knoweth we shall send him . ” “ Sit we at ease then , ” said Goldry , “ sharpening our swords ; and let him ship his armies across the salt sea . Not a Witch shall land in Demonland but shall leave here his blood and bones to make fat our cornfields and our vineyards . ” “ Rather , ” said Spitfire , “ apprehend this rascal , and put to sea today with the fourteen ships left us . We can surprise Witchland in his",eddison
55
+ "strong place of Carcë , sack it , and give him to the crows to peck at , or ever he is well awake to the swiftness of our answer . That is my counsel . ” “ Nay , ” said Juss , “ we shall not take him sleeping . Be certain that his ships are ready and watching in the Witchland seas , prepared against any rash onset . It were folly to set our neck in the noose ; and little glory to Demonland to await his coming . This , then , is my rede",eddison
56
+ ": I will bid Gorice to the duello , and make offer to him to let lie on the fortune thereof the decision of this quarrel . ” “ A good rede , if it might be fulfilled , ” said Goldry . “ But never will he dare to stand with weapons in single combat ’ gainst thee or ’ gainst any of us . Nevertheless the thing shall be brought about . Is not Gorice a mighty wrastler , and hath he not in his palace in Carcë the skulls and bones of ninety and nine great champions",eddison
57
+ "whom he hath vanquished and slain in that exercise ? Puffed up beyond measure is he in his own conceit , and folk say it is a grief to him that none hath been found this long while that durst wrastle with him , and woefully he pineth for the hundredth . He shall wrastle a fall with me ! ” Now this seemed good to them all . So when they had talked on it awhile and concluded what they would do , glad of heart the lords of Demonland turned them back to the lofty presence chamber .",eddison
58
+ "And there Lord Juss spake and said : “ Demons , ye have heard the words which the King of Witchland in the overweening pride and shamelessness of his heart hath spoken unto us by the mouth of this Ambassador . Now this is our answer which my brother shall give , the Lord Goldry Bluszco ; and we charge thee , O Ambassador , to deliver it truly , neither adding any word nor taking away . ” And the Lord Goldry spake : “ We , the lords of Demonland , do utterly scorn thee , Gorice XI",eddison
59
+ ", for the greatest of dastards , in that thou basely fleddest and forsookest us , thy sworn confederates , in the sea battle against the Ghouls . Our swords , which in that battle ended so great a curse and peril to all this world , are not bent nor broken . They shall be sheathed in the bowels of thee and thy minions , Corsus to wit , and Corund , and their sons , and Corinius , and what other evildoers harbour in waterish Witchland , sooner than one little sea - pink growing on the cliffs",eddison
60
+ "of Demonland shall do thee obeisance . But , that thou mayest , if so thou wilt , feel our power somewhat , I , Lord Goldry Bluszco , make thee this offer : that thou and I do match ourselves singly each against other to wrastle three falls at the court of the Red Foliot , who inclineth neither to our side nor to thine in this quarrel . And we will bind ourselves by mighty oaths to these conditions , that if I overcome thee , the Demons shall leave you of Witchland in peace , and ye",eddison
61
+ "them , and the Witches shall forswear forever their impudent claims on Demonland . But if thou , Gorice , win the day , then hast thou the glory of that victory , and withal full liberty to thrust thy claims upon us with the sword . ” So spake the Lord Goldry Bluszco , standing in great pride and splendour beneath the starry canopy , and scowling terribly on the Ambassador from Witchland , so that the Ambassador was abashed and his knees smote together . And Goldry called his scribe and made him write the message for Gorice",eddison
62
+ "the King in great characters on a roll of parchment , and the lords of Demonland sealed it with their seals , and gave it to the Ambassador . The Ambassador took it and made haste to depart ; but when he was come to the stately doorway of the presence chamber , being near the door and amongst his attendants , and away from the lords of Demonland , he plucked up heart a little and turned and said : “ Rashly and to thy certain undoing , O Goldry Bluszco , hast thou bidden our Lord the King",eddison
63
+ "to contend with thee in wrastling . For be thou never so mighty of limb , yet hath he overthrown as mighty . And he wrastleth not for sport , but will surely work thy life ’s decay , and keep the dead bones of thee with the bones of the ninety and nine champions whom he hath heretofore laid low in that exercise . ” Therewith , because Goldry and the other lords scowled upon him terribly , and the guests near the door fell to hooting and reviling of the Witches , the Ambassador went forth hastily and",eddison
64
+ "hastily down the shining stairs and across the court , as one who fleeth along a lane on a dark and windy night , daring not to turn his head lest his eye behold some fearsome thing prepared to clasp him . So speeding , he was fain to catch up about his knees the folds of his velvet cloak richly worked with crabs and creeping things ; and huge whooping and laughter went up among the common lag of people without , to behold his long and nerveless tail thus bared to their unfriendly gaze . Insomuch that they",eddison
65
+ "fell to shouting with one accord , “ Though his mouth be foul he hath a fair tail ! Saw ye not his tail ? Hurrah for Gorice who hath sent us a monkey for his Ambassador ! ” And with jibe and unmannerly yell the crowd hung lovingly upon the Ambassador and his train all the way down from Galing castle to the quays . So that it was like a sweet homecoming to him to come on board his well - built ship and have her rowed amain out of Lookinghaven . So when they had rounded Lookinghaven",eddison
66
+ "- ness and were free of the land , they hoisted sail and voyaged before a favouring breeze eastward over the teeming deep to Witchland . II The Wrastling for Demonland Of the prognosticks which troubled Lord Gro concerning the meeting between the King of Witchland and the Lord Goldry Bluszco ; and how they met , and of the issue of that wrastling . “ How could I have fallen asleep ? ” cried Lessingham . “ Where is the castle of the Demons , and how did we leave the great presence chamber where they saw the Ambassador",eddison
67
+ "? ” For he stood on rolling uplands that leaned to the sea , treeless on every side as far as the eye might reach ; and on three sides shimmered the sea , kissed by the sun and roughened by the salt - glad wind that charged over the downs , charioting clouds without number through the illimitable heights of air . The little black martlet answered him , “ My hippogriff travelleth as well in time as in space . Days and weeks have been left behind by us , in what seemeth to thee but the twinkling",eddison
68
+ "of an eye , and thou standest in the Foliot Isles , a land happy under the mild regiment of a peaceful prince , on the day appointed by King Gorice to wrastle with Lord Goldry Bluszco . Terrible must be the wrastling betwixt two such champions , and dark the issue thereof . And my heart is afraid for Goldry Bluszco , big and strong though he be and unconquered in war ; for there hath not arisen in all the ages such a wrastler as this Gorice , and strong he is , and hard and unwearying ,",eddison
69
+ "and skilled in every art of attack and defence , and subtle withal , and cruel and fell like a serpent . ” Where they stood the down was cut by a combe that descended to the sea , and overhanging the combe was the palace of the Red Foliot , rambling and low , with many little towers and battlements , built of stones hewn from the wall of the combe , so that it was hard from a distance to discern what was palace and what native rock . Behind the palace stretched a meadow , flat and",eddison
70
+ "smooth , carpeted with the close wiry turf of the downs . At either end of the meadow were booths set up , to the north the booths of them of Witchland , and to the south the booths of the Demons . In the midst of the meadow was a space marked out with withies sixty paces either way for the wrastling ground . Only the birds of the air and the sea - wind were abroad as then , save those that walked armed before the Witches ’ booths , six in company , harnessed as for battle",eddison
71
+ "in byrnies of shining bronze , with greaves and shields of bronze and helms that glanced in the sun . Five were proper slender youths , the eldest of whom had not yet beard full grown , black - browed and great of jaw ; the sixth , huge as a neat , topped them by half a head . Age had flecked with gray the beard that spread over his big chest to his belt stiffened with studs of iron , but the vigour of youth was in his glance and in his voice , and in the tread",eddison
72
+ "of his foot , and in his fist so lightly handling his burly spear . “ Behold , wonder , and lament , ” said the martlet , “ that the innocent eye of day should be enforced still to look upon the children of night everlasting . Corund of Witchland and his cursed sons . ” Lessingham thought , “ A most fiery politician is my little martlet : damned fiends and angels and nothing betwixt for her . But I ’ll dance to none of their tunes , but wait for these things ’ unfolding . ” So",eddison
73
+ "walked those back and forth as caged lions before the Witches ’ booths , until Corund halted and leaning on his spear said to one of his sons , “ Go in and seek out Gro that I may speak with him . ” And the son of Corund went , and returned anon with Lord Gro , that came with furtive step , yet goodly and fair to behold . The nose of him was hooked like a sickle and his eyes great and fair like the eyes of an ox , inscrutable as they . Lean and spare",eddison
74
+ "was his frame . Pale was his face and pale his delicate hands , and his long black beard was tightly curled and bright as the coat of a black retriever . Corund said , “ How is it with the King ? ” Gro answered him , “ He chafeth to be at it ; and to pass away the time he playeth at dice with Corinius , and the luck goeth against the King . ” “ What makest thou of that ? ” asked Corund . And Gro said , “ The fortune of the dice jumpeth",eddison
75
+ "not commonly with the fortune of war . ” Corund grunted in his beard , and laying his large hand on Lord Gro ’s shoulder , “ Speak to me a little apart , ” he said ; and when they were private , “ Darken not counsel , ” said Corund , “ to me and my sons . Have I not these four years past been as a brother unto thee , and wilt thou still be secret toward us ? ” But Gro smiled a sad smile and said , “ Why should we by words of",eddison
76
+ "ill omen strike yet another blow where the tree tottereth ? ” Corund groaned . “ Omens , ” said he , “ increase upon us from that time forth when the King accepted the challenge , evilly , and flatly against thy counsel and mine and the counsel of all the great ones in the land . Surely the Gods have made him fey , having ordained his destruction and our humbling before these Demons . ” And he said , “ Omens thicken upon us , O Gro . First , the night raven that went widdershins round",eddison
77
+ "about the palace of Carcë , that night when the King accepted this challenge , and we were all drunken with wine after our great feasting and surfeiting in his halls . Next , the stumbling of the King whenas he went upon the poop of the long ship which bare us on this voyage to these islands . Next , the squint - eyed cupbearer that poured out unto us yesternight . And throughout , the devilish pride and bragging humour of the King . No more : he is fey . And the dice fall against him .",eddison
78
+ "” Gro spake and said , “ O Corund , I will not hide it from thee that my heart is heavy as thy heart under shadow of ill to be . For as I lay sleeping betwixt the strokes of night , a dream of the night stood by my bed and beheld me with a glance so fell that I was all adrad and quaking with fear . And it seemed to me that the dream smote the roof above my bed , and the roof opened and disclosed the outer dark , and in the dark travelled",eddison
79
+ "a bearded star , and the night was quick with fiery signs . And blood was on the roof , and great gouts of blood on the walls and on the cornice of my bed . And the dream screeched like the screech - owl , and cried , Witchland from thy hand , O King ! And methought the whole world was lighted in a lowe , and with a great cry I awoke out of the dream . ” “ Thou art wise , ” said Corund ; “ and belike the dream was a true dream ,",eddison
80
+ "sent thee through the gate of horn , and belike it forebodeth events great and evil for the King and for Witchland . ” Gro said , “ Disclose it not to the others , for none can strive with Fate and gain the victory , and it would but cast down their hearts . But it is fitting we be ready against evil hap . If ( which yet may the Gods forfend ) ill come of this wrastling bout , fail not every one of you ere you act on any enterprise to take counsel of me .",eddison
81
+ "‘ Bare is back without brother behind it . ’ Together must we do that we do . ” “ Thou hast my firm assurance on’t , ” said Corund . Now began a great company to come forth from the palace and take their stand on either side of the wrastling ground . The Red Foliot sate in his car of polished ebony , drawn by six black horses with flowing manes and tails ; before him went his musicians , pipers and minstrels doing their craft , and behind him fifty spearmen , weighed down with armour and",eddison
82
+ "ponderous shields that covered them from chin to toe . Their armour was stained with madder , in such wise that they seemed bathed in blood . Mild to look on was the Red Foliot , yet kingly . His skin was scarlet like the head of the green woodpecker . He wore a diadem of silver , and robes of scarlet trimmed with black fur . So when the Foliots were assembled , one stood forth with a horn at the command of the Red Foliot and blew three blasts . Therewith came forth from their booths the lords",eddison
83
+ "of Demonland and their men - at - arms , Juss , Goldry , Spitfire , and Brandoch Daha , all armed as for battle save Goldry , who was muffled in a cloak of cloth of gold with great hearts worked thereon in red silk thread . And from their booths in turn came the lords of Witchland all armed , and their fighting men , and little love there was in the glances they and the Demons cast upon each other . In the midst stalked the King , his great limbs muffled , like Goldry ’s ,",eddison
84
+ "in a cloak : and it was of black silk lined with black bearskin , and ornamented with crabs worked in diamonds . The crown of Witchland , fashioned like a hideous crab and encrusted with jewels so thickly that none might discern the iron whereof it was framed , weighed on his beetling brow . His beard was black and bristly , spade - shaped and thick : his hair close cropped . His upper lip was shaved , displaying his sneering mouth , and from the darkness below his eyebrows looked forth eyes that showed a green light",eddison
85
+ ", like those of a wolf . Corund walked at the King ’s left elbow , his giant frame an inch less in stature than the King . Corinius went on the right , wearing a rich cloak of sky - blue tissue over his shining armour . Tall and soldier - like was Corinius , and young and goodly to look upon , with swaggering gait and insolent eye , thick - lipped withal and somewhat heavy of feature , and the sun shone brightly on his shaven jowl . Now the Red Foliot let sound the horn again",eddison
86
+ ", and standing in his ebony car he read out the conditions , as thus : “ O Gorice XI , most glorious King of Witchland , and O Lord Goldry Bluszco , captain of the hosts of Demonland , it is compact betwixt you , and made fast by mighty oaths whereof I , the Red Foliot , am keeper , that ye shall wrastle three falls together on these conditions , namely , that if Gorice the King be victorious , then hath he that glory and withal full liberty to enforce with the sword his claims of",eddison
87
+ "lordship over many - mountained Demonland : but if victory fall to the Lord Goldry Bluszco , then shall the Demons let the Witches abide in peace , and they them , and the Witches shall forswear forever their claims of lordship over the Demons . And you , O King , and you , O Goldry Bluszco , are likewise bound by oath to wrastle fairly and to abide by the ruling of me , the Red Foliot , whom ye are content to choose as your umpire . And I do swear to judge justly between you .",eddison
88
+ "And the laws of your wrastling are that neither shall strangle his adversary with his hands , nor bite him , nor claw nor scratch his flesh , nor poach out his eyes , nor smite him with his fists , nor do any other unfair thing against him , but in all other respects ye shall wrastle freely together . And he that shall be brought to earth with hip or shoulder shall be accounted fallen . ” The Red Foliot said , “ Have I spoken well , O King , and do you swear to these conditions",eddison
89
+ "? ” The King said , “ I swear . ” The Red Foliot asked in like manner , “ Dost thou swear to these conditions , O Lord Goldry Bluszco ? ” And Goldry answered him , “ I swear . ” Without more ado the King stepped into the wrastling ground on his side , and Goldry Bluszco on his , and they cast aside their rich mantles and stood forth naked for the wrastling . And folk stood silent for admiration of the thews and sinews of those twain , doubting which were mightier of build and",eddison
90
+ "likelier to gain the victory . The King stood taller by a little , and was longer in the arm than Goldry . But the great frame of Goldry showed excellent proportions , each part wedded to each as in the body of a God , and if either were brawnier of chest it was he , and he was thicker of neck than the King . Now the King mocked Goldry , saying , “ Rebellious hound , it is fit that I make demonstration unto thee , and unto these Foliots and Demons that witness our meeting ,",eddison
91
+ "that I am thy King and Lord not by virtue only of this my crown of Witchland , which I thus put by for an hour , but even by the power of my body over thine and by my might and main . Be satisfied that I will not have done with thee until I have taken away thy life , and sent thy soul squealing bodiless into the unknown . And thy skull and thy marrowbones will I have away to Carcë , to my palace , to be a token unto all the world that I have",eddison
92
+ "been the bane of an hundredth great champion by my wrastling , and thou not least among them that I have slain in that exercise . Thereafter , when I have eaten and drunken and made merry in my royal palace at Carcë , I will sail with my armies over the teeming deep to many - mountained Demonland . And it shall be my footstool , and these other Demons the slaves of me , yea , and the slaves of my slaves . ” But the Lord Goldry Bluszco laughed lightly and said to the Red Foliot ,",eddison
93
+ "“ O Red Foliot , I am not come hither to contend with the King of Witchland in windy railing , but to match my strength against his , sinew against sinew . ” Now they stood ready , and the Red Foliot made a sign with his hand , and the cymbals clashed for the first bout . At the clash the two champions advanced and clasped one another with their strong arms , each with his right arm below and left arm above the other ’s shoulder , until the flesh shrank beneath the might of their arms",eddison
94
+ "that were as brazen bands . They swayed a little this way and that , as great trees swaying in a storm , their legs planted firmly so that they seemed to grow out of the ground like the trunks of oak trees . Nor did either yield ground to other , nor might either win a master hold upon his enemy . So swayed they back and forth for a long time , breathing heavily . And now Goldry , gathering his strength , gat the King lifted a little from the ground , and was minded to swing",eddison
95
+ "him round and so dash him to earth . But the King , in that moment when he found himself lifted , leaned forward mightily and smote his heel swiftly round Goldry ’s leg on the outside , striking him behind and a little above the ankle , in such wise that Goldry was fain to loosen his hold on the King ; and greatly folk marvelled that he was able in that plight to save himself from being thrown backward by the King . So they gripped again until red wheals rose on their backs and shoulders by reason",eddison
96
+ "of the grievous clasping of their arms . And the King on a sudden twisted his body sideways , with his left side turned from Goldry ; and catching with his leg Goldry ’s leg on the inside below the great muscle of the calf , and hugging him yet closer , he lurched mightily against him , striving to pull Goldry backward and so fall upon him and crush him as they fell to earth . But Goldry leaned violently forward , ever tightening his hold on the King , and so violently bare he forward in his strength",eddison
97
+ "that the King was baulked of his design ; and clutched together they fell both to earth side by side with a heavy crash , and lay bemused while one might count half a score . The Red Foliot proclaimed them even in this bout , and each returned to his fellows to take breath and rest for a space . Now while they rested , a flittermouse flew forth from the Witchland booths and went widdershins round the wrastling ground and so returned silently whence she came . Lord Gro saw her , and his heart waxed heavy within",eddison
98
+ "him . He spake to Corund and said , “ Needs must that I make trial even at this late hour if there be not any means to turn the King from further adventuring of himself , ere all be lost . ” Corund said , “ Be it as thou wilt , but it will be in vain . ” So Gro stood by the King and said , “ Lord , give over this wrastling . Great of growth and mightier of limb than any that you did overcome aforetime is this Demon , yet have you vanquished",eddison
99
+ "him . For you did throw him , as we plainly saw , and wrongfully hath the Red Foliot adjudged you evenly matched because in the throwing of him your majesty ’s self did fall to earth . Tempt not the fates by another bout . Yours is the victory in this wrastling : and now we , your servants , wait but your nod to make a sudden onslaught on these Demons and slay them , as we may lightly overcome them taken at unawares . And for the Foliots , they be peaceful and sheep - like folk",eddison
100
+ ", and will be held in awe when we have smitten the Demons with the edge of the sword . So may you depart , O King , with pleasure and great honour , and afterward fare to Demonland and bring it into subjection . ” The King looked sourly upon Lord Gro , and said , “ Thy counsel is unacceptable and unseasonable . What lieth behind it ? ” Gro answered , “ There have been omens , O King . ” And the King said , “ What omens ? ” Gro answered and said , “",eddison
101
+ "I will not hide it from you , O my Lord the King , that in my sleep about the darkest hour a dream of the night came to my bed and beheld me with a glance so fell that the hairs of my head stood up and pale terror gat hold upon me . And methought the dream smote up the roof above my bed , and the roof yawned to the naked air of the midnight , that laboured with fiery signs , and a bearded star travelling in the houseless dark . And I beheld the roof",eddison
h-g-wells_the-wonderful-visit.csv ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ text,label
2
+ "I the Night of the Strange Bird on the Night of the Strange Bird , many people at Sidderton ( and some nearer ) see a Glare on the Sidderford moor . but no one in Sidderford see it , for most of Sidderford be abe . all day the wind have be rise , so that the lark on the moor chirrup fitfully near the ground , or rise only to be drive like leave before the wind . the sun set in a bloody welter of cloud , and the moon be hide . the Glare , they",hg_wells
3
+ "say , be golden like a beam shine out of the sky , not a uniform blaze , but break all over by curve flash like the waving of sword . it last but a moment and leave the night dark and obscure . there be letter about it in Nature , and a rough drawing that no one think very like . ( you may see it for yourself — the drawing that be unlike the Glare — on page 42 of Vol . CCLX of that publication . ) none in Sidderford see the light , but Annie",hg_wells
4
+ ", Hooker Durgan ’s wife , be lie awake , and she see the reflection of it — a flicker tongue of gold — dance on the wall . she , too , be one of those who hear the sound . the other who hear the sound be Lumpy Durgan , the half - wit , and Amory ’s mother . they say it be a sound like child singe and a throbbing of harp string , carry on a rush of note like that which sometimes come from an organ . it begin and end like the opening",hg_wells
5
+ "and shutting of a door , and before and after they hear nothing but the night wind howl over the moor and the noise of the cave under Sidderford cliff . Amory ’s mother say she want to cry when she hear it , but Lumpy be only sorry he could hear no more . that be as much as anyone can tell you of the Glare upon Sidderford Moor and the allege music therewith . and whether these have any real connection with the Strange Bird whose history follow , be more than I can say . but I",hg_wells
6
+ "set it down here for reason that will be more apparent as the story proceed . II the come of the Strange Bird Sandy Bright be come down the road from Spinner ’s carry a side of bacon he have take in exchange for a clock . he see nothing of the light but he hear and see the Strange Bird . he suddenly hear a flapping and a voice like a woman wail , and be a nervous man and all alone , he be alarmed forthwith , and turn ( all a - tremble ) see something large",hg_wells
7
+ "and black against the dim darkness of the cedar up the hill . it seem to be come right down upon he , and incontinently he drop his bacon and set off run , only to fall headlong . he try in vain — such be his state of mind — to remember the beginning of the Lord ’s Prayer . the strange bird flap over he , something large than himself , with a vast spread of wing , and , as he think , black . he scream and give himself up for lost . then it go",hg_wells
8
+ "past he , sail down the hill , and , soar over the vicarage , vanish into the hazy valley towards Sidderford . and Sandy Bright lie upon his stomach there , for ever so long , stare into the darkness after the strange bird . at last he get upon his knee and begin to thank Heaven for his merciful deliverance , with his eye downhill . he go on down into the village , talk aloud and confess his sin as he go , lest the strange bird should come back . all who hear he think he",hg_wells
9
+ "drunk . but from that night he be a changed man , and have do with drunkenness and defraud the revenue by sell silver ornament without a licence . and the side of bacon lie upon the hillside until the tallyman from Portburdock find it in the morning . the next who see the Strange Bird be a solicitor ’s clerk at Iping Hanger , who be climb the hill before breakfast , to see the sunrise . save for a few dissolve wisps of cloud the sky have be blow clear in the night . at first he think",hg_wells
10
+ "it be an eagle he see . it be near the zenith , and incredibly remote , a mere bright speck above the pink cirri , and it seem as if it flutter and beat itself against the sky , as an imprisoned swallow might do against a window pane . then down it come into the shadow of the earth , sweep in a great curve towards Portburdock and round over the Hanger , and so vanish behind the wood of Siddermorton Park . it seem large than a man . just before it be hide , the light",hg_wells
11
+ "of the rise sun smite over the edge of the down and touch its wing , and they flash with the brightness of flame and the colour of precious stone , and so pass , leave the witness agape . a ploughman go to his work , along under the stone wall of Siddermorton Park , see the Strange Bird flash over he for a moment and vanish among the hazy interstice of the beech tree . but he see little of the colour of the wing , witness only that its leg , which be long , seem pink",hg_wells
12
+ "and bare like naked flesh , and its body mottle white . it smite like an arrow through the air and be go . these be the first three eyewitness of the Strange Bird . now in these day one do not cower before the devil and one ’s own sinfulness , or see strange iridiscent wing in the light of dawn , and say nothing of it afterwards . the young solicitor ’s clerk tell his mother and sister at breakfast , and , afterwards , on his way to the office at Portburdock , speak of it to",hg_wells
13
+ "the blacksmith of Hammerpond , and spend the morning with his fellow clerk marvel instead of copy deed . and Sandy Bright go to talk the matter over with Mr.   Jekyll , the "" primitive "" minister , and the ploughman tell old Hugh and afterwards the vicar of Siddermorton . "" they be not an imaginative race about here , "" say the Vicar of Siddermorton , "" I wonder how much of that be true . bar that he think the wing be brown it sound uncommonly like a Flamingo . "" iii the hunting of the",hg_wells
14
+ "Strange Bird the Vicar of Siddermorton ( which be nine mile inland from Siddermouth as the crow fly ) be an ornithologist . some such pursuit , botany , antiquity , folklore , be almost inevitable for a single man in his position . he be give to geometry also , propound occasionally impossible problem in the Educational Times , but ornithology be his forte . he have already add two visitor to the list of occasional british bird . his name be well - know in the column of the Zoologist ( I be afraid it may be forget",hg_wells
15
+ "by now , for the world move apace ) . and on the day after the coming of the Strange Bird , come first one and then another to confirm the ploughman ’s story and tell he , not that it have any connection , of the Glare upon Sidderford moor . now , the Vicar of Siddermorton have two rival in his scientific pursuit ; Gully of Sidderton , who have actually see the Glare , and who it be send the drawing to Nature , and Borland the natural history dealer , who keep the marine laboratory at",hg_wells
16
+ "Portburdock . Borland , the Vicar thought , should have stick to his copepod , but instead he keep a taxidermist , and take advantage of his littoral position to pick up rare sea bird . it be evident to anyone who know anything of collect that both these man would be scour the country after the strange visitant , before twenty - four hour be out . the Vicar ’s eye rest on the back of saunder ' British Birds , for he be in his study at the time . already in two place there be enter :",hg_wells
17
+ """ the only know british speciman be secure by the Rev. K. Hilyer , Vicar of Siddermorton . "" a third such entry . he doubt if any other collector have that . he look at his watch — two . he have just lunch , and usually he "" rest "" in the afternoon . he know it would make he feel very disagreeable if he go out into the hot sunshine — both on the top of his head and generally . yet Gully perhaps be out , prowl observant . suppose it be something very good and",hg_wells
18
+ "Gully get it ! his gun stand in the corner . ( the thing have iridiscent wing and pink leg ! the chromatic conflict be certainly exceedingly stimulating ) . he take his gun . he would have go out by the glass door and verandah , and down the garden into the hill road , in order to avoid his housekeeper ’s eye . he know his gun expedition be not approve of . but advance towards he up the garden , he see the curate ’s wife and her two daughter , carry tennis racket . his curate",hg_wells
19
+ "’s wife be a young woman of immense will , who use to play tennis on his lawn , and cut his rose , differ from he on doctrinal point , and criticise his personal behaviour all over the parish . he go in abject fear of she , be always try to propitiate she . but so far he have clung to his ornithology .   … however , he go out by the front door . IV the hunting of the Strange Bird ( continue ) if it be not for collector England would be full , so",hg_wells
20
+ "to speak , of rare bird and wonderful butterfly , strange flower and a thousand interesting thing . but happily the collector prevent all that , either kill with his own hand or , by buy extravagantly , procure people of the low class to kill such eccentricity as appear . it make work for people , even though act of Parliament interfere . in this way , for instance , he be kill off the chough in Cornwall , the Bath white butterfly , the Queen of Spain Fritillary ; and can plume himself upon the extermination of the",hg_wells
21
+ "Great Auk , and a hundred other rare bird and plant and insect . all that be the work of the collector and his glory alone . in the name of Science . and this be right and as it should be ; eccentricity , in fact , be immorality — think over it again if you do not think so now — just as eccentricity in one ’s way of thinking be madness ( I defy you to find another definition that will fit all the case of either ) ; and if a species be rare it follow",hg_wells
22
+ "that it be not fit to survive . the collector be after all merely like the foot soldier in the day of heavy armour — he leave the combatant alone and cut the throat of those who be overthrow . so one may go through England from end to end in the summer time and see only eight or ten commonplace wild flower , and the commoner butterfly , and a dozen or so common bird , and never be offend by any breach of the monotony , any splash of strange blossom or flutter of unknown wing . all",hg_wells
23
+ "the rest have be "" collect "" year ago . for which cause we should all love collector , and bear in mind what we owe they when their little collection be display . these camphorate little drawer of theirs , their glass case and blot - paper book , be the grave of the Rare and the Beautiful , the symbol of the Triumph of Leisure ( morally spend ) over the Delights of Life . ( all of which , as you very properly remark , have nothing whatever to do with the Strange Bird . ) v",hg_wells
24
+ "the hunting of the Strange Bird ( continue ) there be a place on the moor where the black water shine among the succulent moss , and the hairy sundew , eater of careless insect , spread its red - stain hungry hand to the God who give his creature — one to feed another . on a ridge thereby grow birch with a silvery bark , and the soft green of the larch mingle with the dark green fir . thither through the honey hum heather come the Vicar , in the heat of the day , carry a",hg_wells
25
+ "gun under his arm , a gun load with swanshot for the Strange Bird . and over his disengaged hand he carry a pocket handkerchief wherewith , ever and again , he wipe his beady face . he go by and on past the big pond and the pool full of brown leave where the Sidder arise , and so by the road ( which be at first sandy and then chalky ) to the little gate that go into the park . there be seven step up to the gate and on the further side six down again —",hg_wells
26
+ "lest the deer escape — so that when the Vicar stand in the gateway his head be ten foot or more above the ground . and look where a tumult of bracken frond fill the hollow between two group of beech , his eye catch something particoloure that waver and go . suddenly his face gleam and his muscle grow tense ; he duck his head , clutch his gun with both hand , and stand still . then watch keenly , he come on down the step into the park , and still hold his gun in both hand",hg_wells
27
+ ", creep rather than walk towards the jungle of bracken . nothing stir , and he almost fear that his eye have play he false , until he reach the fern and have go rustle breast high into they . then suddenly rise something full of waver colour , twenty yard or less in front of his face , and beat the air . in another moment it have flutter above the bracken and spread its pinion wide . he see what it be , his heart be in his mouth , and he fire out of pure surprise and",hg_wells
28
+ "habit . there be a scream of superhuman agony , the wing beat the air twice , and the victim came slant swiftly downward and strike the ground — a struggle heap of writhe body , broken wing and fly bloodstaine plume — upon the turfy slope behind . the Vicar stand aghast , with his smoking gun in his hand . it be no bird at all , but a youth with an extremely beautiful face , clothe in a robe of saffron and with iridescent wing , across whose pinion great wave of colour , flush of purple",hg_wells
29
+ "and crimson , golden green and intense blue , pursue one another as he writhe in his agony . never have the Vicar see such gorgeous flood of colour , not stain glass window , not the wing of butterfly , not even the glory of crystal see between prism , no colour on earth could compare with they . twice the Angel raise himself , only to fall over sideways again . then the beating of the wing diminish , the terrified face grow pale , the flood of colour abate , and suddenly with a sob he lie",hg_wells
30
+ "prone , and the change hue of the broken wing fade swiftly into one uniform dull grey hue . "" oh ! what have happen to I ? "" cry the Angel ( for such it be ) , shudder violently , hand outstretche and clutch the ground , and then lie still . "" dear I ! "" say the Vicar . "" I have no idea . "" he come forward cautiously . "" excuse I , "" he say , "" I be afraid I have shoot you . "" it be the obvious remark . the",hg_wells
31
+ "Angel seem to become aware of his presence for the first time . he raise himself by one hand , his brown eye stare into the Vicar ’s . then , with a gasp , and bite his nether lip , he struggle into a sit position and survey the Vicar from top to toe . "" a man ! "" say the Angel , clasp his forehead ; "" a man in the mad black clothe and without a feather upon he . then I be not deceive . I be indeed in the Land of Dreams ! """,hg_wells
32
+ "VI the Vicar and the Angel now there be some thing frankly impossible . the weak intellect will admit this situation be impossible . the Athenaeum will probably say as much should it venture to review this . sunbespattered fern , spread beech tree , the Vicar and the gun be acceptable enough . but this Angel be a different matter . plain sensible people will scarcely go on with such an extravagant book . and the Vicar fully appreciate this impossibility . but he lack decision . consequently he go on with it , as you shall immediately hear",hg_wells
33
+ ". he be hot , it be after dinner , he be in no mood for mental subtlety . the Angel have he at a disadvantage , and far distract he from the main issue by irrelevant iridescence and a violent fluttering . for the moment it never occur to the Vicar to ask whether the Angel be possible or not . he accept he in the confusion of the moment , and the mischief be do . put yourself in his place , my dear Athenaeum . you go out shooting . you hit something . that alone would",hg_wells
34
+ "disconcert you . you find you have hit an Angel , and he writhe about for a minute and then sit up and address you . he make no apology for his own impossibility . indeed , he carry the charge clean into your camp . "" a man ! "" he say , point . "" a man in the mad black clothe and without a feather upon he . then I be not deceive . I be indeed in the Land of Dreams ! "" you must answer he . unless you take to your heel . or",hg_wells
35
+ "blow his brain out with your second barrel as an escape from the controversy . "" the Land of Dreams ! pardon I if I suggest you have just come out of it , "" be the Vicar ’s remark . "" how can that be ? "" say the Angel . "" your wing , "" say the Vicar , "" be bleed . before we talk , may I have the pleasure — the melancholy pleasure — of tie it up ? I be really most sincerely sorry .   … "" the Angel put his hand behind",hg_wells
36
+ "his back and wince . the Vicar assist his victim to stand up . the Angel turn gravely and the Vicar , with numberless insignificant pant parenthesis , carefully examine the injure wing . ( they articulate , he observe with interest , to a kind of second glenoid on the outer and upper edge of the shoulder blade . the left wing have suffer little except the loss of some of the primary wing - quill , and a shot or so in the ala spuria , but the humerus bone of the right be evidently smash . )",hg_wells
37
+ "the Vicar stanch the bleeding as well as he could and tie up the bone with his pocket handkerchief and the neck wrap his housekeeper make he carry in all weather . "" I ’m afraid you will not be able to fly for some time , "" say he , feel the bone . "" I do n’t like this new sensation , "" say the Angel . "" the pain when I feel your bone ? "" "" the what ? "" say the Angel . "" the pain . "" ""   ' pain’—you call it .",hg_wells
38
+ "no , I certainly do n’t like the pain . do you have much of this pain in the Land of Dreams ? "" "" a very fair share , "" say the Vicar . "" be it new to you ? "" "" quite , "" say the Angel . "" I do n’t like it . "" "" how curious ! "" say the Vicar , and bit at the end of a strip of linen to tie a knot . "" I think this bandaging must serve for the present , "" he say . "" I",hg_wells
39
+ "’ve study ambulance work before , but never the bandaging up of wing wound . be your pain any well ? "" "" it glow now instead of flash , "" say the Angel . "" I be afraid you will find it glow for some time , "" say the Vicar , still intent on the wound . the Angel give a shrug of the wing and turn round to look at the Vicar again . he have be try to keep an eye on the Vicar over his shoulder during all their interview . he look at he",hg_wells
40
+ "from top to toe with raise eyebrow and a grow smile on his beautiful soft - feature face . "" it seem so odd , "" he say with a sweet little laugh , "" to be talk to a man ! "" "" do you know , "" say the Vicar , "" now that I come to think of it , it be equally odd to I that I should be talk to an Angel . I be a somewhat matter - of - fact person . a Vicar have to be . angel I have always regard",hg_wells
41
+ "as — artistic conception — "" "" exactly what we think of man . "" "" but surely you have see so many man — "" "" never before today . in picture and book , time enough of course . but I have see several since the sunrise , solid real man , besides a horse or so — those unicorn thing you know , without horn — and quite a number of those grotesque knobby thing call ' cow . ' I be naturally a little frightened at so many mythical monster , and come to hide here",hg_wells
42
+ "until it be dark . I suppose it will be dark again presently like it be at first . Phew ! this pain of yours be poor fun . I hope I shall wake up directly . "" "" I do not understand quite , "" say the Vicar , knit his brow and tap his forehead with his flat hand . "" mythical monster ! "" the bad thing he have be call for year hitherto be a "" medieval anachronism "" ( by an advocate of Disestablishment ) . "" do I understand that you consider I as",hg_wells
43
+ "— as something in a dream ? "" "" of course , "" say the Angel smile . "" and this world about I , these rugged tree and spread frond — "" "" be all so very dreamlike , "" say the Angel . "" just exactly what one dream of — or artist imagine . "" "" you have artist then among the Angels ? "" "" all kind of artist , Angels with wonderful imagination , who invent man and cow and eagle and a thousand impossible creature . "" "" impossible creature ! "" say the",hg_wells
44
+ "Vicar . "" impossible creature , "" say the Angel . "" myth . "" "" but I ’m real ! "" say the Vicar . "" I assure you I ’m real . "" the Angel shrug his wing and wince and smile . "" I can always tell when I be dream , "" he say . "" you — dream , "" say the Vicar . he look round he . "" you dream ! "" he repeat . his mind work diffusely . he hold out his hand with all his finger move . "" I",hg_wells
45
+ "have it ! "" he say . "" I begin to see . "" a really brilliant idea be dawn upon his mind . he have not study mathematic at Cambridge for nothing , after all . "" tell I please . some animal of your world   … of the Real World , real animal you know . "" "" real animal ! "" say the Angel smile . "" why — there ’s Griffins and Dragons — and jabberwock — and Cherubim — and Sphinxes — and the Hippogriff — and mermaid — and satyr — and .",hg_wells
46
+ "  … "" "" thank you , "" say the Vicar as the Angel appear to be warm to his work ; "" thank you . that be quite enough . I begin to understand . "" he pause for a moment , his face purse up . "" yes   … I begin to see it . "" "" see what ? "" ask the Angel . "" the Griffins and Satyrs and so forth . it ’ as clear .   … "" "" I do not see they , "" say the Angel . "" no ,",hg_wells
47
+ "the whole point be they be not to be see in this world . but our man with imagination have tell we all about they , you know . and even I at time   … there be place in this village where you must simply take what they set before you , or give offence — I , I say , have see in my dream jabberwock , Bogle brute , Mandrakes .   … from our point of view , you know , they be Dream Creatures .   … "" "" Dream Creatures ! "" say the",hg_wells
48
+ "Angel . "" how singular ! this be a very curious dream . a kind of topsy - turvey one . you call man real and angel a myth . it almost make one think that in some odd way there must be two world as it be .   … "" "" at least two , "" say the Vicar . "" lie somewhere close together , and yet scarcely suspect .   … "" "" as near as page to page of a book . "" "" penetrate each other , live each its own life . this",hg_wells
49
+ "be really a delicious dream ! "" "" and never dream of each other . "" "" except when people go a - dreaming ! "" "" yes , "" say the Angel thoughtfully . "" it must be something of the sort . and that remind I . sometimes when I have be drop asleep , or drowse under the noontide sun , I have see strange corrugated face just like your , go by I , and tree with green leave upon they , and such queer uneven ground as this .   … it must be so",hg_wells
50
+ ". I have fall into another world . "" "" sometimes , "" begin the Vicar , "" at bedtime , when I have be just on the edge of consciousness , I have see face as beautiful as your , and the strange dazzle vista of a wonderful scene , that flow past I , wing shape soar over it , and wonderful — sometimes terrible — form go to and fro . I have even hear sweet music too in my ear .   … it may be that as we withdraw our attention from the world of",hg_wells
51
+ "sense , the press world about we , as we pass into the twilight of repose , other world .   … just as we see the star , those other world in space , when the glare of day recede .   … and the artistic dreamer who see such thing most clearly .   … "" they look at one another . "" and in some incomprehensible manner I have fall into this world of yours out of my own ! "" say the Angel , "" into the world of my dream , grow real . """,hg_wells
52
+ "he look about he . "" into the world of my dream . "" "" it be confusing , "" say the Vicar . "" it almost make one think there may be ( ahem ) four dimension after all . in which case , of course , "" he go on hurriedly — for he love geometrical speculation and take a certain pride in his knowledge of them—“there may be any number of three - dimensional universe pack side by side , and all dimly dream of one another . there may be world upon world , universe upon",hg_wells
53
+ "universe . it ’ perfectly possible . there ’ nothing so incredible as the absolutely possible . but I wonder how you come to fall out of your world into mine .   … "" "" dear I ! "" say the Angel ; "" there ’ deer and a stag ! just as they draw they on the coat of arm . how grotesque it all seem ! can I really be awake ? "" he rub his knuckle into his eye . the half - dozen of dapple deer come in indian file obliquely through the tree and",hg_wells
54
+ "halt , watch . "" it ’ no dream — I be really a solid concrete Angel , in Dream Land , "" say the Angel . he laugh . the Vicar stand survey he . the Reverend gentleman be pull his mouth askew after a habit he have , and slowly stroke his chin . he be ask himself whether he too be not in the Land of Dreams . VII the Vicar and the Angel ( continue ) now in the land of the Angels , so the Vicar learn in the course of many conversation , there",hg_wells
55
+ "be neither pain nor trouble nor death , marry nor give in marriage , birth nor forget . only at time new thing begin . it be a land without hill or dale , a wonderfully level land , glitter with strange building , with incessant sunlight or full moon , and with incessant breeze blow through the aeolian tracery of the tree . it be Wonderland , with glitter sea hang in the sky , across which strange fleet go sailing , none know whither . there the flower glow in Heaven and the star shine about one ’s",hg_wells
56
+ "foot and the breath of life be a delight . the land go on forever — there be no solar system nor interstellar space such as there be in our universe — and the air go upward past the sun into the uttermost abyss of their sky . and there be nothing but Beauty there — all the beauty in our art be but feeble rendering of faint glimpse of that wonderful world , and our composer , our original composer , be those who hear , however faintly , the dust of melody that drive before its wind .",hg_wells
57
+ "and the Angels , and wonderful monster of bronze and marble and living fire , go to and fro therein . it be a land of law — for whatever be , be under the law — but its law all , in some strange way , differ from ours . their geometry be different because their space have a curve in it so that all their plane be cylinder ; and their law of gravitation be not accord to the law of inverse square , and there be four - and - twenty primary colour instead of only three",hg_wells
58
+ ". Most of the fantastic thing of our science be commonplace there , and all our earthly science would seem to they the mad dreaming . there be no flower upon their plant , for instance , but jet of coloured fire . that , of course , will seem mere nonsense to you because you do not understand most of what the Angel tell the Vicar , indeed the Vicar could not realise , because his own experience , be only of this world of matter , war against his understanding . it be too strange to imagine .",hg_wells
59
+ "what have jolt these twin universe together so that the Angel have fall suddenly into Sidderford , neither the Angel nor the Vicar could tell . nor for the matter of that could the author of this story . the author be concern with the fact of the case , and have neither the desire nor the confidence to explain they . explanation be the fallacy of a scientific age . and the cardinal fact of the case be this , that out in Siddermorton Park , with the glory of some wonderful world where there be neither sorrow nor",hg_wells
60
+ "sighing , still cling to he , on the 4th of August 1895 , stand an Angel , bright and beautiful , talk to the Vicar of Siddermorton about the plurality of world . the author will swear to the Angel , if need be ; and there he draw the line . viii the Vicar and the Angel ( continue ) "" I have , "" say the Angel , "" a most unusual feeling — here . have have since sunrise . I do n’t remember ever have any feeling — here before . "" "" not pain",hg_wells
61
+ ", I hope , "" say the Vicar . "" oh no ! it be quite different from that — a kind of vacuous feeling . "" "" the atmospheric pressure , perhaps , be a little different , "" the Vicar begin , feel his chin . "" and do you know , I have also the most curious sensation in my mouth — almost as if — it ’s so absurd!—as if I want to stuff thing into it . "" "" bless I ! "" say the Vicar . "" of course ! you ’re hungry !",hg_wells
62
+ """ "" hungry ! "" say the Angel . "" what ’s that ? "" "" do not you eat ? "" "" eat ! the word ’ quite new to I . "" "" put food into your mouth , you know . one have to here . you will soon learn . if you do n’t , you get thin and miserable , and suffer a great deal — pain , you know — and finally you die . "" "" die ! "" say the Angel . "" that ’s another strange word ! "" "" it",hg_wells
63
+ "’ not strange here . it mean leave off , you know , "" say the Vicar . "" we never leave off , "" say the Angel . "" you do not know what may happen to you in this world , "" say the Vicar , think he over . "" possibly if you be feel hungry , and can feel pain and have your wing break , you may even have to die before you get out of it again . at any rate you have well try eat . for my own part — ahem!—there be",hg_wells
64
+ "many more disagreeable thing . "" "" I suppose I have well eat , "" say the Angel . "" if it ’s not too difficult . I do n’t like this ' pain ' of your , and I do n’t like this ' hungry . ' if your ' die ' be anything like it , I would prefer to eat . what a very odd world this be ! "" "" to die , "" say the Vicar , "" be generally consider bad than either pain or hunger .   … it depend . "" """,hg_wells
65
+ "you must explain all that to I later , "" say the Angel . "" unless I wake up . at present , please show I how to eat . if you will . I feel a kind of urgency .   … "" "" pardon I , "" say the Vicar , and offer an elbow . "" if I may have the pleasure of entertain you . my house lie yonder — not a couple of mile from here . "" "" your House ! "" say the Angel a little puzzle ; but he take the Vicar",hg_wells
66
+ "’s arm affectionately , and the two , converse as they go , wade slowly through the luxuriant bracken , sun mottle under the tree , and on over the stile in the park paling , and so across the bee - swarm heather for a mile or more , down the hillside , home . you would have be charm at the couple could you have see they . the Angel , slight of figure , scarcely five foot high , and with a beautiful , almost effeminate face , such as an italian old Master might have paint",hg_wells
67
+ ". indeed , there be one in the National Gallery ( Tobias and the Angel , by some artist unknown ) not at all unlike he so far as face and spirit go . he be robe simply in a purple - wrought saffron blouse , bare kneed and barefoote , with his wing ( break now , and a leaden grey ) fold behind he . the Vicar be a short , rather stout figure , rubicund , red - haired , clean - shaven , and with bright ruddy brown eye . he wear a piebald straw hat",hg_wells
68
+ "with a black ribbon , a very neat white tie , and a fine gold watch - chain . he be so greatly interested in his companion that it only occur to he when he be in sight of the vicarage that he have leave his gun lie just where he have drop it amongst the bracken . he be rejoice to hear that the pain of the bandaged wing fall rapidly in intensity . ix parenthesis on Angels let we be plain . the Angel of this story be the Angel of Art , not the Angel that one",hg_wells
69
+ "must be irreverent to touch — neither the Angel of religious feeling nor the Angel of popular belief . the last we all know . she be alone among the angelic host in be distinctly feminine : she wear a robe of immaculate , unmitigated white with sleeve , be fair , with long golden tress , and have eye of the blue of Heaven . just a pure woman she be , pure maiden or pure matron , in her robe de nuit , and with wing attach to her shoulder blade . her calling be domestic and sympathetic",hg_wells
70
+ ", she watch over a cradle or assist a sister soul heavenward . often she bear a palm leaf , but one would not be surprised if one meet she carry a warming - pan softly to some poor chilly sinner . she it be who come down in a bevy to Marguerite in prison , in the amend last scene in Faust at the Lyceum , and the interesting and improve little child that be to die young , have vision of such angel in the novel of Mrs.   Henry Wood . this white womanliness with her indescribable",hg_wells
71
+ "charm of lavender - like holiness , her aroma of clean , methodical life , be , it would seem after all , a purely teutonic invention . latin think know she not ; the old master have none of she . she be of a piece with that gentle innocent ladylike school of art whereof the great triumph be "" a lump in one ’s throat , "" and where wit and passion , scorn and pomp , have no place . the white angel be make in Germany , in the land of blonde woman and the domestic",hg_wells
72
+ "sentiment . she come to we cool and worshipful , pure and tranquil , as silently soothing as the breadth and calmness of the starlit sky , which also be so unspeakably dear to the teutonic soul .   … we do her reverence . and to the angel of the Hebrews , those spirit of power and mystery , to Raphael , Zadkiel , and Michael , of whom only Watts have catch the shadow , of whom only Blake have see the splendour , to they too , do we do reverence . but this Angel the Vicar",hg_wells
73
+ "shot be , we say , no such angel at all , but the Angel of italian art , polychromatic and gay . he come from the land of beautiful dream and not from any holier place . at good he be a popish creature . Bear patiently , therefore , with his scattered remex , and be not hasty with your charge of irreverence before the story be read . X at the vicarage the Curate ’s wife and her two daughter and Mrs.   Jehoram be still play at tennis on the lawn behind the Vicar ’s study",hg_wells
74
+ ", play keenly and talk in gasp about paper pattern for blouse . but the Vicar forgot and come in that way . they see the Vicar ’s hat above the rhododendron , and a bare curly head beside he . "" I must ask he about Susan Wiggin , "" say the Curate ’s wife . she be about to serve , and stand with a racket in one hand and a ball between the finger of the other . "" he really ought to have go to see she — be the Vicar . not George . I",hg_wells
75
+ "— ah ! "" for the two figure suddenly turn the corner and be visible . the Vicar , arm in arm with — you see , it come on the Curate ’s wife suddenly . the Angel ’s face be towards she she see nothing of the wing . only a face of unearthly beauty in a halo of chestnut hair , and a graceful figure clothe in a saffron garment that barely reach the knee . the thought of those knee flash upon the Vicar at once . he too be horrorstruck . so be the two girl",hg_wells
76
+ "and Mrs.   Jehoram . all horrorstruck . the Angel stare in astonishment at the horrorstruck group . you see , he have never see anyone horrorstruck before . "" Mis — ter Hilyer ! "" say the Curate ’s wife . "" this be too much ! "" she stand speechless for a moment . "" oh ! "" she sweep round upon the rigid girl . "" come ! "" the Vicar open and shut his voiceless mouth . the world hum and spin about he . there be a whirling of zephyr skirt , four impassioned face",hg_wells
77
+ "sweep towards the open door of the passage that run through the vicarage . he feel his position go with they . "" Mrs.   Mendham , "" say the Vicar , step forward . "" Mrs.   Mendham . you do not understand — "" "" oh ! "" they all say again . one , two , three , four skirt vanish in the doorway . the Vicar stagger half way across the lawn and stop , aghast . "" this come , "" he hear the Curate ’s wife say , out of the depth of the",hg_wells
78
+ "passage , "" of have an unmarried vicar—. "" the umbrella stand wobble . the front door of the vicarage slam like a minute gun . there be silence for a space . "" I might have think , "" he say . "" she be always so hasty . "" he put his hand to his chin — a habit with he . then turn his face to his companion . the Angel be evidently well breed . he be hold up Mrs.   Jehoram ’s sunshade — she have leave it on one of the cane chair —",hg_wells
79
+ "and examine it with extraordinary interest . he open it . "" what a curious little mechanism ! "" he say . "" what can it be for ? "" the Vicar do not answer . the angelic costume certainly be — the Vicar know it be a case for a french phrase — but he could scarcely remember it . he so rarely use French . it be not de trop , he know . anything but de trop . the Angel be de trop , but certainly not his costume . ah ! Sans culotte ! the Vicar",hg_wells
80
+ "examine his visitor critically — for the first time . "" he will be difficult to explain , "" he say to himself softly . the Angel stick the sunshade into the turf and go to smell the sweet briar . the sunshine fall upon his brown hair and give it almost the appearance of a halo . he prick his finger . "" Odd ! "" he say . "" pain again . "" "" yes , "" say the Vicar , think aloud . "" he ’ very beautiful and curious as he be . I should like",hg_wells
81
+ "he good so . but I be afraid I must . "" he approach the Angel with a nervous cough . XI at the vicarage ( continue ) "" those , "" say the Vicar , "" be lady . "" "" how grotesque , "" say the Angel , smile and smell the sweet briar . "" and such quaint shape ! "" "" possibly , "" say the Vicar . "" do you , ahem , notice how they behave ? "" "" they go away . Seemed , indeed , to run away . frightened ? I",hg_wells
82
+ ", of course , be frighten at thing without wing . I hope — they be not frightened at my wing ? "" "" at your appearance generally , "" say the Vicar , glance involuntarily at the pink foot . "" dear I ! it never occur to I . I suppose I seem as odd to they as you do to I . "" he glance down . "" and my foot . you have hoof like a hippogriff . "" "" boot , "" correct the Vicar . "" boot , you call they ! but anyhow",hg_wells
83
+ ", I be sorry I alarm — "" "" you see , "" say the Vicar , stroke his chin , "" our lady , ahem , have peculiar view — rather inartistic view — about , ahem , clothing . dress as you be , I be afraid , I be really afraid that — beautiful as your costume certainly be — you will find yourself somewhat , ahem , somewhat isolated in society . we have a little proverb , ' when in Rome , ahem , one must do as the Romans do . ' I can",hg_wells
84
+ "assure you that , assume you be desirous to , ahem , associate with we — during your involuntary stay — "" the Angel retreat a step or so as the Vicar come near and nearer in his attempt to be diplomatic and confidential . the beautiful face grow perplexed . "" I do n’t quite understand . why do you keep make these noise in your throat ? be it Die or eat , or any of those .   … "" "" as your host , "" interrupt the Vicar , and stop . "" as my host",hg_wells
85
+ ", "" say the Angel . "" would you object , pende more permanent arrangement , to invest yourself , ahem , in a suit , an entirely new suit I may say , like this I have on ? "" "" oh ! "" say the Angel . he retreat so as to take in the Vicar from top to toe . "" wear clothe like your ! "" he say . he be puzzle but amuse . his eye grow round and bright , his mouth pucker at the corner . "" Delightful ! "" he say ,",hg_wells
86
+ "clap his hand together . "" what a mad , quaint dream this be ! where be they ? "" he catch at the neck of the saffron robe . "" indoor ! "" say the Vicar . "" this way . we will change — indoor ! "" xii at the vicarage ( continue ) so the Angel be invest in a pair of nether garment of the Vicar ’s , a shirt , rip down the back ( to accommodate the wing ) , sock , shoe — the Vicar ’s dress shoe — collar , tie ,",hg_wells
87
+ "and light overcoat . but put on the latter be painful , and remind the Vicar that the bandaging be temporary . "" I will ring for tea at once , and send Grummet down for Crump , "" say the Vicar . "" and dinner shall be early . "" while the Vicar shout his order on the landing rail , the Angel survey himself in the cheval glass with immense delight . if he be a stranger to pain , he be evidently no strange — thank perhaps to dream — to the pleasure of incongruity . they",hg_wells
88
+ "have tea in the drawing - room . the Angel sit on the music stool ( music stool because of his wing ) . at first he want to lie on the hearthrug . he look much less radiant in the Vicar ’s clothe , than he have do upon the moor when dress in saffron . his face shine still , the colour of his hair and cheek be strangely bright , and there be a superhuman light in his eye , but his wing under the overcoat give he the appearance of a hunchback . the garment ,",hg_wells
89
+ "indeed , make quite a terrestrial thing of he , the trouser be pucker transversely , and the shoe a size or so too large . he be charmingly affable and quite ignorant of the most elementary fact of civilization . eating come without much difficulty , and the Vicar have an entertaining time teach he how to take tea . "" what a mess it be ! what a dear grotesque ugly world you live in ! "" say the Angel . "" fancy stuff thing into your mouth ! we use our mouth just to talk and sing",hg_wells
90
+ "with . our world , you know , be almost incurably beautiful . we get so very little ugliness , that I find all this   … delightful . "" Mrs. the Angel shuffle about the room with his cup of tea in one hand , and the bread and butter in the other , and examine the Vicar ’s furniture . outside the french window , the lawn with its array of dahlia and sunflower glow in the warm sunlight , and Mrs.   Jehoram ’s sunshade stand thereon like a triangle of fire . he think the Vicar",hg_wells
91
+ "’s portrait over the mantel very curious indeed , could not understand what it be there for . "" you have yourself round , "" he say , apropos of the portrait , "" why want yourself flat ? "" and he be vastly amuse at the glass fire screen . he find the oak chair odd—“You’re not square , be you ? "" he say , when the Vicar explain their use . "" we never double ourselves up . we lie about on the asphodel when we want to rest . "" "" the chair , "" say",hg_wells
92
+ "the Vicar , "" to tell you the truth , have always puzzle I . it date , I think , from the day when the floor be cold and very dirty . I suppose we have keep up the habit . it ’s become a kind of instinct with we to sit on chair . anyhow , if I go to see one of my parishioner , and suddenly spread myself out on the floor — the natural way of it — I do not know what she would do . it would be all over the parish in",hg_wells
93
+ "no time . yet it seem the natural method of repose , to recline . the Greeks and Romans — "" "" what be this ? "" say the Angel abruptly . "" that ’ a stuff kingfisher . I kill it . "" "" kill it ! "" "" shot it , "" say the Vicar , "" with a gun . "" "" Shot ! as you do I ? "" "" I do not kill you , you see . fortunately . "" "" be kill making like that ? "" "" in a way . """,hg_wells
94
+ """ dear I ! and you want to make I like that — want to put glass eye in I and string I up in a glass case full of ugly green and brown stuff ? "" "" you see , "" begin the Vicar , "" I scarcely understand — "" "" be that ' die ' ? "" ask the Angel suddenly . "" that be dead ; it die . "" "" poor little thing . I must eat a lot . but you say you kill it . why ? "" "" you see , """,hg_wells
95
+ "say the Vicar , "" I take an interest in bird , and I ( ahem ) collect they . I want the speciman — "" the Angel stare at he for a moment with puzzled eye . "" a beautiful bird like that ! "" he say with a shiver . "" because the fancy take you . you want the speciman ! "" he think for a minute . "" do you often kill ? "" he ask the Vicar . xiii the Man of Science then Doctor Crump arrive . Grummet have meet he not a hundred",hg_wells
96
+ "yard from the vicarage gate . he be a large , rather heavy - look man , with a clean - shaven face and a double chin . he be dress in a grey morning coat ( he always affect grey ) , with a chequer black and white tie . "" what ’ the trouble ? "" he say , enter and stare without a shadow of surprise at the Angel ’s radiant face . "" this — ahem — gentleman , "" say the Vicar , "" or — ah — angel”—the Angel bowed—“is suffer from a gunshot",hg_wells
97
+ "wound . "" "" gunshot wound ! "" say Doctor Crump . "" in July ! may I look at it , Mr.—Angel , I think you say ? "" "" he will probably be able to assuage your pain , "" say the Vicar . "" let I assist you to remove your coat ? "" the Angel turn obediently . "" spinal curvature ? "" mutter Doctor Crump quite audibly , walk round behind the Angel . "" no ! abnormal growth . Hullo ! this be odd ! "" he clutch the left wing . "" curious",hg_wells
98
+ ", "" he say . "" reduplication of the anterior limb — bifid coracoid . possible , of course , but I ’ve never see it before . "" the angel wince under his hand . "" Humerus . Radius and Ulna . all there . Congenital , of course . Humerus break . curious integumentary simulation of feather . dear I . almost avian . probably of considerable interest in comparative anatomy . I never did!—how do this gunshot happen , Mr.   Angel ? "" the Vicar be amazed at the Doctor ’s matter - of - fact",hg_wells
99
+ "manner . "" our friend , "" say the Angel , move his head at the Vicar . "" unhappily it be my doing , "" say the Vicar , step forward , explanatory . "" I mistook the gentleman — the Angel ( ahem)—for a large bird — "" "" mistook he for a large bird ! what next ? your eye want see to , "" say Doctor Crump . "" I ’ve tell you so before . "" he go on patting and feeling , keep time with a series of grunt and inarticulate muttering .  ",hg_wells
100
+ "… "" but this be really a very good bit of amateur bandaging , "" say he . "" I think I shall leave it . curious malformation this be ! do not you find it inconvenient , Mr.   Angel ? "" he suddenly walk round so as to look in the Angel ’s face . the Angel think he refer to the wound . "" it be rather , "" he say . "" if it be n’t for the bone I should say paint with iodine night and morning . nothing like iodine . you could paint",hg_wells
101
+ "your face flat with it . but the osseous outgrowth , the bone , you know , complicate thing . I could see they off , of course . it ’ not a thing one should have do in a hurry — "" "" do you mean my wing ? "" say the Angel in alarm . "" wing ! "" say the Doctor . "" Eigh ? call ’em wing ! yes — what else should I mean ? "" "" saw they off ! "" say the Angel . "" do not you think so ? it ’",hg_wells
mark-twain_a-connecticut-yankee-in-king-arthurs-court.csv ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ text,label
2
+ "I camelot "" Camelot — Camelot , "" say I to myself . "" I do not seem to remember hearing of it before . name of the asylum , likely . "" it be a soft , reposeful summer landscape , as lovely as a dream , and as lonesome as Sunday . the air be full of the smell of flower , and the buzzing of insect , and the twittering of bird , and there be no people , no wagon , there be no stir of life , nothing go on . the road be mainly",m_twain
3
+ "a winding path with hoof - print in it , and now and then a faint trace of wheel on either side in the grass — wheel that apparently have a tire as broad as one ’s hand . presently a fair slip of a girl , about ten year old , with a cataract of golden hair stream down over her shoulder , come along . around her head she wear a hoop of flame - red poppy . it be as sweet an outfit as ever I see , what there be of it . she walk indolently",m_twain
4
+ "along , with a mind at rest , its peace reflect in her innocent face . the circus man pay no attention to she ; do not even seem to see she . and she — she be no more startled at his fantastic make - up than if she be use to his like every day of her life . she be go by as indifferently as she might have go by a couple of cow ; but when she happen to notice I , then there be a change ! up go her hand , and she be",m_twain
5
+ "turn to stone ; her mouth drop open , her eye stare wide and timorously , she be the picture of astonish curiosity touch with fear . and there she stand gaze , in a sort of stupefied fascination , till we turn a corner of the wood and be lose to her view . that she should be startle at I instead of at the other man , be too many for I ; I could not make head or tail of it . and that she should seem to consider I a spectacle , and totally overlook her",m_twain
6
+ "own merit in that respect , be another puzzle thing , and a display of magnanimity , too , that be surprising in one so young . there be food for thought here . I move along as one in a dream . as we approach the town , sign of life begin to appear . at interval we pass a wretched cabin , with a thatched roof , and about it small field and garden patch in an indifferent state of cultivation . there be people , too ; brawny man , with long , coarse , uncombed hair",m_twain
7
+ "that hang down over their face and make they look like animal . they and the woman , as a rule , wear a coarse tow - linen robe that come well below the knee , and a rude sort of sandal , and many wear an iron collar . the small boy and girl be always naked ; but nobody seem to know it . all of these people stare at I , talk about I , run into the hut and fetch out their family to gape at I ; but nobody ever notice that other fellow ,",m_twain
8
+ "except to make he humble salutation and get no response for their pain . in the town be some substantial windowless house of stone scatter among a wilderness of thatch cabin ; the street be mere crooked alley , and unpaved ; troop of dog and nude child play in the sun and make life and noise ; hog roam and root contentedly about , and one of they lie in a reeking wallow in the middle of the main thoroughfare and suckle her family . presently there be a distant blare of military music ; it come near ,",m_twain
9
+ "still near , and soon a noble cavalcade wound into view , glorious with plume helmet and flash mail and flaunt banner and rich doublet and horse - cloth and gilded spearhead ; and through the muck and swine , and naked brat , and joyous dog , and shabby hut , it take its gallant way , and in its wake we follow . follow through one wind alley and then another — and climbing , always climb — till at last we gain the breezy height where the huge castle stand . there be an exchange of bugle",m_twain
10
+ "blast ; then a parley from the wall , where man - at - arm , in hauberk and morion , march back and forth with halberd at shoulder under flap banner with the rude figure of a dragon display upon they ; and then the great gate be fling open , the drawbridge be lower , and the head of the cavalcade sweep forward under the frown arch ; and we , follow , soon find ourselves in a great paved court , with tower and turret stretch up into the blue air on all the four side ;",m_twain
11
+ "and all about we the dismount be go on , and much greeting and ceremony , and run to and fro , and a gay display of move and intermingle color , and an altogether pleasant stir and noise and confusion . II King Arthur ’s Court the moment I get a chance I slip aside privately and touch an ancient common look man on the shoulder and say , in an insinuating , confidential way : "" friend , do I a kindness . do you belong to the asylum , or be you just on a visit or",m_twain
12
+ "something like that ? "" he look I over stupidly , and say : "" Marry , fair sir , I seemeth — "" "" that will do , "" I say ; "" I reckon you be a patient . "" I move away , cogitate , and at the same time keep an eye out for any chance passenger in his right mind that might come along and give I some light . I judge I have find one , presently ; so I draw he aside and say in his ear : "" if I could see",m_twain
13
+ "the head keeper a minute — only just a minute — "" "" prithee do not let I . "" "" let you what ? "" "" hinder I , then , if the word please thee well . "" then he go on to say he be an under - cook and could not stop to gossip , though he would like it another time ; for it would comfort his very liver to know where I get my clothe . as he start away he point and say yonder be one who be idle enough for my purpose",m_twain
14
+ ", and be seek I besides , no doubt . this be an airy slim boy in shrimp - color tight that make he look like a fork carrot , the rest of his gear be blue silk and dainty lace and ruffle ; and he have long yellow curl , and wear a plume pink satin cap tilt complacently over his ear . by his look , he be good - natured ; by his gait , he be satisfied with himself . he be pretty enough to frame . he arrive , look I over with a smile",m_twain
15
+ "and impudent curiosity ; say he have come for I , and inform I that he be a page . "" go ' long , "" I say ; "" you ai not more than a paragraph . "" it be pretty severe , but I be nettle . however , it never faze he ; he do not appear to know he be hurt . he begin to talk and laugh , in happy , thoughtless , boyish fashion , as we walk along , and make himself old friend with I at once ; ask I all sort",m_twain
16
+ "of question about myself and about my clothe , but never wait for an answer — always chatter straight ahead , as if he do not know he have ask a question and be not expect any reply , until at last he happen to mention that he be bear in the beginning of the year 513 . it make the cold chill creep over I ! I stop and say , a little faintly : "" maybe I do not hear you just right . say it again — and say it slow . what year be it ?",m_twain
17
+ """ "" 513 . "" "" 513 ! you do not look it ! come , my boy , I be a stranger and friendless ; be honest and honorable with I . be you in your right mind ? "" he say he be . "" be these other people in their right mind ? "" he say they be . "" and this be n’t an asylum ? I mean , it be n’t a place where they cure crazy people ? "" he say it be n’t . "" well , then , "" I say ,",m_twain
18
+ """ either I be a lunatic , or something just as awful have happen . now tell I , honest and true , where be I ? "" "" in King Arthur ’s Court . "" I wait a minute , to let that idea shudder its way home , and then say : "" and accord to your notion , what year be it now ? "" "" 528 — nineteenth of June . "" I feel a mournful sinking at the heart , and mutter : "" I shall never see my friend again — never , never",m_twain
19
+ "again . they will not be bear for more than thirteen hundred year yet . "" I seem to believe the boy , I do not know why . something in I seem to believe he — my consciousness , as you may say ; but my reason do n’t . my reason straightway begin to clamor ; that be natural . I do not know how to go about satisfy it , because I know that the testimony of man would not serve — my reason would say they be lunatic , and throw out their evidence . but",m_twain
20
+ "all of a sudden I stumble on the very thing , just by luck . I know that the only total eclipse of the sun in the first half of the sixth century occur on the 21st of June , AD 528 , O.S. , and begin at 3 minute after 12 noon . I also know that no total eclipse of the sun be due in what to I be the present year — i.e. , 1879 . so , if I could keep my anxiety and curiosity from eat the heart out of I for forty - eight",m_twain
21
+ "hour , I should then find out for certain whether this boy be tell I the truth or not . wherefore , be a practical Connecticut man , I now shove this whole problem clear out of my mind till its appoint day and hour should come , in order that I might turn all my attention to the circumstance of the present moment , and be alert and ready to make the most out of they that could be make . one thing at a time , be my motto — and just play that thing for all it",m_twain
22
+ "be worth , even if it ’ only two pair and a jack . I make up my mind to two thing : if it be still the nineteenth century and I be among lunatic and could not get away , I would presently boss that asylum or know the reason why ; and if , on the other hand , it be really the sixth century , all right , I do not want any soft thing : I would boss the whole country inside of three month ; for I judge I would have the start of the",m_twain
23
+ "well - educate man in the kingdom by a matter of thirteen hundred year and upward . I ’m not a man to waste time after my mind ’s make up and there ’ work on hand ; so I say to the page : "" now , Clarence , my boy — if that might happen to be your name — i’ll get you to post I up a little if you do n’t mind . what be the name of that apparition that bring I here ? "" "" my master and thine ? that be the good",m_twain
24
+ "knight and great lord Sir Kay the Seneschal , foster brother to our liege the king . "" "" very good ; go on , tell I everything . "" he make a long story of it ; but the part that have immediate interest for I be this : he say I be Sir Kay ’s prisoner , and that in the due course of custom I would be fling into a dungeon and leave there on scant common until my friend ransom I — unless I chance to rot , first . I see that the last chance",m_twain
25
+ "have the good show , but I do not waste any bother about that ; time be too precious . the page say , far , that dinner be about end in the great hall by this time , and that as soon as the sociability and the heavy drinking should begin , Sir Kay would have I in and exhibit I before King Arthur and his illustrious knight seat at the Table Round , and would brag about his exploit in capture I , and would probably exaggerate the fact a little , but it would not be good",m_twain
26
+ "form for I to correct he , and not over safe , either ; and when I be do be exhibit , then ho for the dungeon ; but he , Clarence , would find a way to come and see I every now and then , and cheer I up , and help I get word to my friend . get word to my friend ! I thank he ; I could not do less ; and about this time a lackey come to say I be want ; so Clarence lead I in and take I off to",m_twain
27
+ "one side and sit down by I . well , it be a curious kind of spectacle , and interesting . it be an immense place , and rather naked — yes , and full of loud contrast . it be very , very lofty ; so lofty that the banner depend from the arch beam and girder away up there float in a sort of twilight ; there be a stone - rail gallery at each end , high up , with musician in the one , and woman , clothe in stunning color , in the other .",m_twain
28
+ "the floor be of big stone flag lay in black and white square , rather batter by age and use , and need repair . as to ornament , there be n’t any , strictly speak ; though on the wall hang some huge tapestry which be probably tax as work of art ; battle - piece , they be , with horse shape like those which child cut out of paper or create in gingerbread ; with man on they in scale armor whose scale be represent by round hole — so that the man ’s coat look as",m_twain
29
+ "if it have be do with a biscuit - punch . there be a fireplace big enough to camp in ; and its project side and hood , of carved and pillare stonework , have the look of a cathedral door . along the wall stand man - at - arm , in breastplate and morion , with halberd for their only weapon — rigid as statue ; and that be what they look like . in the middle of this groined and vault public square be an oaken table which they call the Table Round . it be as",m_twain
30
+ "large as a circus ring ; and around it sit a great company of man dress in such various and splendid color that it hurt one ’s eye to look at they . they wear their plume hat , right along , except that whenever one address himself directly to the king , he lift his hat a trifle just as he be begin his remark . mainly they be drink — from entire ox horn ; but a few be still munch bread or gnawing beef bone . there be about an average of two dog to one man",m_twain
31
+ "; and these sit in expectant attitude till a spend bone be fling to they , and then they go for it by brigade and division , with a rush , and there ensue a fight which fill the prospect with a tumultuous chaos of plunge head and body and flash tail , and the storm of howling and barking deafen all speech for the time ; but that be no matter , for the dogfight be always a big interest anyway ; the man rise , sometimes , to observe it the well and bet on it , and",m_twain
32
+ "the lady and the musician stretch themselves out over their baluster with the same object ; and all break into delighted ejaculation from time to time . in the end , the win dog stretch himself out comfortably with his bone between his paw , and proceed to growl over it , and gnaw it , and grease the floor with it , just as fifty other be already do ; and the rest of the court resume their previous industry and entertainment . as a rule , the speech and behavior of these people be gracious and courtly ;",m_twain
33
+ "and I notice that they be good and serious listener when anybody be tell anything — I mean in a dogfightless interval . and plainly , too , they be a childlike and innocent lot ; tell lie of the stateliest pattern with a most gentle and win naivety , and ready and willing to listen to anybody else ’s lie , and believe it , too . it be hard to associate they with anything cruel or dreadful ; and yet they deal in tale of blood and suffering with a guileless relish that make I almost forget to",m_twain
34
+ "shudder . I be not the only prisoner present . there be twenty or more . poor devil , many of they be maim , hack , carve , in a frightful way ; and their hair , their face , their clothing , be cake with black and stiffen drenching of blood . they be suffer sharp physical pain , of course ; and weariness , and hunger and thirst , no doubt ; and at least none have give they the comfort of a wash , or even the poor charity of a lotion for their wound ;",m_twain
35
+ "yet you never hear they utter a moan or a groan , or see they show any sign of restlessness , or any disposition to complain . the thought be force upon I : "" the rascal — they have serve other people so in their day ; it be their own turn , now , they be not expect any well treatment than this ; so their philosophical bearing be not an outcome of mental training , intellectual fortitude , reasoning ; it be mere animal training ; they be white Indians . "" iii knight of the Table",m_twain
36
+ "round mainly the Round Table talk be monologue — narrative account of the adventure in which these prisoner be capture and their friend and backer kill and strip of their steed and armor . as a general thing — as far as I could make out — these murderous adventure be not foray undertake to avenge injury , nor to settle old dispute or sudden falling out ; no , as a rule they be simply duel between stranger — duel between people who have never even be introduce to each other , and between whom exist no cause of",m_twain
37
+ "offense whatever . many a time I have see a couple of boy , stranger , meet by chance , and say simultaneously , "" I can lick you , "" and go at it on the spot ; but I have always imagine until now that that sort of thing belong to child only , and be a sign and mark of childhood ; but here be these big booby stick to it and take pride in it clear up into full age and beyond . yet there be something very engaging about these great simple - hearted creature",m_twain
38
+ ", something attractive and lovable . there do not seem to be brain enough in the entire nursery , so to speak , to bait a fishhook with ; but you do not seem to mind that , after a little , because you soon see that brain be not need in a society like that , and indeed would have mar it , hinder it , spoil its symmetry — perhaps render its existence impossible . there be a fine manliness observable in almost every face ; and in some a certain loftiness and sweetness that rebuke your belittling",m_twain
39
+ "criticism and still they . a most noble benignity and purity repose in the countenance of he they call Sir Galahad , and likewise in the king ’s also ; and there be majesty and greatness in the giant frame and high bearing of Sir Launcelot of the Lake . there be presently an incident which center the general interest upon this Sir Launcelot . at a sign from a sort of master of ceremony , six or eight of the prisoner rise and come forward in a body and knelt on the floor and lift up their hand toward",m_twain
40
+ "the lady ' gallery and beg the grace of a word with the queen . the most conspicuously situate lady in that mass flowerbe of feminine show and finery incline her head by way of assent , and then the spokesman of the prisoner deliver himself and his fellow into her hand for free pardon , ransom , captivity , or death , as she in her good pleasure might elect ; and this , as he say , he be do by command of Sir Kay the Seneschal , whose prisoner they be , he having vanquish they by",m_twain
41
+ "his single might and prowess in sturdy conflict in the field . surprise and astonishment flash from face to face all over the house ; the queen ’s gratified smile fade out at the name of Sir Kay , and she look disappointed ; and the page whisper in my ear with an accent and manner expressive of extravagant derision — "" Sir Kay , forsooth ! oh , call I pet name , dearest , call I a marine ! in twice a thousand year shall the unholy invention of man labor at odd to beget the fellow to",m_twain
42
+ "this majestic lie ! "" every eye be fasten with severe inquiry upon Sir Kay . but he be equal to the occasion . he get up and play his hand like a major — and take every trick . he say he would state the case exactly accord to the fact ; he would tell the simple straightforward tale , without comment of his own ; "" and then , "" say he , "" if ye find glory and honor due , ye will give it unto he who be the mighty man of his hand that ever",m_twain
43
+ "bare shield or strake with sword in the rank of christian battle — even he that sitteth there ! "" and he point to Sir Launcelot . ah , he fetch they ; it be a rattle good stroke . then he go on and tell how Sir Launcelot , seek adventure , some brief time go by , kill seven giant at one sweep of his sword , and set a hundred and forty - two captive maiden free ; and then go far , still seek adventure , and find he ( Sir Kay ) fight a desperate",m_twain
44
+ "fight against nine foreign knight , and straightway take the battle solely into his own hand , and conquer the nine ; and that night Sir Launcelot rise quietly , and dress he in Sir Kay ’s armor and take Sir Kay ’s horse and gat he away into distant land , and vanquish sixteen knight in one pitch battle and thirty - four in another ; and all these and the former nine he make to swear that about Whitsuntide they would ride to Arthur ’s court and yield they to Queen Guenever ’s hand as captive of Sir",m_twain
45
+ "Kay the Seneschal , spoil of his knightly prowess ; and now here be these half dozen , and the rest would be along as soon as they might be heal of their desperate wound . well , it be touch to see the queen blush and smile , and look embarrassed and happy , and fle furtive glance at Sir Launcelot that would have get he shoot in Arkansas , to a dead certainty . everybody praise the valor and magnanimity of Sir Launcelot ; and as for I , I be perfectly amazed , that one man ,",m_twain
46
+ "all by himself , should have be able to beat down and capture such battalion of practiced fighter . I say as much to Clarence ; but this mocking featherhead only say : "" an Sir Kay have have time to get another skin of sour wine into he , ye have see the accompt double . "" I look at the boy in sorrow ; and as I look I see the cloud of a deep despondency settle upon his countenance . I follow the direction of his eye , and see that a very old and white -",m_twain
47
+ "bearded man , clothe in a flow black gown , have rise and be stand at the table upon unsteady leg , and feebly sway his ancient head and survey the company with his watery and wandering eye . the same suffering look that be in the page ’s face be observable in all the face around — the look of dumb creature who know that they must endure and make no moan . "" Marry , we shall have it again , "" sigh the boy ; "" that same old weary tale that he hath tell a thousand",m_twain
48
+ "time in the same word , and that he will tell till he dieth , every time he hath get his barrel full and feeleth his exaggeration - mill a - working . would God I have die or I see this day ! "" "" who be it ? "" "" Merlin , the mighty liar and magician , perdition singe he for the weariness he worketh with his one tale ! but that man fear he for that he hath the storm and the lightning and all the devil that be in hell at his beck and call",m_twain
49
+ ", they would have dig his entrail out these many year ago to get at that tale and squelch it . he telleth it always in the third person , make believe he be too modest to glorify himself — malediction light upon he , misfortune be his dole ! good friend , prithee call I for evensong . "" the boy nestle himself upon my shoulder and pretend to go to sleep . the old man begin his tale ; and presently the lad be asleep in reality ; so also be the dog , and the court ,",m_twain
50
+ "the lackey , and the file of man - at - arm . the droning voice drone on ; a soft snoring arise on all side and support it like a deep and subdued accompaniment of wind instrument . some head be bow upon fold arm , some lie back with open mouth that issue unconscious music ; the fly buzz and bit , unmoleste , the rat swarm softly out from a hundred hole , and patter about , and make themselves at home everywhere ; and one of they sit up like a squirrel on the king ’s",m_twain
51
+ "head and hold a bit of cheese in its hand and nibble it , and dribble the crumb in the king ’s face with naive and impudent irreverence . it be a tranquil scene , and restful to the weary eye and the jade spirit . this be the old man ’s tale . he say : "" right so the king and Merlin depart , and go until an hermit that be a good man and a great leech . so the hermit search all his wound and give he good salve ; so the king be there three",m_twain
52
+ "day , and then be his wound well amend that he might ride and go , and so depart . and as they ride , Arthur say , I have no sword . no force , say Merlin , hereby be a sword that shall be yours and I may . so they ride till they come to a lake , the which be a fair water and broad , and in the midst of the lake Arthur be ware of an arm clothe in white samite , that hold a fair sword in that hand . Lo , say",m_twain
53
+ "Merlin , yonder be that sword that I spake of . with that they see a damsel go upon the lake . what damsel be that ? say Arthur . that be the Lady of the lake , say Merlin ; and within that lake be a rock , and therein be as fair a place as any on Earth , and richly beseen , and this damsel will come to you anon , and then speak ye fair to she that she will give you that sword . Anon withal come the damsel unto Arthur and salute he ,",m_twain
54
+ "and he she again . Damsel , say Arthur , what sword be that , that yonder the arm holdeth above the water ? I would it be mine , for I have no sword . Sir Arthur King , say the damsel , that sword be mine , and if ye will give I a gift when I ask it you , ye shall have it . by my faith , say Arthur , I will give you what gift ye will ask . well , say the damsel , go ye into yonder barge and row yourself to",m_twain
55
+ "the sword , and take it and the scabbard with you , and I will ask my gift when I see my time . so Sir Arthur and Merlin alight , and tie their horse to two tree , and so they go into the ship , and when they come to the sword that the hand hold , Sir Arthur take it up by the handle , and take it with he . "" and the arm and the hand go under the water ; and so they come unto the land and ride forth . and then Sir",m_twain
56
+ "Arthur see a rich pavilion . what signifieth yonder pavilion ? it be the knight ’s pavilion , say Merlin , that ye fight with last , Sir Pellinore , but he be out , he be not there ; he hath ado with a knight of your , that hight Egglame , and they have fight together , but at the last Egglame flee , and else he have be dead , and he hath chase he even to Carlion , and we shall meet with he anon in the highway . that be well say , say Arthur",m_twain
57
+ ", now have I a sword , now will I wage battle with he , and be avenge on he . Sir , ye shall not so , say Merlin , for the knight be weary of fighting and chasing , so that ye shall have no worship to have ado with he ; also , he will not lightly be match of one knight live ; and therefore it be my counsel , let he pass , for he shall do you good service in short time , and his son , after his day . also ye shall",m_twain
58
+ "see that day in short space ye shall be right glad to give he your sister to we d. when I see he , I will do as ye advise I , say Arthur . then Sir Arthur look on the sword , and like it pass well . whether liketh you well , say Merlin , the sword or the scabbard ? I liketh well the sword , say Arthur . Ye be more unwise , say Merlin , for the scabbard be worth ten of the sword , for while ye have the scabbard upon you ye shall",m_twain
59
+ "never lose no blood , be ye never so sore wound ; therefore , keep well the scabbard always with you . so they ride into Carlion , and by the way they meet with Sir Pellinore ; but Merlin have do such a craft that Pellinore see not Arthur , and he pass by without any word . I marvel , say Arthur , that the knight would not speak . Sir , say Merlin , he see you not ; for and he have see you ye have not lightly depart . so they come unto Carlion ,",m_twain
60
+ "whereof his knight be pass glad . and when they hear of his adventure they marvel that he would jeopard his person so alone . but all man of worship say it be merry to be under such a chieftain that would put his person in adventure as other poor knight do . "" IV Sir Dinadan the Humorist it seem to I that this quaint lie be most simply and beautifully tell ; but then I have hear it only once , and that make a difference ; it be pleasant to the other when it be fresh ,",m_twain
61
+ "no doubt . Sir Dinadan the Humorist be the first to awake , and he soon rouse the rest with a practical joke of a sufficiently poor quality . he tie some metal mug to a dog ’s tail and turn he loose , and he tear around and around the place in a frenzy of fright , with all the other dog bellowing after he and batter and crash against everything that come in their way and make altogether a chaos of confusion and a most deafening din and turmoil ; at which every man and woman of the",m_twain
62
+ "multitude laugh till the tear flow , and some fall out of their chair and wallow on the floor in ecstasy . it be just like so many child . Sir Dinadan be so proud of his exploit that he could not keep from tell over and over again , to weariness , how the immortal idea happen to occur to he ; and as be the way with humorist of his breed , he be still laugh at it after everybody else have get through . he be so set up that he conclude to make a speech —",m_twain
63
+ "of course a humorous speech . I think I never hear so many old play - out joke string together in my life . he be bad than the minstrel , bad than the clown in the circus . it seem peculiarly sad to sit here , thirteen hundred year before I be bear , and listen again to poor , flat , worm - eat joke that have give I the dry gripe when I be a boy thirteen hundred year afterwards . it about convince I that there be not any such thing as a new joke possible",m_twain
64
+ ". everybody laugh at these antiquity — but then they always do ; I have notice that , century later . however , of course the scoffer do n’t laugh — I mean the boy . no , he scoff ; there be n’t anything he would not scoff at . he say the most of Sir Dinadan ’s joke be rotten and the rest be petrify . I say "" petrify "" be good ; as I believe , myself , that the only right way to classify the majestic age of some of those joke be by geologic",m_twain
65
+ "period . but that neat idea hit the boy in a blank place , for geology have not be invent yet . however , I make a note of the remark , and calculate to educate the commonwealth up to it if I pull through . it be no use to throw a good thing away merely because the market be n’t ripe yet . now Sir Kay arise and begin to fire up on his history - mill with I for fuel . it be time for I to feel serious , and I do . Sir Kay tell",m_twain
66
+ "how he have encounter I in a far land of barbarian , who all wear the same ridiculous garb that I do — a garb that be a work of enchantment , and intend to make the wearer secure from hurt by human hand . however he have nullify the force of the enchantment by prayer , and have kill my thirteen knight in a three hour ' battle , and take I prisoner , spare my life in order that so strange a curiosity as I be might be exhibit to the wonder and admiration of the king and",m_twain
67
+ "the court . he speak of I all the time , in the blandest way , as "" this prodigious giant , "" and "" this horrible sky - tower monster , "" and "" this tusk and taloned man - devour ogre , "" and everybody take in all this bosh in the naivest way , and never smile or seem to notice that there be any discrepancy between these water statistic and I . he say that in try to escape from he I spring into the top of a tree two hundred cubit high at a single",m_twain
68
+ "bind , but he dislodge I with a stone the size of a cow , which "" all - to brast "" the most of my bone , and then swear I to appear at Arthur ’s court for sentence . he end by condemn I to die at noon on the 21st ; and be so little concerned about it that he stop to yawn before he name the date . I be in a dismal state by this time ; indeed , I be hardly enough in my right mind to keep the run of a dispute that",m_twain
69
+ "spring up as to how I have well be kill , the possibility of the killing be doubt by some , because of the enchantment in my clothe . and yet it be nothing but an ordinary suit of fifteen - dollar slop - shop . still , I be sane enough to notice this detail , to wit : many of the term use in the most matter - of - fact way by this great assemblage of the first lady and gentleman in the land would have make a Comanche blush . indelicacy be too mild a term",m_twain
70
+ "to convey the idea . however , I have read Tom Jones , and Roderick Random , and other book of that kind , and know that the high and first lady and gentleman in England have remain little or no clean in their talk , and in the moral and conduct which such talk imply , clear up to a hundred year ago ; in fact clear into our own nineteenth century — in which century , broadly speak , the early sample of the real lady and real gentleman discoverable in english history — or in european history",m_twain
71
+ ", for that matter — may be say to have make their appearance . suppose Sir Walter , instead of put the conversation into the mouth of his character , have allow the character to speak for themselves ? we should have have talk from Rebecca and Ivanhoe and the soft lady Rowena which would embarrass a tramp in our day . however , to the unconsciously indelicate all thing be delicate . King Arthur ’s people be not aware that they be indecent and I have presence of mind enough not to mention it . they be so troubled",m_twain
72
+ "about my enchanted clothe that they be mightily relieve , at last , when old Merlin sweep the difficulty away for they with a commonsense hint . he ask they why they be so dull — why do n’t it occur to they to strip I . in half a minute I be as naked as a pair of tong ! and dear , dear , to think of it : I be the only embarrassed person there . everybody discuss I ; and do it as unconcernedly as if I have be a cabbage . Queen Guenever be as",m_twain
73
+ "naively interested as the rest , and say she have never see anybody with leg just like mine before . it be the only compliment I get — if it be a compliment . finally I be carry off in one direction , and my perilous clothe in another . I be shove into a dark and narrow cell in a dungeon , with some scant remnant for dinner , some moldy straw for a bed , and no end of rat for company . v an Inspiration I be so tired that even my fear be not able to",m_twain
74
+ "keep I awake long . when I next come to myself , I seem to have be asleep a very long time . my first thought be , "" well , what an astonishing dream I ’ve have ! I reckon I ’ve wake only just in time to keep from be hang or drown or burn or something .   … I ’ll nap again till the whistle blow , and then I ’ll go down to the arm factory and have it out with Hercules . "" but just then I hear the harsh music of rusty chain",m_twain
75
+ "and bolt , a light flash in my eye , and that butterfly , Clarence , stand before I ! I gasp with surprise ; my breath almost get away from I . "" what ! "" I say , "" you here yet ? go along with the rest of the dream ! scatter ! "" but he only laugh , in his lighthearted way , and fall to make fun of my sorry plight . "" all right , "" I say resignedly , "" let the dream go on ; I ’m in no hurry . """,m_twain
76
+ """ Prithee what dream ? "" "" what dream ? why , the dream that I be in Arthur ’s court — a person who never exist ; and that I be talk to you , who be nothing but a work of the imagination . "" "" oh , la , indeed ! and be it a dream that you ’re to be burn tomorrow ? Ho - ho — answer I that ! "" the shock that go through I be distress . I now begin to reason that my situation be in the last degree serious ,",m_twain
77
+ "dream or no dream ; for I know by past experience of the lifelike intensity of dream , that to be burn to death , even in a dream , would be very far from be a jest , and be a thing to be avoid , by any mean , fair or foul , that I could contrive . so I say beseechingly : "" ah , Clarence , good boy , only friend I ’ve get — for you be my friend , be n’t you?—don’t fail I ; help I to devise some way of escape from",m_twain
78
+ "this place ! "" "" now do but hear thyself ! escape ? why , man , the corridor be in guard and keep of man - at - arm . "" "" no doubt , no doubt . but how many , Clarence ? not many , I hope ? "" "" full a score . one may not hope to escape . "" after a pause — hesitatingly : "" and there be other reason — and weighty . "" "" other one ? what be they ? "" "" well , they say — oh , but",m_twain
79
+ "I dare n’t , indeed dare n’t ! "" "" why , poor lad , what be the matter ? why do you blench ? why do you tremble so ? "" "" oh , in sooth , there be need ! I do want to tell you , but — "" "" come , come , be brave , be a man — speak out , there ’ a good lad ! "" he hesitate , pull one way by desire , the other way by fear ; then he steal to the door and peep out , listen",m_twain
80
+ "; and finally creep close to I and put his mouth to my ear and tell I his fearful news in a whisper , and with all the cower apprehension of one who be venture upon awful ground and speak of thing whose very mention might be freight with death . "" Merlin , in his malice , have weave a spell about this dungeon , and there bide not the man in these kingdom that would be desperate enough to essay to cross its line with you ! now God pity I , I have tell it ! ah",m_twain
81
+ ", be kind to I , be merciful to a poor boy who mean thee well ; for an thou betray I I be lose ! "" I laugh the only really refreshing laugh I have have for some time ; and shout : "" Merlin have work a spell ! Merlin , forsooth ! that cheap old humbug , that maunder old ass ? bosh , pure bosh , the silly bosh in the world ! why , it do seem to I that of all the childish , idiotic , chuckle - head , chicken - livere superstition",m_twain
82
+ "that ev — oh , damn Merlin ! "" but Clarence have slump to his knee before I have half finish , and he be like to go out of his mind with fright . "" oh , beware ! these be awful word ! any moment these wall may crumble upon we if you say such thing . oh call they back before it be too late ! "" now this strange exhibition give I a good idea and set I to think . if everybody about here be so honestly and sincerely afraid of Merlin ’s pretend magic",m_twain
83
+ "as Clarence be , certainly a superior man like I ought to be shrewd enough to contrive some way to take advantage of such a state of thing . I go on thinking , and work out a plan . then I say : "" get up . pull yourself together ; look I in the eye . do you know why I laugh ? "" "" no — but for our bless Lady ’s sake , do it no more . "" "" well , I ’ll tell you why I laugh . because I ’m a magician myself",m_twain
84
+ ". "" "" Thou ! "" the boy recoil a step , and catch his breath , for the thing hit he rather sudden ; but the aspect which he take on be very , very respectful . I take quick note of that ; it indicate that a humbug do not need to have a reputation in this asylum ; people stand ready to take he at his word , without that . I resume . "" I ’ve know Merlin seven hundred year , and he — "" "" seven hun — "" "" do not interrupt I",m_twain
85
+ ". he have die and come alive again thirteen time , and travel under a new name every time : Smith , Jones , Robinson , Jackson , Peters , Haskins , Merlin — a new alias every time he turn up . I know he in Egypt three hundred year ago ; I know he in India five hundred year ago — he be always blethering around in my way , everywhere I go ; he make I tired . he do n’t amount to shuck , as a magician ; know some of the old common trick ,",m_twain
86
+ "but have never get beyond the rudiment , and never will . he be well enough for the province — one - night stand and that sort of thing , you know — but dear I , he ought not to set up for an expert — anyway not where there ’ a real artist . now look here , Clarence , I be go to stand your friend , right along , and in return you must be mine . I want you to do I a favor . I want you to get word to the king that",m_twain
87
+ "I be a magician myself — and the Supreme Grand High - yu - muck - amuck and head of the tribe , at that ; and I want he to be make to understand that I be just quietly arrange a little calamity here that will make the fur fly in these realm if Sir Kay ’s project be carry out and any harm come to I . will you get that to the king for I ? "" the poor boy be in such a state that he could hardly answer I . it be pitiful to see",m_twain
88
+ "a creature so terrified , so unnerved , so demoralized . but he promise everything ; and on my side he make I promise over and over again that I would remain his friend , and never turn against he or cast any enchantment upon he . then he work his way out , stay himself with his hand along the wall , like a sick person . presently this thought occur to I : how heedless I have be ! when the boy get calm , he will wonder why a great magician like I should have beg a",m_twain
89
+ "boy like he to help I get out of this place ; he will put this and that together , and will see that I be a humbug . I worry over that heedless blunder for an hour , and call myself a great many hard name , meantime . but finally it occur to I all of a sudden that these animal do n’t reason ; that they never put this and that together ; that all their talk show that they do not know a discrepancy when they see it . I be at rest , then .",m_twain
90
+ "but as soon as one be at rest , in this world , off he go on something else to worry about . it occur to I that I have make another blunder : I have send the boy off to alarm his better with a threat — I intend to invent a calamity at my leisure ; now the people who be the readiest and eager and willingest to swallow miracle be the very one who be hungry to see you perform they ; suppose I should be call on for a sample ? suppose I should be ask",m_twain
91
+ "to name my calamity ? yes , I have make a blunder ; I ought to have invent my calamity first . "" what shall I do ? what can I say , to gain a little time ? "" I be in trouble again ; in the deep kind of trouble   … "" there ’ a footstep!—they’re come . if I have only just a moment to think .   … good , I ’ve get it . I ’m all right . "" you see , it be the eclipse . it come into my mind in",m_twain
92
+ "the nick of time , how Columbus , or Cortez , or one of those people , play an eclipse as a saving trump once , on some savage , and I see my chance . I could play it myself , now , and it would not be any plagiarism , either , because I should get it in nearly a thousand year ahead of those party . clarence come in , subdue , distressed , and say : "" I haste the message to our liege the king , and straightway he have I to his presence .",m_twain
93
+ "he be fright even to the marrow , and be minded to give order for your instant enlargement , and that you be clothe in fine raiment and lodge as befit one so great ; but then come Merlin and spoil all ; for he persuade the king that you be mad , and know not whereof you speak ; and say your threat be but foolishness and idle vaporing . they dispute long , but in the end , Merlin , scoffing , say , ' wherefore hath he not name his brave calamity ? verily it be because",m_twain
94
+ "he can not . ' this thrust do in a most sudden sort close the king ’s mouth , and he could offer naught to turn the argument ; and so , reluctant , and full loth to do you the discourtesy , he yet prayeth you to consider his perplexed case , as note how the matter stand , and name the calamity — if so be you have determine the nature of it and the time of its coming . oh , prithee delay not ; to delay at such a time be to double and treble the",m_twain
95
+ "peril that already compass thee about . oh , be thou wise — name the calamity ! "" I allow silence to accumulate while I get my impressiveness together , and then say : "" how long have I be shut up in this hole ? "" "" Ye be shut up when yesterday be well spend . it be nine of the morning now . "" "" no ! then I have sleep well , sure enough . nine in the morning now ! and yet it be the very complexion of midnight , to a shade . this",m_twain
96
+ "be the 20th , then ? "" "" the 20th — yes . "" "" and I be to be burn alive tomorrow . "" the boy shudder . "" at what hour ? "" "" at high noon . "" "" now then , I will tell you what to say . "" I pause , and stand over that cower lad a whole minute in awful silence ; then , in a voice deep , measure , charge with doom , I begin , and rise by dramatically grade stage to my colossal climax , which I deliver",m_twain
97
+ "in as sublime and noble a way as ever I do such a thing in my life : "" go back and tell the king that at that hour I will smother the whole world in the dead blackness of midnight ; I will blot out the sun , and he shall never shine again ; the fruit of the Earth shall rot for lack of light and warmth , and the people of the Earth shall famish and die , to the last man ! "" I have to carry the boy out myself , he sink into such",m_twain
98
+ "a collapse . I hand he over to the soldier , and go back . VI the Eclipse in the stillness and the darkness , realization soon begin to supplement knowledge . the mere knowledge of a fact be pale ; but when you come to realize your fact , it take on color . it be all the difference between hearing of a man be stab to the heart , and see it do . in the stillness and the darkness , the knowledge that I be in deadly danger take to itself deep and deeply meaning all the",m_twain
99
+ "time ; a something which be realization crept inch by inch through my vein and turn I cold . but it be a blessed provision of nature that at time like these , as soon as a man ’s mercury have get down to a certain point there come a revulsion , and he rally . Hope spring up , and cheerfulness along with it , and then he be in good shape to do something for himself , if anything can be do . when my rally come , it come with a bound . I say to myself",m_twain
100
+ "that my eclipse would be sure to save I , and make I the great man in the kingdom besides ; and straightway my mercury go up to the top of the tube , and my solicitude all vanish . I be as happy a man as there be in the world . I be even impatient for tomorrow to come , I so want to gather in that great triumph and be the center of all the nation ’s wonder and reverence . besides , in a business way it would be the making of I ; I know",m_twain
101
+ "that . meantime there be one thing which have got push into the background of my mind . that be the half - conviction that when the nature of my propose calamity should be report to those superstitious people , it would have such an effect that they would want to compromise . so , by and by when I hear footstep come , that think be recall to I , and I say to myself , "" as sure as anything , it ’ the compromise . well , if it be good , all right , I will",m_twain
pyproject.toml ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [project]
2
+ name = "scattertext-ja-novels"
3
+ version = "0.1.0"
4
+ description = "Scattertext on Japanese novels"
5
+ readme = "README.md"
6
+ requires-python = ">=3.12"
7
+ dependencies = [
8
+ "altair>=5.5.0",
9
+ "eli5>=0.16.0",
10
+ "ipython>=9.4.0",
11
+ "marimo>=0.13.15",
12
+ "numpy>=2.2.6",
13
+ "openai>=1.97.1",
14
+ "pandas>=2.3.0",
15
+ "pyarrow>=21.0.0",
16
+ "scikit-learn==1.7.0",
17
+ ]
spacy-tokenize.py ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ # /// script
3
+ # requires-python = ">=3.12"
4
+ # dependencies = [
5
+ # "en-core-web-sm",
6
+ # "spacy",
7
+ # ]
8
+ #
9
+ # [tool.uv.sources]
10
+ # en-core-web-sm = { url = "https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl" }
11
+ # ///
12
+
13
+ #!/usr/bin/env python3
14
+ import argparse
15
+ import csv
16
+ import re
17
+ import sys
18
+ from pathlib import Path
19
+
20
+ import spacy
21
+
22
+
23
+ def main():
24
+ parser = argparse.ArgumentParser(
25
+ description="Tokenize text files and output chunked CSV"
26
+ )
27
+ parser.add_argument("files", nargs="+", help="Input text file(s) to process")
28
+ parser.add_argument(
29
+ "-n",
30
+ "--tokens",
31
+ type=int,
32
+ default=100,
33
+ help="Number of tokens per chunk (default: 100)",
34
+ )
35
+ parser.add_argument(
36
+ "-l",
37
+ "--label",
38
+ type=str,
39
+ help="Custom label for all chunks (defaults to filename)",
40
+ )
41
+ parser.add_argument(
42
+ "-o",
43
+ "--output",
44
+ type=str,
45
+ default="output.csv",
46
+ help="Output CSV filename (default: output.csv)",
47
+ )
48
+ parser.add_argument(
49
+ "-c",
50
+ "--max-chunks",
51
+ type=int,
52
+ help="Maximum number of chunks to output (default: unlimited)",
53
+ )
54
+ parser.add_argument(
55
+ "--lemma",
56
+ action="store_true",
57
+ help="Use lemmatized forms of tokens instead of original text",
58
+ )
59
+
60
+ args = parser.parse_args()
61
+
62
+ # Load spaCy model
63
+ nlp = spacy.load("en_core_web_sm")
64
+
65
+ # Process files and collect chunks
66
+ all_chunks = []
67
+ chunks_created = 0
68
+
69
+ for filename in args.files:
70
+ if args.max_chunks and chunks_created >= args.max_chunks:
71
+ break
72
+
73
+ filepath = Path(filename)
74
+
75
+ if not filepath.exists():
76
+ print(f"Warning: File '{filename}' not found, skipping...")
77
+ continue
78
+
79
+ try:
80
+ with open(filepath, "r", encoding="utf-8") as f:
81
+ text = f.read()
82
+ except Exception as e:
83
+ print(f"Error reading '{filename}': {e}")
84
+ continue
85
+
86
+ # Split on one or more newlines
87
+ segments = re.split(r"\n+", text)
88
+ # Remove empty segments
89
+ segments = [seg.strip() for seg in segments if seg.strip()]
90
+
91
+ # Process segments through spaCy pipe
92
+ all_tokens = []
93
+ for doc in nlp.pipe(segments):
94
+ # Extract tokens from each processed segment
95
+ if args.lemma:
96
+ tokens = [token.lemma_ for token in doc]
97
+ else:
98
+ tokens = [token.text for token in doc]
99
+ all_tokens.extend(tokens)
100
+
101
+ # Determine label
102
+ label = args.label if args.label else filepath.name
103
+
104
+ # Create chunks of n tokens
105
+ for i in range(0, len(all_tokens), args.tokens):
106
+ if args.max_chunks and chunks_created >= args.max_chunks:
107
+ break
108
+
109
+ chunk = all_tokens[i : i + args.tokens]
110
+ # Only include chunks with exactly n tokens
111
+ if len(chunk) == args.tokens:
112
+ chunk_text = " ".join(chunk)
113
+ all_chunks.append({"text": chunk_text, "label": label})
114
+ chunks_created += 1
115
+
116
+ # Write to CSV
117
+ if all_chunks:
118
+ with open(args.output, "w", newline="", encoding="utf-8") as csvfile:
119
+ writer = csv.DictWriter(csvfile, fieldnames=["text", "label"])
120
+ writer.writeheader()
121
+ writer.writerows(all_chunks)
122
+
123
+ print(f"Successfully wrote {len(all_chunks)} chunks to '{args.output}'")
124
+ if args.lemma:
125
+ print("Note: Tokens were lemmatized")
126
+ else:
127
+ print("No valid chunks to write.")
128
+
129
+
130
+ if __name__ == "__main__":
131
+ main()
uv.lock ADDED
The diff for this file is too large to render. See raw diff