Package edu.harvard.wcfia.yoshikoder.document

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


              cnode = (CategoryNode)n.getParent();
            final CategoryNode catnode = cnode;
           
            dworker = new DialogWorker(yoshikoder){
                protected void doWork() throws Exception {
                    DocumentList dl = new DocumentListImpl();
                    dl.add(doc1);
                    dl.add(doc2);

                    TokenizationCache tcache = yoshikoder.getTokenizationCache();
                    TokenList tl1 = tcache.getTokenList(doc1);
                    TokenList tl2 = tcache.getTokenList(doc2);
                    if (tl1 == null){
View Full Code Here


  }
 
  public YKProject(String pname, String pdesc){
      dictionary = new SimpleDictionary(pname);
      setDescription(pdesc);
      documentList = new DocumentListImpl();
  }
View Full Code Here

      setDescription(pdesc);
      documentList = new DocumentListImpl();
  }
 
    public YKProject() {
        documentList = new DocumentListImpl();
        dictionary = new SimpleDictionary();
        setName("Untitled"); //$NON-NLS-1$
        setDescription("New dictionary"); //$NON-NLS-1$
    }
View Full Code Here

        this(reportTitle, desc, dictName, doc, efmmap, false);
    }
   
    public DictionaryFrequencyReport(String reportTitle, String desc, String dictName,
            YKDocument doc, EntryFrequencyMap efmmap, boolean showPats) {
        super(reportTitle, desc, dictName, new DocumentListImpl(doc));
        map = efmmap;
        showPatterns = showPats;
        data = initData();
    }
View Full Code Here

   
  }
 
  protected Object[][] run(){
    // do the analysis
    DocumentList list = new DocumentListImpl();
    for (int ii=0; ii<files.length; ii++){
      YKDocument doc = YKDocumentFactory.createYKDocument(files[ii]);
      list.add(doc);
    }
        return null;
    }
View Full Code Here

   
    protected WordFrequencyMap map;
   
    public DocumentFrequencyReport(String reportTitle, String desc, String dictName,
            YKDocument doc, WordFrequencyMap wfmap) {
        super(reportTitle, desc, dictName, new DocumentListImpl(doc));
        map = wfmap;
        data = initData();
    }
View Full Code Here

    }
   
    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});
View Full Code Here

TOP

Related Classes of edu.harvard.wcfia.yoshikoder.document.DocumentListImpl

Copyright © 2018 www.massapicom. 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.