Interface ISerializer

  • All Known Implementing Classes:
    BigDecimalSerializer, CoreNlpSerializer, MapSerializer, PhraseSerializer, StringSerializer

    public interface ISerializer

    Interface for custom annotators json serialization.

    serialize() should decorate the syntax tree from CoreNlpSerializer with Annotations from IOOPAnnotator.

    serializeAggregate() should decorate the root node of an empty json document with Annotations from IScorer

    Author:
    Ram Sadasiv
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      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)  
    • Method Detail

      • serialize

        void serialize​(edu.stanford.nlp.pipeline.CoreDocument document,
                       com.fasterxml.jackson.databind.node.ObjectNode json)
      • serializeAggregate

        void serializeAggregate​(Object aggregate,
                                com.fasterxml.jackson.databind.node.ObjectNode json)