public void printSamples(List samples, PrintStream out) {
for (int i = 0; i < document.size(); i++) {
HasWord word = (HasWord) document.get(i);
String s = "null";
if (word!=null) {
s = word.word();
}
out.print(StringUtils.padOrTrim(s, 10));
for (int j = 0; j < samples.size(); j++) {
int[] sequence = (int[]) samples.get(j);
out.print(" " + StringUtils.padLeft(sequence[i], 2));