Package com.flaptor.hounder.classifier.bayes

Examples of com.flaptor.hounder.classifier.bayes.BayesCalculator.addData()


            String item=cache.getItem(url);
            if (null==item){
                LOGGER.warn("Page " + url + "is in included for " + catName + " but not in cache");
                continue;
            }
            calculator.addData(DocumentParser.parse(item, maxTuple),true, url);
        }

        for (String url: notIncludedUrlsList){
            String item=cache.getItem(url);
            if (null==item){
View Full Code Here


            String item=cache.getItem(url);
            if (null==item){
                LOGGER.warn("Page " + url + "is in notIncluded for " + catName + " but not in cache");               
                continue;
            }           
            calculator.addData(DocumentParser.parse(item, maxTuple),false, url);
        }
        calculator.computeProbabilities(); //and save the .probabilities to disk
    }

    public void setMyProbs(String newProbs, String catName) throws IOException{
View Full Code Here

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.