edu.illinois.cs.cogcomp.lbj.coref.decoders
Class ChunkDecoder

java.lang.Object
  extended by edu.illinois.cs.cogcomp.lbj.coref.decoders.DecoderWithOptions<ChunkSolution>
      extended by edu.illinois.cs.cogcomp.lbj.coref.decoders.ChunkDecoder
All Implemented Interfaces:
SolutionDecoder<ChunkSolution>
Direct Known Subclasses:
BIODecoder

public abstract class ChunkDecoder
extends DecoderWithOptions<ChunkSolution>

A decoder that translates a document to a ChunkSolution.

Author:
Eric Bengtson

Field Summary
protected  LBJ2.classify.Classifier m_classifier
           
 
Fields inherited from class edu.illinois.cs.cogcomp.lbj.coref.decoders.DecoderWithOptions
m_options, m_train
 
Constructor Summary
ChunkDecoder()
          Constructs a chunk decoder that does not use a classifier.
ChunkDecoder(LBJ2.classify.Classifier classifier)
          Constructor for use when a Classifier is used in the decoding process.
 
Method Summary
abstract  ChunkSolution decode(Doc doc)
          Translates a document into a set of chunks represented by a ChunkSolution, generally by applying a given classifier.
 
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
 

Field Detail

m_classifier

protected LBJ2.classify.Classifier m_classifier
Constructor Detail

ChunkDecoder

public ChunkDecoder()
Constructs a chunk decoder that does not use a classifier. The decode method may throw a NullPointerException if the classifier is not set and is accessed.


ChunkDecoder

public ChunkDecoder(LBJ2.classify.Classifier classifier)
Constructor for use when a Classifier is used in the decoding process.

Parameters:
classifier - The classifier.
Method Detail

decode

public abstract ChunkSolution decode(Doc doc)
Translates a document into a set of chunks represented by a ChunkSolution, generally by applying a given classifier.

Specified by:
decode in interface SolutionDecoder<ChunkSolution>
Specified by:
decode in class DecoderWithOptions<ChunkSolution>
Parameters:
doc - A document.
Returns:
A ChunkSolution representing a set of chunks.