Class BigDecimalSum
- java.lang.Object
-
- io.outofprintmagazine.nlp.pipeline.scorers.BigDecimalScorer
-
- io.outofprintmagazine.nlp.pipeline.scorers.BigDecimalSum
-
- All Implemented Interfaces:
IScorer
- Direct Known Subclasses:
BigDecimalSumDocumentScorer
,BigDecimalSumSentenceCountScorer
,BigDecimalSumSentenceScorer
,BigDecimalSumTokenScorer
public class BigDecimalSum extends BigDecimalScorer implements IScorer
-
-
Field Summary
-
Fields inherited from class io.outofprintmagazine.nlp.pipeline.scorers.BigDecimalScorer
annotationClass
-
-
Constructor Summary
Constructors Constructor Description BigDecimalSum()
BigDecimalSum(Class annotationClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
aggregateDocument(edu.stanford.nlp.pipeline.CoreDocument document)
Object
aggregateDocument(edu.stanford.nlp.pipeline.CoreDocument document, Map<String,BigDecimal> rawScores)
BigDecimal
aggregateScores(List<BigDecimal> allScores)
Map<String,BigDecimal>
getDocumentAggregatableScores(edu.stanford.nlp.pipeline.CoreDocument document)
protected org.apache.logging.log4j.Logger
getLogger()
-
Methods inherited from class io.outofprintmagazine.nlp.pipeline.scorers.BigDecimalScorer
getAnnotationClass, score, scoreDocument, scoreSentences, scoreTokens, setAnnotationClass
-
-
-
-
Constructor Detail
-
BigDecimalSum
public BigDecimalSum()
-
BigDecimalSum
public BigDecimalSum(Class annotationClass)
-
-
Method Detail
-
getLogger
protected org.apache.logging.log4j.Logger getLogger()
- Overrides:
getLogger
in classBigDecimalScorer
-
aggregateScores
public BigDecimal aggregateScores(List<BigDecimal> allScores)
- Specified by:
aggregateScores
in classBigDecimalScorer
-
getDocumentAggregatableScores
public Map<String,BigDecimal> getDocumentAggregatableScores(edu.stanford.nlp.pipeline.CoreDocument document)
- Specified by:
getDocumentAggregatableScores
in classBigDecimalScorer
-
aggregateDocument
public Object aggregateDocument(edu.stanford.nlp.pipeline.CoreDocument document)
- Specified by:
aggregateDocument
in interfaceIScorer
- Specified by:
aggregateDocument
in classBigDecimalScorer
-
aggregateDocument
public Object aggregateDocument(edu.stanford.nlp.pipeline.CoreDocument document, Map<String,BigDecimal> rawScores)
-
-