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