edu.umass.cs.mallet.projects.seg_plus_coref
Class BaseTUICRF

java.lang.Object
  extended byedu.umass.cs.mallet.projects.seg_plus_coref.BaseTUICRF
Direct Known Subclasses:
TUI_CorefIE

public class BaseTUICRF
extends java.lang.Object

Methods that are useful for CRF TUIs.


Field Summary
protected static CommandOption.String offsetsOption
           
protected static CommandOption.File outputPrefix
           
protected static CommandOption.Integer randomSeedOption
           
protected static CommandOption.Double testingPct
           
protected static CommandOption.Double trainingPct
           
 
Constructor Summary
BaseTUICRF()
           
 
Method Summary
protected static int[][] getOffsets()
           
protected static void initOutputDirectory()
           
protected static void printSequence(java.io.PrintStream outf, java.lang.String name, Sequence input, Sequence trueOutput, Sequence predOutput)
           
protected static void writeCrf(Transducer crf)
           
protected static void writeCrf(Transducer crf, java.lang.String id)
           
protected static void writeOutput(Transducer crf, InstanceList testing)
           
protected static void writeOutput(Transducer crf, InstanceList testing, java.lang.String num)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

outputPrefix

protected static CommandOption.File outputPrefix

randomSeedOption

protected static CommandOption.Integer randomSeedOption

trainingPct

protected static CommandOption.Double trainingPct

testingPct

protected static CommandOption.Double testingPct

offsetsOption

protected static CommandOption.String offsetsOption
Constructor Detail

BaseTUICRF

public BaseTUICRF()
Method Detail

writeCrf

protected static void writeCrf(Transducer crf)
                        throws java.io.IOException
Throws:
java.io.IOException

writeCrf

protected static void writeCrf(Transducer crf,
                               java.lang.String id)
                        throws java.io.IOException
Throws:
java.io.IOException

writeOutput

protected static void writeOutput(Transducer crf,
                                  InstanceList testing)
                           throws java.io.IOException
Throws:
java.io.IOException

writeOutput

protected static void writeOutput(Transducer crf,
                                  InstanceList testing,
                                  java.lang.String num)
                           throws java.io.IOException
Throws:
java.io.IOException

printSequence

protected static void printSequence(java.io.PrintStream outf,
                                    java.lang.String name,
                                    Sequence input,
                                    Sequence trueOutput,
                                    Sequence predOutput)

initOutputDirectory

protected static void initOutputDirectory()
                                   throws java.io.IOException
Throws:
java.io.IOException

getOffsets

protected static int[][] getOffsets()
                             throws bsh.EvalError
Throws:
bsh.EvalError