[Minor Fix] Fix spacy TextSplitter init (#606)

This commit is contained in:
Smit Shah
2023-01-13 19:54:44 +05:30
committed by GitHub
parent 3e55f1474e
commit a87a2aacaa

View File

@@ -223,7 +223,7 @@ class SpacyTextSplitter(TextSplitter):
self, separator: str = "\n\n", pipeline: str = "en_core_web_sm", **kwargs: Any
):
"""Initialize the spacy text splitter."""
super.__init__(**kwargs)
super().__init__(**kwargs)
try:
import spacy
except ImportError: