Package etc.aloe.oilspill2010

Examples of etc.aloe.oilspill2010.TrainingImpl


    @Override
    public Training constructTraining() {
        if (options instanceof TrainOptionsImpl) {
            TrainOptionsImpl trainOpts = (TrainOptionsImpl) options;

            TrainingImpl trainingImpl = new TrainingImpl();
           
            trainingImpl.setBuildLogisticModel(true);
           
            if (trainOpts.useMinCost || trainOpts.useReweighting) {
                trainingImpl.setUseCostTraining(true);
                trainingImpl.setFalsePositiveCost(trainOpts.falsePositiveCost);
                trainingImpl.setFalseNegativeCost(trainOpts.falseNegativeCost);
                trainingImpl.setUseReweighting(trainOpts.useReweighting);
            }

            return trainingImpl;
        } else {
            throw new IllegalArgumentException("Options must be for Training");
View Full Code Here


        if (options instanceof TrainOptionsImpl) {
            TrainOptionsImpl trainOpts = (TrainOptionsImpl) options;
            //Read the emoticons
            List<String> termList = loadTermList(trainOpts.emoticonFile);
            //return new FeatureGenerationImpl(termList);
            return new BigramFeatureGenerationImpl(termList);
        } else {
            throw new IllegalArgumentException("Options not for Training");
        }
    }
View Full Code Here

TOP

Related Classes of etc.aloe.oilspill2010.TrainingImpl

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.