|
Sautrela | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.gtts.sautrela.engine.AbstractDataProcessor
edu.gtts.sautrela.wfsa.Trainer
public class Trainer
| Nested Class Summary | |
|---|---|
static class |
Trainer.Method
|
static class |
Trainer.TargetType
|
| Field Summary |
|---|
| Fields inherited from interface java.beans.BeanInfo |
|---|
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32 |
| Constructor Summary | |
|---|---|
Trainer()
|
|
| Method Summary | ||
|---|---|---|
void |
editBeanInfo(java.beans.BeanInfo info)
|
|
double |
getBeam()
Getter for property beam. |
|
DefaultDWFSA.InsertionMask |
getInsertionMask()
Getter for property insertionMask. |
|
java.lang.String |
getInsertionSymbolName()
Getter for property insertionSymbolName. |
|
double |
getMapCount()
Getter for property mapCount. |
|
Trainer.Method |
getMethod()
Getter for property method. |
|
java.lang.String |
getOutputFileName()
Getter for property outputFileName. |
|
java.lang.String |
getSupPropertyName()
Getter for property supPropertyName. |
|
java.lang.String |
getSupSplitRegex()
Getter for property supSplitRegex. |
|
Trainer.TargetType |
getTargetType()
Getter for property targetType. |
|
java.net.URL |
getTargetURL()
Getter for property targetURL. |
|
int |
getVerbose()
Getter for property verbose. |
|
boolean |
isFullGCPerformed()
Getter for property GCWaited. |
|
static void |
main(java.lang.String[] args)
|
|
static
|
ML(WFSA<S,Y,T> wfa,
java.util.Collection<java.util.List<Y>> data,
Trainer.Method method,
double beam,
int verbose)
Trains a WFSA using the Maximun Likelihood criteria |
|
static
|
ML(WFSA<S,Y,T> wfa,
java.util.Collection<java.util.List<Y>> data,
Trainer.Method method,
double beam,
int verbose,
double mapCount)
Trains a WFSA using the Maximun Likelihood criteria |
|
void |
process(Buffer in,
Buffer out)
Processes the input Data. |
|
void |
setBeam(double beam)
Setter for property beam. |
|
void |
setFullGCPerformed(boolean fullGCPerformed)
Setter for property fullGCPerformed. |
|
void |
setInsertionMask(DefaultDWFSA.InsertionMask mask)
Setter for property insertionMask. |
|
void |
setInsertionSymbolName(java.lang.String name)
Setter for property insertionSymbolName. |
|
void |
setMapCount(double mapCount)
Setter for property mapCount. |
|
void |
setMethod(Trainer.Method method)
Setter for property method. |
|
void |
setOutputFileName(java.lang.String fileName)
Setter for property outputFileName. |
|
void |
setSupPropertyName(java.lang.String supPropertyName)
Setter for property supPropertyName. |
|
void |
setSupSplitRegex(java.lang.String supSplitRegex)
Setter for property supSplitRegex. |
|
void |
setTargetType(Trainer.TargetType type)
Setter for property targetType. |
|
void |
setTargetURL(java.net.URL url)
Setter for property targetURL. |
|
void |
setVerbose(int verbose)
Setter for property verbose. |
|
| Methods inherited from class edu.gtts.sautrela.engine.AbstractDataProcessor |
|---|
getAdditionalBeanInfo, getBeanDescriptor, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, getName, getPropertyDescriptors, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Trainer()
| Method Detail |
|---|
public boolean isFullGCPerformed()
public void setFullGCPerformed(boolean fullGCPerformed)
fullGCPerformed - New value of property fullGCPerformed.public Trainer.Method getMethod()
public void setMethod(Trainer.Method method)
method - New value of property method.public double getBeam()
public void setBeam(double beam)
beam - New value of property beam.public double getMapCount()
public void setMapCount(double mapCount)
mapCount - New value of property mapCount.public java.lang.String getOutputFileName()
public void setOutputFileName(java.lang.String fileName)
fileName - New value of property outputFileName.public java.net.URL getTargetURL()
public void setTargetURL(java.net.URL url)
throws DataProcessorException
url - New value of property targetURL.
DataProcessorExceptionpublic Trainer.TargetType getTargetType()
public void setTargetType(Trainer.TargetType type)
throws DataProcessorException
type - New value of property targetType.
DataProcessorExceptionpublic DefaultDWFSA.InsertionMask getInsertionMask()
public void setInsertionMask(DefaultDWFSA.InsertionMask mask)
mask - New value of property insertionMask.public java.lang.String getInsertionSymbolName()
public void setInsertionSymbolName(java.lang.String name)
name - New value of property insertionSymbolName.public int getVerbose()
public void setVerbose(int verbose)
verbose - New value of property verbose.public java.lang.String getSupPropertyName()
public void setSupPropertyName(java.lang.String supPropertyName)
supPropertyName - New value of property supPropertyName.public java.lang.String getSupSplitRegex()
public void setSupSplitRegex(java.lang.String supSplitRegex)
supPropertyName - New value of property supSplitRegex.
public void process(Buffer in,
Buffer out)
throws DataProcessorException
in - Input Bufferout - Output Buffer
DataProcessorException
public static <S extends State,Y extends Symbol,T extends Transition<S,Y>> double ML(WFSA<S,Y,T> wfa,
java.util.Collection<java.util.List<Y>> data,
Trainer.Method method,
double beam,
int verbose)
wfa - the WFSA to be traineddata - the Collection of Symbol List to be used as training datamethod - the Method to be used for the trainingbeam - logBeam for pruning (<0.0 for no prunning)
public static <S extends State,Y extends Symbol,T extends Transition<S,Y>> double ML(WFSA<S,Y,T> wfa,
java.util.Collection<java.util.List<Y>> data,
Trainer.Method method,
double beam,
int verbose,
double mapCount)
wfa - the WFSA to be traineddata - the Collection of Symbol List to be used as training datamethod - the Method to be used for the trainingbeam - logBeam for pruning (negative for no prunning)mapCount - initial posterior probability count for MAP trainingpublic void editBeanInfo(java.beans.BeanInfo info)
editBeanInfo in class AbstractDataProcessor
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
Sautrela | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||