Skip to content

Commit

Permalink
add back compat
Browse files Browse the repository at this point in the history
  • Loading branch information
Disiok committed Nov 11, 2023
1 parent fd59c1f commit 1d65b2c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions llama_index/node_parser/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
from llama_index.node_parser.text.sentence_window import SentenceWindowNodeParser
from llama_index.node_parser.text.token import TokenTextSplitter

# deprecated, for backwards compatibility
SimpleNodeParser = SentenceSplitter

__all__ = [
"TokenTextSplitter",
"SentenceSplitter",
Expand All @@ -40,4 +43,6 @@
"UnstructuredElementNodeParser",
"get_leaf_nodes",
"get_root_nodes",
# deprecated, for backwards compatibility
"SimpleNodeParser",
]

0 comments on commit 1d65b2c

Please sign in to comment.