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 ClassannotationClass
-
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 ObjectaggregateDocument(edu.stanford.nlp.pipeline.CoreDocument document)abstract BigDecimalaggregateScores(List<BigDecimal> allScores)ClassgetAnnotationClass()abstract Map<String,BigDecimal>getDocumentAggregatableScores(edu.stanford.nlp.pipeline.CoreDocument document)protected org.apache.logging.log4j.LoggergetLogger()voidscore(edu.stanford.nlp.pipeline.CoreDocument document)voidscoreDocument(edu.stanford.nlp.pipeline.CoreDocument document)voidscoreSentences(edu.stanford.nlp.pipeline.CoreDocument document)voidscoreTokens(edu.stanford.nlp.pipeline.CoreDocument document)voidsetAnnotationClass(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:
aggregateDocumentin interfaceIScorer
-
getDocumentAggregatableScores
public abstract Map<String,BigDecimal> getDocumentAggregatableScores(edu.stanford.nlp.pipeline.CoreDocument document)
-
aggregateScores
public abstract BigDecimal aggregateScores(List<BigDecimal> allScores)
-
-