Class CoreNlpParagraphAnnotator
- java.lang.Object
-
- edu.stanford.nlp.paragraphs.ParagraphAnnotator
-
- io.outofprintmagazine.nlp.pipeline.annotators.CoreNlpParagraphAnnotator
-
- All Implemented Interfaces:
edu.stanford.nlp.pipeline.Annotator
,IOOPAnnotator
public class CoreNlpParagraphAnnotator extends edu.stanford.nlp.paragraphs.ParagraphAnnotator implements edu.stanford.nlp.pipeline.Annotator, IOOPAnnotator
-
-
Field Summary
Fields Modifier and Type Field Description protected IParameterStore
properties
-
Fields inherited from interface edu.stanford.nlp.pipeline.Annotator
DEFAULT_REQUIREMENTS, STANFORD_CLEAN_XML, STANFORD_COLUMN_DATA_CLASSIFIER, STANFORD_COREF, STANFORD_COREF_MENTION, STANFORD_DEPENDENCIES, STANFORD_DETERMINISTIC_COREF, STANFORD_DOCDATE, STANFORD_ENTITY_MENTIONS, STANFORD_GENDER, STANFORD_KBP, STANFORD_LEMMA, STANFORD_LINK, STANFORD_MWT, STANFORD_NATLOG, STANFORD_NER, STANFORD_OPENIE, STANFORD_PARSE, STANFORD_POS, STANFORD_QUOTE, STANFORD_QUOTE_ATTRIBUTION, STANFORD_REGEXNER, STANFORD_RELATION, STANFORD_SENTIMENT, STANFORD_SSPLIT, STANFORD_TOKENIZE, STANFORD_TOKENSREGEX, STANFORD_TRUECASE, STANFORD_UD_FEATURES
-
-
Constructor Summary
Constructors Constructor Description CoreNlpParagraphAnnotator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class
getAnnotationClass()
String
getDescription()
void
init(IParameterStore properties)
Set<Class<? extends edu.stanford.nlp.ling.CoreAnnotation>>
requires()
void
score(edu.stanford.nlp.pipeline.CoreDocument document)
void
serialize(edu.stanford.nlp.pipeline.CoreDocument document, com.fasterxml.jackson.databind.node.ObjectNode json)
void
serializeAggregateDocument(edu.stanford.nlp.pipeline.CoreDocument document, com.fasterxml.jackson.databind.node.ObjectNode json)
-
Methods inherited from class edu.stanford.nlp.paragraphs.ParagraphAnnotator
annotate, requirementsSatisfied
-
-
-
-
Field Detail
-
properties
protected IParameterStore properties
-
-
Method Detail
-
init
public void init(IParameterStore properties)
- Specified by:
init
in interfaceIOOPAnnotator
-
getAnnotationClass
public Class getAnnotationClass()
- Specified by:
getAnnotationClass
in interfaceIOOPAnnotator
-
requires
public Set<Class<? extends edu.stanford.nlp.ling.CoreAnnotation>> requires()
- Specified by:
requires
in interfaceedu.stanford.nlp.pipeline.Annotator
- Overrides:
requires
in classedu.stanford.nlp.paragraphs.ParagraphAnnotator
-
score
public void score(edu.stanford.nlp.pipeline.CoreDocument document)
- Specified by:
score
in interfaceIOOPAnnotator
-
serialize
public void serialize(edu.stanford.nlp.pipeline.CoreDocument document, com.fasterxml.jackson.databind.node.ObjectNode json)
- Specified by:
serialize
in interfaceIOOPAnnotator
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceIOOPAnnotator
-
serializeAggregateDocument
public void serializeAggregateDocument(edu.stanford.nlp.pipeline.CoreDocument document, com.fasterxml.jackson.databind.node.ObjectNode json)
- Specified by:
serializeAggregateDocument
in interfaceIOOPAnnotator
-
-