edu.illinois.cs.cogcomp.lbj.coref.decoders
Class ChainSolutionDecoder<ST extends ChainSolution<CT>,CT,ET>

java.lang.Object
  extended by edu.illinois.cs.cogcomp.lbj.coref.decoders.DecoderWithOptions<ST>
      extended by edu.illinois.cs.cogcomp.lbj.coref.decoders.ChainSolutionDecoder<ST,CT,ET>
All Implemented Interfaces:
SolutionDecoder<ST>
Direct Known Subclasses:
CorefDecoder

public abstract class ChainSolutionDecoder<ST extends ChainSolution<CT>,CT,ET>
extends DecoderWithOptions<ST>

Base class for decoding decisions into chain solutions. This is the base class for coreference decoders. Also provides facilities for setting and getting options.

Author:
Eric Bengtson

Field Summary
 
Fields inherited from class edu.illinois.cs.cogcomp.lbj.coref.decoders.DecoderWithOptions
m_options, m_train
 
Constructor Summary
ChainSolutionDecoder()
           
 
Method Summary
abstract  ST decode(Doc doc)
          Decodes a document, typically by translating classifier decisions to a solution type.
 java.lang.String getStatsString()
          Get statistics encoded as a string.
 
Methods inherited from class edu.illinois.cs.cogcomp.lbj.coref.decoders.DecoderWithOptions
getBooleanOption, getOption, getRealOption, processOption, setOption, setOption, setOption, setTrain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChainSolutionDecoder

public ChainSolutionDecoder()
Method Detail

decode

public abstract ST decode(Doc doc)
Decodes a document, typically by translating classifier decisions to a solution type.

Specified by:
decode in interface SolutionDecoder<ST extends ChainSolution<CT>>
Specified by:
decode in class DecoderWithOptions<ST extends ChainSolution<CT>>
Parameters:
doc - The document to decode.
Returns:
A solution.

getStatsString

public java.lang.String getStatsString()
Get statistics encoded as a string. Override to generate a decoder-specific statistics string.

Returns:
A statistics string.