edu.umass.cs.mallet.projects.seg_plus_coref
Class BaseTUICRF
java.lang.Object
edu.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
BaseTUICRF
public BaseTUICRF()
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