Class PhraseScorer
- java.lang.Object
-
- io.outofprintmagazine.nlp.pipeline.scorers.PhraseScorer
-
-
Field Summary
Fields Modifier and Type Field Description protected Class
annotationClass
-
Constructor Summary
Constructors Constructor Description PhraseScorer()
PhraseScorer(Class annotationClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addToScoreList(List<PhraseAnnotation> scoreMap, PhraseAnnotation p)
Object
aggregateDocument(edu.stanford.nlp.pipeline.CoreDocument document)
Class
getAnnotationClass()
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
setAnnotationClass(Class annotationClass)
-
-
-
Field Detail
-
annotationClass
protected Class annotationClass
-
-
Constructor Detail
-
PhraseScorer
public PhraseScorer()
-
PhraseScorer
public PhraseScorer(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)
-
scoreSentences
public void scoreSentences(edu.stanford.nlp.pipeline.CoreDocument document)
-
scoreDocument
public void scoreDocument(edu.stanford.nlp.pipeline.CoreDocument document)
-
addToScoreList
protected void addToScoreList(List<PhraseAnnotation> scoreMap, PhraseAnnotation p)
-
aggregateDocument
public Object aggregateDocument(edu.stanford.nlp.pipeline.CoreDocument document)
- Specified by:
aggregateDocument
in interfaceIScorer
-
-