Package com.hw.langchain.text.splitter
Class TextSplitterUtils
java.lang.Object
com.hw.langchain.text.splitter.TextSplitterUtils
- Author:
- HamaWhite
-
Method Summary
Modifier and TypeMethodDescriptionsplitTextWithRegex
(String text, String separator, boolean keepSeparator) static String[]
splitWithSeparator
(String text, String separator) Split the text by the occurrences of the separator, returning a list containing the resulting substrings and the separators.
-
Method Details
-
splitTextWithRegex
-
splitWithSeparator
Split the text by the occurrences of the separator, returning a list containing the resulting substrings and the separators.
-