Package ch.akuhn.org.ggobi.plugins.ggvis

Source Code of ch.akuhn.org.ggobi.plugins.ggvis.Main

package ch.akuhn.org.ggobi.plugins.ggvis;

import java.io.IOException;

import ch.akuhn.hapax.Hapax;
import ch.akuhn.mds.MultidimensionalScaling;

public class Main {

    private transient static boolean VIZ = true;

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

        Hapax hapax = Hapax.newCorpus()
                .useTFIDF()
                .useCamelCaseScanner()
                .addFiles("..", ".java")
                .build();

        System.out.println(hapax.getIndex());

        Viz viz = VIZ ? new Viz().open() : null;
        new MultidimensionalScaling()
                .similarities(hapax.getIndex().documentCorrelation().asArray())
                .verbose()
                .listener(viz)
                .iterations(Integer.MAX_VALUE)
                .run();


    }


}
TOP

Related Classes of ch.akuhn.org.ggobi.plugins.ggvis.Main

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.