public static void main(String[] args)
            throws IOException, ProcessException
    {
        String simType  = args[args.length - 6];
        int linesToRead = Integer.parseInt(args[args.length - 5]);
        String inFile   = args[args.length - 4];
        String uniFile  = args[args.length - 3];
        String triFile  = args[args.length - 2];
        String stg1Nm   = args[args.length - 1];

        System.out.println("------------------------------------------------------------------------------");
        // System.out.println("SimType:      " + simType);
        // System.out.println("Unigram File: " + uniFile);
        // System.out.println("Trigram File: " + triFile);
        // System.out.println("Input File:   " + inFile);
        // System.out.println("Output File:  " + stg1Nm);

        // TODO: set correct parameter to PMI, NGD, and GTM.
        Measure sim = null;
        if (simType.equals("Jacard"))
            sim = new Jaccard();
        else if (simType.equals("Simpson"))
            sim = new Simpson();
        else if (simType.equals("Dice"))
            sim = new Dice();
        else if (simType.equals("PMI"))
            sim = new PMI(0);
        else if (simType.equals("NGD"))
            sim = new NGD(0);
        else if (simType.equals("GTM"))
            sim = new GTM(0);
        runtime.gc();
        stage1Test(uniFile, triFile, inFile, stg1Nm, sim, linesToRead);
    }