Class AiUtil


  • public class AiUtil
    extends java.lang.Object
    Utility methods related to AI.
    Since:
    16.1.0
    Version:
    $Revision$ $Date$
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<java.lang.String> fragmentText​(java.lang.String text, int maxChunkSize)
      Fragments the input text into chunks based on the maximum chunk size with acceptable variation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • fragmentText

        public static java.util.List<java.lang.String> fragmentText​(java.lang.String text,
                                                                    int maxChunkSize)
        Fragments the input text into chunks based on the maximum chunk size with acceptable variation.
        Parameters:
        text - The input text to be fragmented.
        maxChunkSize - The maximum size of each chunk (in characters).
        Returns:
        A list of text fragments.