|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsg.edu.nus.comp.nlp.ims.io.CModelWriter
public class CModelWriter
save model to hard disk.
Field Summary | |
---|---|
protected java.lang.String |
m_ModelDir
|
protected java.lang.String |
m_StatisticDir
|
Constructor Summary | |
---|---|
CModelWriter()
default constructor |
|
CModelWriter(java.lang.String p_ModelDir)
constructor with model directory |
|
CModelWriter(java.lang.String p_ModelDir,
java.lang.String p_StatisticDir)
constructor with model directory and statistic directory |
Method Summary | |
---|---|
void |
setOptions(java.lang.String[] p_Options)
set options |
void |
write(java.lang.Object p_Model)
write model |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String m_ModelDir
protected java.lang.String m_StatisticDir
Constructor Detail |
---|
public CModelWriter()
public CModelWriter(java.lang.String p_ModelDir)
p_ModelDir
- model directorypublic CModelWriter(java.lang.String p_ModelDir, java.lang.String p_StatisticDir)
p_ModelDir
- model directoryp_StatisticDir
- statistic directoryMethod Detail |
---|
public void write(java.lang.Object p_Model) throws java.io.IOException
IModelWriter
write
in interface IModelWriter
p_Model
- model
java.io.IOException
- exception while saving modelpublic void setOptions(java.lang.String[] p_Options)
IModelWriter
setOptions
in interface IModelWriter
p_Options
- options
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |