sg.edu.nus.comp.nlp.ims.io
Class CFullResultWriter

java.lang.Object
  extended by sg.edu.nus.comp.nlp.ims.io.CResultWriter
      extended by sg.edu.nus.comp.nlp.ims.io.CFullResultWriter
All Implemented Interfaces:
IResultWriter

public class CFullResultWriter
extends CResultWriter

write the result with probabilities to disk.

Author:
zhongzhi

Field Summary
 
Fields inherited from class sg.edu.nus.comp.nlp.ims.io.CResultWriter
m_SaveDir
 
Constructor Summary
CFullResultWriter()
          default constructor
CFullResultWriter(java.lang.String p_SaveDir)
          constructor with save directory
 
Method Summary
 java.lang.String toString(java.lang.Object p_Result)
          convert result to string
 void write(java.lang.Object p_Result)
          write results
 
Methods inherited from class sg.edu.nus.comp.nlp.ims.io.CResultWriter
getFile, setOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CFullResultWriter

public CFullResultWriter()
default constructor


CFullResultWriter

public CFullResultWriter(java.lang.String p_SaveDir)
constructor with save directory

Parameters:
p_SaveDir - save directory
Method Detail

write

public void write(java.lang.Object p_Result)
           throws java.io.IOException
Description copied from interface: IResultWriter
write results

Specified by:
write in interface IResultWriter
Overrides:
write in class CResultWriter
Parameters:
p_Result - result
Throws:
java.io.IOException - exception while saving result

toString

public java.lang.String toString(java.lang.Object p_Result)
Description copied from interface: IResultWriter
convert result to string

Specified by:
toString in interface IResultWriter
Overrides:
toString in class CResultWriter
Parameters:
p_Result - classification result
Returns:
string format