Class TextSplitterUtils

java.lang.Object
com.hw.langchain.text.splitter.TextSplitterUtils

public class TextSplitterUtils extends Object
Author:
HamaWhite
  • Method Details

    • splitTextWithRegex

      public static List<String> splitTextWithRegex(String text, String separator, boolean keepSeparator)
    • splitWithSeparator

      public 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.