package com.grayben.riskExtractor.htmlScorer.partScorers;


/**
 * Element scorer interface. Provide an implementing class to
 * {@link com.grayben.riskExtractor.htmlScorer.ScoringAndFlatteningNodeVisitor}.
 * <p/>
 * This interface contains a single method that takes an {@link org.jsoup.nodes.Element} and returns a score.
 * @author beng
 *
 */
public abstract class Scorer<T> {

    private String scoreLabel;

    public final static int DEFAULT_SCORE = 0;

    protected Scorer(String scoreLabel){
        this.scoreLabel = scoreLabel;
    }
	
	/**
	 * 
	 * @param input the Element to score
	 * @return the score of element
	 */
	public abstract int score(T input);

    public String getScoreLabel(){
        return this.scoreLabel;
    }
}

package com.grayben.riskExtractor.htmlScorer.partScorers;


/**
 * Element scorer interface. Provide an implementing class to
 * {@link com.grayben.riskExtractor.htmlScorer.ScoringAndFlatteningNodeVisitor}.
 * <p>
 * This interface contains a single method that takes an {@link org.jsoup.nodes.Element} and returns a score.
 * @author beng
 *
 */
public abstract class Scorer<T> {

    private String scoreLabel;

    public final static int DEFAULT_SCORE = 0;

    protected Scorer(String scoreLabel){
        this.scoreLabel = scoreLabel;
    }
	
	/**
	 * 
	 * @param input the Element to score
	 * @return the score of element
	 */
	public abstract int score(T input);

    public String getScoreLabel(){
        return this.scoreLabel;
    }
}

Remove self-closure of <p/> tag in Javadoc comment