Home / Function/ test_nltk_text_splitter_args() — langchain Function Reference

test_nltk_text_splitter_args() — langchain Function Reference

Architecture documentation for the test_nltk_text_splitter_args() function in test_nlp_text_splitters.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  fa3b5799_33a4_175b_8327_ec5e6ba4a9a7["test_nltk_text_splitter_args()"]
  a159cbba_51f0_5d34_8696_299b594bb0fe["test_nlp_text_splitters.py"]
  fa3b5799_33a4_175b_8327_ec5e6ba4a9a7 -->|defined in| a159cbba_51f0_5d34_8696_299b594bb0fe
  style fa3b5799_33a4_175b_8327_ec5e6ba4a9a7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/text-splitters/tests/integration_tests/test_nlp_text_splitters.py lines 92–102

def test_nltk_text_splitter_args() -> None:
    """Test invalid arguments for NLTKTextSplitter."""
    with pytest.raises(
        ValueError, match="When use_span_tokenize is True, separator should be ''"
    ):
        NLTKTextSplitter(
            chunk_size=80,
            chunk_overlap=0,
            separator="\n\n",
            use_span_tokenize=True,
        )

Domain

Subdomains

Frequently Asked Questions

What does test_nltk_text_splitter_args() do?
test_nltk_text_splitter_args() is a function in the langchain codebase, defined in libs/text-splitters/tests/integration_tests/test_nlp_text_splitters.py.
Where is test_nltk_text_splitter_args() defined?
test_nltk_text_splitter_args() is defined in libs/text-splitters/tests/integration_tests/test_nlp_text_splitters.py at line 92.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free