Examples of YKDocument


Examples of edu.harvard.wcfia.yoshikoder.document.YKDocument

        super(yk, AddHighlightsAction.class.getName());
    }
   
    public void actionPerformed(ActionEvent e) {      
        Node n = yoshikoder.getSelectedNode();
        YKDocument doc = yoshikoder.getSelectedDocument();
        if (n == null || doc == null)
            return;
       
        TokenList toclist = null;
        try {
View Full Code Here

Examples of edu.harvard.wcfia.yoshikoder.document.YKDocument

        setExcelValue(row, 0, "Documents:");
       
        int ii=5;
        DocumentList dl = getDocuments();
        for (Iterator iterator = dl.iterator(); iterator.hasNext();) {
            YKDocument d = (YKDocument) iterator.next();
            row = sheet.createRow((short)ii);
            setExcelValue(row, 0, d.getTitle());
            ii++;
        }
        ii++;
       
        // now the table model
View Full Code Here

Examples of edu.harvard.wcfia.yoshikoder.document.YKDocument

        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));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.