Package com.flaptor.hounder.classifier.bayes

Examples of com.flaptor.hounder.classifier.bayes.MultiClassifier


        String categoryList = mdlConfig.getString("categories");       
        if ((categoryList != null) && !"".equals(categoryList.trim())) {
            categories = categoryList.split(",");
            double unknownTermsProbability = mdlConfig.getFloat("unknown.terms.probability");
            categoryThreshold   = mdlConfig.getFloat("category.score.threshold");           
            multiClassifier = new MultiClassifier(categories, unknownTermsProbability);
        } else { // categories is null or ""
            // It makes no sense to have a BayesianClassifierModule that
            // has no categories. Someone misplaced this module in the modules
            // manager, or forgot to set categories. Either way, fail.
            logger.warn("Categories not found. This module is useless configured this way.");
View Full Code Here

TOP

Related Classes of com.flaptor.hounder.classifier.bayes.MultiClassifier

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.