TreeSitterSegmenter#
- class langchain_community.document_loaders.parsers.language.tree_sitter_segmenter.TreeSitterSegmenter(code: str)[source]#
使用tree-sitter库的`CodeSegmenter`的抽象类。
方法
__init__
(code)is_valid
()make_line_comment
(text)- Parameters:
code (str)