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 IParameterStoreproperties-
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 ClassgetAnnotationClass()StringgetDescription()voidinit(IParameterStore properties)Set<Class<? extends edu.stanford.nlp.ling.CoreAnnotation>>requires()voidscore(edu.stanford.nlp.pipeline.CoreDocument document)voidserialize(edu.stanford.nlp.pipeline.CoreDocument document, com.fasterxml.jackson.databind.node.ObjectNode json)voidserializeAggregateDocument(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:
initin interfaceIOOPAnnotator
-
getAnnotationClass
public Class getAnnotationClass()
- Specified by:
getAnnotationClassin interfaceIOOPAnnotator
-
requires
public Set<Class<? extends edu.stanford.nlp.ling.CoreAnnotation>> requires()
- Specified by:
requiresin interfaceedu.stanford.nlp.pipeline.Annotator- Overrides:
requiresin classedu.stanford.nlp.paragraphs.ParagraphAnnotator
-
score
public void score(edu.stanford.nlp.pipeline.CoreDocument document)
- Specified by:
scorein interfaceIOOPAnnotator
-
serialize
public void serialize(edu.stanford.nlp.pipeline.CoreDocument document, com.fasterxml.jackson.databind.node.ObjectNode json)- Specified by:
serializein interfaceIOOPAnnotator
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceIOOPAnnotator
-
serializeAggregateDocument
public void serializeAggregateDocument(edu.stanford.nlp.pipeline.CoreDocument document, com.fasterxml.jackson.databind.node.ObjectNode json)- Specified by:
serializeAggregateDocumentin interfaceIOOPAnnotator
-
-