edu.upenn.cis.taggers.gene
Class GeneSegmentationOutput

java.lang.Object
  extended by edu.upenn.cis.taggers.gene.GeneSegmentationOutput

public class GeneSegmentationOutput
extends java.lang.Object

This class should never be called directly; it exists as an auxiliary to GeneTagger.


Constructor Summary
GeneSegmentationOutput()
           
 
Method Summary
 TagList tag(java.lang.String passedIn, edu.umass.cs.mallet.base.fst.Transducer crf, edu.umass.cs.mallet.base.types.InstanceList testingdata)
           
 TagList tag(java.lang.String data, edu.umass.cs.mallet.base.fst.Transducer crf, edu.umass.cs.mallet.base.types.InstanceList instanceData, java.util.Vector spans)
          This class's only method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneSegmentationOutput

public GeneSegmentationOutput()
Method Detail

tag

public TagList tag(java.lang.String passedIn,
                   edu.umass.cs.mallet.base.fst.Transducer crf,
                   edu.umass.cs.mallet.base.types.InstanceList testingdata)
            throws java.io.IOException
Throws:
java.io.IOException

tag

public TagList tag(java.lang.String data,
                   edu.umass.cs.mallet.base.fst.Transducer crf,
                   edu.umass.cs.mallet.base.types.InstanceList instanceData,
                   java.util.Vector spans)
            throws java.io.IOException
This class's only method. It tags a properly formatted String according to the CRF model and returns it in XML format

Parameters:
data - The String to tag
crf - The model to use
instanceData - Used to generate the tags
Returns:
The XML-tagged String
Throws:
java.io.IOException