org.allenai.nlpstack.parse.poly.fsm
Boilerplate code to serialize a TransitionClassifier to JSON using Spray.
Boilerplate code to serialize a TransitionClassifier to JSON using Spray.
NOTE: If a subclass has a field named type
, this will fail to serialize.
NOTE: IF YOU INHERIT FROM TransitionClassifier, THEN YOU MUST MODIFY THESE SUBROUTINES IN ORDER TO CORRECTLY EMPLOY JSON SERIALIZATION FOR YOUR NEW SUBCLASS.
Companion class for serializing TransitionClassifier instances.