add second chapter
This commit is contained in:
parent
ea9eee7ff5
commit
041d12b6ad
|
|
@ -75,6 +75,8 @@
|
||||||
|
|
||||||
我们即将用于 LLM 训练的文本数据集是一部由 Edith Wharton 创作的短篇小说《判决》,该作品已在网上公开,因此允许用于 LLM 训练任务。该文本可在 Wikisource 上找到,网址是 https://en.wikisource.org/wiki/The_Verdict,您可以将其复制并粘贴到文本文件中。我已将其复制到名为 "the-verdict.txt" 的文本文件中,以便使用 Python 的标准文件读取工具进行加载。
|
我们即将用于 LLM 训练的文本数据集是一部由 Edith Wharton 创作的短篇小说《判决》,该作品已在网上公开,因此允许用于 LLM 训练任务。该文本可在 Wikisource 上找到,网址是 https://en.wikisource.org/wiki/The_Verdict,您可以将其复制并粘贴到文本文件中。我已将其复制到名为 "the-verdict.txt" 的文本文件中,以便使用 Python 的标准文件读取工具进行加载。
|
||||||
|
|
||||||
|
`#000051 Listing 2.1 Reading in a short story as text sample into Python`
|
||||||
|
|
||||||
```python
|
```python
|
||||||
# Listing 2.1 Reading in a short story as text sample into Python
|
# Listing 2.1 Reading in a short story as text sample into Python
|
||||||
with open("the-verdict.txt", "r", encoding="utf-8") as f:
|
with open("the-verdict.txt", "r", encoding="utf-8") as f:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue