Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions 06-DocumentLoader/08-TXTLoader.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"\n",
"## Overview\n",
"\n",
"This tutorial focuses on using LangChain’s TextLoader to efficiently load and process individual text files. \n",
"This tutorial focuses on using LangChain’s `TextLoader` to efficiently load and process individual text files. \n",
"\n",
"You’ll learn how to extract metadata and content, making it easier to prepare text data.\n",
"\n",
Expand Down Expand Up @@ -50,7 +50,7 @@
"outputs": [],
"source": [
"%%capture --no-stderr\n",
"!pip install langchain-opentutorial"
"%pip install langchain-opentutorial"
]
},
{
Expand Down Expand Up @@ -79,7 +79,7 @@
"source": [
"## TXT Loader\n",
"\n",
"Let’s explore how to load files with the `.txt` extension using a loader."
"Let’s explore how to load files with the **.txt** extension using a loader."
]
},
{
Expand Down Expand Up @@ -136,8 +136,8 @@
"\n",
"To illustrate the problem, we’ll first attempt to load multiple text files with arbitrary encodings.\n",
"\n",
"- `silent_errors`: By passing the silent_errors parameter to the DirectoryLoader, you can skip files that cannot be loaded and continue the loading process without interruptions.\n",
"- `autodetect_encoding`: Additionally, you can enable automatic encoding detection by passing the autodetect_encoding parameter to the loader class, allowing it to detect file encodings before failing.\n"
"- `silent_errors`: By passing the `silent_errors` parameter to the `DirectoryLoader`, you can skip files that cannot be loaded and continue the loading process without interruptions.\n",
"- `autodetect_encoding`: Additionally, you can enable automatic encoding detection by passing the `autodetect_encoding` parameter to the loader class, allowing it to detect file encodings before failing.\n"
]
},
{
Expand Down Expand Up @@ -166,7 +166,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The `data/appendix-keywords.txt` file and its derivative files with similar names all have different encoding formats.\n"
"The **data/appendix-keywords.txt** file and its derivative files with similar names all have different encoding formats.\n"
]
},
{
Expand Down Expand Up @@ -317,4 +317,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
}
}
Loading