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