Jane Eyre (3 of 231)

故事讲述了一个习惯顺从约翰的小女孩,在遭受约翰的言语侮辱和身体攻击后,内心的恐惧逐渐转化为愤怒,并勇敢地反击的故事。
Habitually obedient to John, I came up to his chair:  he spent some three minutes in thrusting out his tongue at me as far as he could without damaging the roots:  I knew he would soon strike, and while dreading the blow, I mused on the disgusting and ugly appearance of him who would presently deal it.  I wonder if he read that notion in my face; for, all at once, without speaking, he struck suddenly and strongly.  I tottered, and on regaining my equilibrium retired back a step or two from his chair.

"That is for your impudence in answering mama awhile since," said he, "and for your sneaking way of getting behind curtains, and for the look you had in your eyes two minutes since, you rat!"

Accustomed to John Reed's abuse, I never had an idea of replying to it; my care was how to endure the blow which would certainly follow the insult.

"What were you doing behind the curtain?"  he asked.

"I was reading."

"Show the book."

I returned to the window and fetched it thence.

"You have no business to take our books; you are a dependent, mama says; you have no money; your father left you none; you ought to beg, and not to live here with gentlemen's children like us, and eat the same meals we do, and wear clothes at our mama's expense. Now, I'll teach you to rummage my bookshelves:  for they ARE mine; all the house belongs to me, or will do in a few years.  Go and stand by the door, out of the way of the mirror and the windows."

I did so, not at first aware what was his intention; but when I saw him lift and poise the book and stand in act to hurl it, I instinctively started aside with a cry of alarm:  not soon enough, however; the volume was flung, it hit me, and I fell, striking my head against the door and cutting it.  The cut bled, the pain was sharp:  my terror had passed its climax; other feelings succeeded.

"Wicked and cruel boy!"  I said.  "You are like a murderer -- you are like a slave-driver -- you are like the Roman emperors!"

I had read Goldsmith's History of Rome, and had formed my opinion of Nero, Caligula, &c.  Also I had drawn parallels in silence, which I never thought thus to have declared aloud.

"What!  what!"  he cried.  "Did she say that to me?  Did you hear her, Eliza and Georgiana?  Won't I tell mama?  but first -- "

He ran headlong at me:  I felt him grasp my hair and my shoulder: he had closed with a desperate thing.  I really saw in him a tyrant, a murderer.  I felt a drop or two of blood from my head trickle down my neck, and was sensible of somewhat pungent suffering:  these sensations for the time predominated over fear, and I received him in frantic sort.  I don't very well know what I did with my hands, but he called me "Rat!  Rat!"  and bellowed out aloud.  Aid was near him:  Eliza and Georgiana had run for Mrs. Reed, who was gone upstairs:  she now came upon the scene, followed by Bessie and her maid Abbot.  We were parted:  I heard the words -

"Dear!  dear!  What a fury to fly at Master John!"

"Did ever anybody see such a picture of passion!"

Then Mrs. Reed subjoined -

"Take her away to the red-room, and lock her in there."  Four hands were immediately laid upon me, and I was borne upstairs.
### 统计《Jane Eyre》文本中的词频 为了完成对《Jane Eyre》文本的词频统计,可以通过编程语言(如Python)实现这一功能。以下是具体方法: #### 数据预处理 在开始统计之前,需要对原始文本进行清理和转换。这一步骤通常包括去除标点符号、统一字母大小写以及分割单词等操作[^1]。 ```python import re from collections import Counter def preprocess_text(text): # 将所有字符转为小写 text = text.lower() # 去除标点符号和其他非字母字符 text = re.sub(r'[^a-z\s]', '', text) # 分割成单词列表 words = text.split() return words ``` #### 词频统计 通过`collections.Counter`类可以高效地计算每个单词出现的次数。此过程会遍历整个单词列表并记录每种单词的数量[^1]。 ```python def calculate_word_frequency(words): frequency = Counter(words) return frequency ``` #### 排序与输出 最后,将得到的结果按词频降序排列,并打印前N个最常见的单词及其对应的频率。 ```python def display_top_words(frequency, top_n=10): most_common = frequency.most_common(top_n) for word, count in most_common: print(f"{word}: {count}") ``` #### 完整代码示例 下面是一个完整的脚本用于加载《Jane Eyre》文本文件并执行上述步骤: ```python with open('jane_eyre.txt', 'r', encoding='utf-8') as file: content = file.read() words = preprocess_text(content) frequency = calculate_word_frequency(words) display_top_words(frequency, top_n=20) ``` 以上代码假设有一个名为`jane_eyre.txt`的文件存在于当前工作目录下。如果实际路径不同,则需调整打开文件的部分以指向正确的地址。 此外,对于非常大的文件,可能需要考虑更高效的内存管理策略或分布式处理技术来避免性能瓶颈[^3]。 #### 可视化展示 除了简单的文字输出外,还可以利用库如Matplotlib绘制柱状图或将数据传递给WordCloud模块生成直观的词云图像[^2]。 ```python from wordcloud import WordCloud import matplotlib.pyplot as plt text_dict = dict(frequency) wordcloud = WordCloud(width=800, height=400, background_color="white").generate_from_frequencies(text_dict) plt.figure(figsize=(10, 5)) plt.imshow(wordcloud, interpolation='bilinear') plt.axis("off") plt.show() ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值