Improvement[Community] Improve Document Loaders and Splitters (#27568)

- Fix word spelling error
- Add static method decorator
- Fix language splitter

Co-authored-by: Erick Friis <erick@langchain.dev>
This commit is contained in:
ZhangShenao
2024-10-25 05:42:16 +08:00
committed by GitHub
parent 7345470669
commit 455ab7d714
2 changed files with 4 additions and 3 deletions

View File

@@ -465,7 +465,7 @@ class RecursiveCharacterTextSplitter(TextSplitter):
"\n\\\\begin{verse}",
"\n\\\\begin{verbatim}",
# Now split by math environments
"\n\\\begin{align}",
"\n\\\\begin{align}",
"$$",
"$",
# Now split by the normal type of lines