Interface StringCalculations

    • Method Detail

      • replaceRegex

        Matrix replaceRegex​(Calculation.Ret returnType,
                            java.lang.String search,
                            java.lang.String replacement)
        Replaces matching text in every entry of the matrix.
        Parameters:
        returnType - Select whether a new or a linked Matrix is returned, or if the operation is performed on the original Matrix
        search - Regular expression to search for
        replacement - Replacement String
        Returns:
        matrix with modified entries
      • replaceRegex

        Matrix replaceRegex​(Calculation.Ret returnType,
                            java.util.regex.Pattern search,
                            java.lang.String replacement)
        Replaces matching text in every entry of the matrix.
        Parameters:
        returnType - Select whether a new or a linked Matrix is returned, or if the operation is performed on the original Matrix
        search - Regular expression pattern to search for
        replacement - Replacement String
        Returns:
        matrix with modified entries
      • translate

        Matrix translate​(Calculation.Ret returnType,
                         java.lang.String sourceLanguage,
                         java.lang.String targetLanguage)
      • tfIdf

        Matrix tfIdf​(boolean calculateTf,
                     boolean calculateIdf,
                     boolean normalize)
      • removeWords

        Matrix removeWords​(Calculation.Ret ret,
                           java.util.Collection<java.lang.String> words)