Class MapScorer
- java.lang.Object
-
- io.outofprintmagazine.nlp.pipeline.scorers.MapScorer
-
-
Field Summary
Fields Modifier and Type Field Description protected Class
annotationClass
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Object
aggregateDocument(edu.stanford.nlp.pipeline.CoreDocument document)
abstract Map<String,BigDecimal>
aggregateScores(List<Map<String,BigDecimal>> allScores)
Class
getAnnotationClass()
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
-
MapScorer
public MapScorer()
-
MapScorer
public MapScorer(Class annotationClass)
-
-
Method Detail
-
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 Object aggregateDocument(edu.stanford.nlp.pipeline.CoreDocument document)
- Specified by:
aggregateDocument
in interfaceIScorer
-
aggregateScores
public abstract Map<String,BigDecimal> aggregateScores(List<Map<String,BigDecimal>> allScores)
-
-