Class StringSerializer
- java.lang.Object
-
- io.outofprintmagazine.nlp.pipeline.serializers.StringSerializer
-
- All Implemented Interfaces:
ISerializer
public class StringSerializer extends Object implements ISerializer
-
-
Constructor Summary
Constructors Constructor Description StringSerializer()
StringSerializer(Class annotationClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class
getAnnotationClass()
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
-
StringSerializer
public StringSerializer()
-
StringSerializer
public StringSerializer(Class annotationClass)
-
-
Method Detail
-
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
-
-