}
private void visualizeInverseSuffixTable(String fileName, String caption, String label) throws IOException {
buffer.append(String.format(LATEX_INPUT, fileName));
Writer out = new FileWriter(DOC_PATH + fileName);
SuffixArray sa = new LinearizedSuffixTreeImpl(corpus.sequence(), corpus.alphabetSize());
LaTeXVisualizer.visualizeInverseSuffixTable(out, caption, label, sa, corpus);
out.flush();
out.close();
}