test_spacy_text_splitting_args() — langchain Function Reference
Architecture documentation for the test_spacy_text_splitting_args() function in test_nlp_text_splitters.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD c81de94a_32bb_7f2c_266a_3115fac62c04["test_spacy_text_splitting_args()"] a159cbba_51f0_5d34_8696_299b594bb0fe["test_nlp_text_splitters.py"] c81de94a_32bb_7f2c_266a_3115fac62c04 -->|defined in| a159cbba_51f0_5d34_8696_299b594bb0fe style c81de94a_32bb_7f2c_266a_3115fac62c04 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/text-splitters/tests/integration_tests/test_nlp_text_splitters.py lines 45–53
def test_spacy_text_splitting_args() -> None:
"""Test invalid arguments."""
with pytest.raises(
ValueError,
match=re.escape(
"Got a larger chunk overlap (4) than chunk size (2), should be smaller."
),
):
SpacyTextSplitter(chunk_size=2, chunk_overlap=4)
Domain
Subdomains
Source
Frequently Asked Questions
What does test_spacy_text_splitting_args() do?
test_spacy_text_splitting_args() 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_splitting_args() defined?
test_spacy_text_splitting_args() is defined in libs/text-splitters/tests/integration_tests/test_nlp_text_splitters.py at line 45.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free