else
return "Count (" + (columnIndex) + ")";
}
public static void main(String[] args) throws Exception{
YKDocument d1 = YKDocumentFactory.createDummyDocument("D1", "Mary had a little lamb. Mary had some more", "UTF-8");
YKDocument d2 = YKDocumentFactory.createDummyDocument("D1", "Jackie had a little beef. Jackie whined some more", "UTF-8");
DocumentList dl = new DocumentListImpl();
dl.add(d1);
dl.add(d2);
Tokenizer tok = new BITokenizerImpl();
WordFrequencyMap wd1 = new WordFrequencyMap(tok.getTokens(d1.getText()));
WordFrequencyMap wd2 = new WordFrequencyMap(tok.getTokens(d2.getText()));
UnifiedDocumentFrequencyReport rep = new UnifiedDocumentFrequencyReport("title", "desc",
dl, new WordFrequencyMap[]{wd1, wd2});
JTable table = new JTable(rep);
JOptionPane.showMessageDialog(null, new JScrollPane(table));
}