Class PhraseSerializer
- java.lang.Object
-
- io.outofprintmagazine.nlp.pipeline.serializers.PhraseSerializer
-
- All Implemented Interfaces:
ISerializer
public class PhraseSerializer extends Object implements ISerializer
-
-
Constructor Summary
Constructors Constructor Description PhraseSerializer()
PhraseSerializer(Class annotationClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class
getAnnotationClass()
protected org.apache.logging.log4j.Logger
getLogger()
void
serialize(edu.stanford.nlp.pipeline.CoreDocument document, com.fasterxml.jackson.databind.node.ObjectNode json)
void
serializeAggregate(Object aggregate, com.fasterxml.jackson.databind.node.ObjectNode json)
protected void
serializeDocument(edu.stanford.nlp.pipeline.CoreDocument coreNlpDocument, com.fasterxml.jackson.databind.node.ObjectNode jsonDocument)
protected void
serializeSentences(edu.stanford.nlp.pipeline.CoreDocument coreNlpDocument, com.fasterxml.jackson.databind.node.ObjectNode jsonDocument)
protected void
serializeTokens(edu.stanford.nlp.pipeline.CoreDocument coreNlpDocument, com.fasterxml.jackson.databind.node.ObjectNode jsonDocument)
void
setAnnotationClass(Class annotationClass)
-
-
-
Constructor Detail
-
PhraseSerializer
public PhraseSerializer()
-
PhraseSerializer
public PhraseSerializer(Class annotationClass)
-
-
Method Detail
-
getLogger
protected org.apache.logging.log4j.Logger getLogger()
-
setAnnotationClass
public void setAnnotationClass(Class annotationClass)
-
getAnnotationClass
public Class getAnnotationClass()
-
serialize
public void serialize(edu.stanford.nlp.pipeline.CoreDocument document, com.fasterxml.jackson.databind.node.ObjectNode json)
- Specified by:
serialize
in interfaceISerializer
-
serializeDocument
protected void serializeDocument(edu.stanford.nlp.pipeline.CoreDocument coreNlpDocument, com.fasterxml.jackson.databind.node.ObjectNode jsonDocument)
-
serializeSentences
protected void serializeSentences(edu.stanford.nlp.pipeline.CoreDocument coreNlpDocument, com.fasterxml.jackson.databind.node.ObjectNode jsonDocument)
-
serializeTokens
protected void serializeTokens(edu.stanford.nlp.pipeline.CoreDocument coreNlpDocument, com.fasterxml.jackson.databind.node.ObjectNode jsonDocument)
-
serializeAggregate
public void serializeAggregate(Object aggregate, com.fasterxml.jackson.databind.node.ObjectNode json)
- Specified by:
serializeAggregate
in interfaceISerializer
-
-