mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-07 20:15:40 +00:00
[Minor Fix] Fix spacy TextSplitter init (#606)
This commit is contained in:
parent
3e55f1474e
commit
a87a2aacaa
@ -223,7 +223,7 @@ class SpacyTextSplitter(TextSplitter):
|
|||||||
self, separator: str = "\n\n", pipeline: str = "en_core_web_sm", **kwargs: Any
|
self, separator: str = "\n\n", pipeline: str = "en_core_web_sm", **kwargs: Any
|
||||||
):
|
):
|
||||||
"""Initialize the spacy text splitter."""
|
"""Initialize the spacy text splitter."""
|
||||||
super.__init__(**kwargs)
|
super().__init__(**kwargs)
|
||||||
try:
|
try:
|
||||||
import spacy
|
import spacy
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
Loading…
Reference in New Issue
Block a user