Package opennlp.dl.doccat.scoring
Class AverageClassificationScoringStrategy
- java.lang.Object
-
- opennlp.dl.doccat.scoring.AverageClassificationScoringStrategy
-
- All Implemented Interfaces:
ClassificationScoringStrategy
public class AverageClassificationScoringStrategy extends Object implements ClassificationScoringStrategy
Calculates the document classification scores by averaging the scores for all individual parts of a document.
-
-
Constructor Summary
Constructors Constructor Description AverageClassificationScoringStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]score(List<double[]> scores)Calculate the final scores based on the scores of the individual document parts.
-
-
-
Method Detail
-
score
public double[] score(List<double[]> scores)
Description copied from interface:ClassificationScoringStrategyCalculate the final scores based on the scores of the individual document parts.- Specified by:
scorein interfaceClassificationScoringStrategy- Parameters:
scores- The scores for each individual part of the document.- Returns:
- The calculated scores.
-
-