langchain_text_splitters.base.Language

class langchain_text_splitters.base.Language(value)[源代码]

编程语言的枚举。

CPP = 'cpp'
GO = 'go'
JAVA = 'java'
KOTLIN = 'kotlin'
JS = 'js'
TS = 'ts'
PHP = 'php'
PROTO = 'proto'
PYTHON = 'python'
RST = 'rst'
RUBY = 'ruby'
RUST = 'rust'
SCALA = 'scala'
SWIFT = 'swift'
MARKDOWN = 'markdown'
LATEX = 'latex'
HTML = 'html'
SOL = 'sol'
CSHARP = 'csharp'
COBOL = 'cobol'
C = 'c'
LUA = 'lua'
PERL = 'perl'
HASKELL = 'haskell'
ELIXIR = 'elixir'

使用Language的示例