test_spacy_text_splitter_strip_whitespace() — langchain Function Reference
Architecture documentation for the test_spacy_text_splitter_strip_whitespace() function in test_nlp_text_splitters.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD e841b54d_f526_daac_5039_bb084105efd5["test_spacy_text_splitter_strip_whitespace()"] a159cbba_51f0_5d34_8696_299b594bb0fe["test_nlp_text_splitters.py"] e841b54d_f526_daac_5039_bb084105efd5 -->|defined in| a159cbba_51f0_5d34_8696_299b594bb0fe style e841b54d_f526_daac_5039_bb084105efd5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/text-splitters/tests/integration_tests/test_nlp_text_splitters.py lines 80–89
def test_spacy_text_splitter_strip_whitespace(pipeline: str) -> None:
"""Test splitting by sentence using Spacy."""
text = "This is sentence one. And this is sentence two."
separator = "|||"
splitter = SpacyTextSplitter(
separator=separator, pipeline=pipeline, strip_whitespace=False
)
output = splitter.split_text(text)
expected_output = [f"This is sentence one. {separator}And this is sentence two."]
assert output == expected_output
Domain
Subdomains
Source
Frequently Asked Questions
What does test_spacy_text_splitter_strip_whitespace() do?
test_spacy_text_splitter_strip_whitespace() is a function in the langchain codebase, defined in libs/text-splitters/tests/integration_tests/test_nlp_text_splitters.py.
Where is test_spacy_text_splitter_strip_whitespace() defined?
test_spacy_text_splitter_strip_whitespace() is defined in libs/text-splitters/tests/integration_tests/test_nlp_text_splitters.py at line 80.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free