langchain_community.document_loaders.parsers.language.code_segmenter.CodeSegmenter¶

class langchain_community.document_loaders.parsers.language.code_segmenter.CodeSegmenter(code: str)[source]¶

Abstract class for the code segmenter.

Methods

__init__(code)

extract_functions_classes()

is_valid()

simplify_code()

__init__(code: str)[source]¶
abstract extract_functions_classes() List[str][source]¶
is_valid() bool[source]¶
abstract simplify_code() str[source]¶