Package ch.akuhn.hapax.corpus

Examples of ch.akuhn.hapax.corpus.CorpusBuilderHelper


public class LogLikelihoodExample {

    public static void main(String... args) {
       
        Corpus c1 = new CorpusBuilderHelper(new SimpleCorpus()).importAllFiles(new File("../Fame"), ".java");
        Corpus c2 = new CorpusBuilderHelper(new SimpleCorpus()).importAllFiles(new File("../CELLS"), ".java");
       
        System.out.println(c1);
        System.out.println(c2);
       
        SortedSet<LogLikelihood> list = new TreeSet<LogLikelihood>();
View Full Code Here


    public static void main(String[] args) throws FileNotFoundException {

     
     
        TermDocumentMatrix tdm = new TermDocumentMatrix();
        CorpusBuilderHelper importer = new CorpusBuilderHelper(tdm);
        importer.importAllFiles(new File("../ch.deif.meander"), ".java");
        importer.importAllFiles(new File("."), ".java");

        Out.puts(tdm);

        Out.puts(Get.head(tdm.documents()));
        Out.puts(tdm.getDocument(Get.head(tdm.documents())));
View Full Code Here

TOP

Related Classes of ch.akuhn.hapax.corpus.CorpusBuilderHelper

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.