TreeSitterSegmenter#
- class langchain_community.document_loaders.parsers.language.tree_sitter_segmenter.TreeSitterSegmenter(code: str)[source]#
Abstract class for `CodeSegmenter`s that use the tree-sitter library.
Methods
__init__
(code)is_valid
()make_line_comment
(text)- Parameters:
code (str) –