Package etc.aloe.options

Examples of etc.aloe.options.ModeOptions


    }

    private void run(String[] args) {

        Aloe aloe = null;
        ModeOptions options = null;
        switch (mode) {
            case train:
                aloe = new AloeTrain();
                aloe.setPipeline(pipelineClassName);
                options = aloe.factory.constructTrainOptions();
                break;
            case label:
                aloe = new AloeLabel();
                aloe.setPipeline(pipelineClassName);
                options = aloe.factory.constructLabelOptions();
                break;
            case interactive:
                aloe = new AloeInteractive();
                aloe.setPipeline(pipelineClassName);
                options = aloe.factory.constructInteractiveOptions();
                break;
            case single:
                aloe = new AloeSingle();
                aloe.setPipeline(pipelineClassName);
                options = aloe.factory.constructSingleOptions();
                break;
        }

        aloe.setCmdLineArgs(cmdLineArgs);
        CmdLineParser parser = new CmdLineParser(options);

        try {
            parser.parseArgument(args);
        } catch (CmdLineException e) {
            System.err.println(e.getMessage());
            options.printUsage();
            parser.printUsage(System.err);
            return;
        }

        aloe.factory.setOptions(options);
View Full Code Here

TOP

Related Classes of etc.aloe.options.ModeOptions

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.