public LinkRelevance classify(LinkNeighborhood ln) throws LinkClassifierException {
        LinkRelevance result = null;
        try {
            if (classifier == null) {
                result = new LinkRelevance(ln.getLink(), LinkRelevance.DEFAULT_HUB_RELEVANCE + 1);
            } else {
                double[] prob = classifier.classify(ln);
                double relevance = LinkRelevance.DEFAULT_HUB_RELEVANCE + prob[0] * 100;
                result = new LinkRelevance(ln.getLink(), relevance);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
        return result;
    }
This class implements the link classifier for the hub links.

@author lbarbosa
ache/src/main/java/achecrawler/link/classifier/LinkClassifierHub.java