Package com.hw.langchain.text.splitter
Class CharacterTextSplitter
java.lang.Object
com.hw.langchain.text.splitter.TextSplitter
com.hw.langchain.text.splitter.CharacterTextSplitter
- All Implemented Interfaces:
BaseDocumentTransformer
Implementation of splitting text that looks at characters.
- Author:
- HamaWhite
-
Field Summary
Fields inherited from class com.hw.langchain.text.splitter.TextSplitter
addStartIndex, chunkOverlap, chunkSize, keepSeparator, lengthFunction
-
Constructor Summary
-
Method Summary
Methods inherited from class com.hw.langchain.text.splitter.TextSplitter
createDocuments, mergeSplits, splitDocuments, transformDocuments
-
Field Details
-
separator
-
-
Constructor Details
-
CharacterTextSplitter
public CharacterTextSplitter()
-
-
Method Details
-
splitText
Split incoming text and return chunks.- Specified by:
splitText
in classTextSplitter
-