sg.edu.nus.comp.nlp.ims.io
Interface ILexeltWriter

All Known Implementing Classes:
CGISLexeltWriter, CLibLinearLexeltWriter, CLibSVMLexeltWriter, CWekaLexeltWriter, CWekaSparseLexeltWriter

public interface ILexeltWriter

lexelt writer interface. convert the instances in a lexelt to a special format.

Author:
zhongzhi

Method Summary
 java.lang.Object getInstances(ILexelt p_Lexelt)
          extract instances from p_iLexelt
 java.lang.String toString(ILexelt p_Lexelt)
          write lexelt to a string
 void write(java.lang.String p_Filename, ILexelt p_Lexelt)
          write information of p_iLexelt to p_FileName in some format
 

Method Detail

write

void write(java.lang.String p_Filename,
           ILexelt p_Lexelt)
           throws java.lang.Exception
write information of p_iLexelt to p_FileName in some format

Parameters:
p_Filename - file name
p_Lexelt - lexelt
Throws:
java.lang.Exception - exception while converting p_Lexelt

toString

java.lang.String toString(ILexelt p_Lexelt)
                          throws java.lang.Exception
write lexelt to a string

Parameters:
p_Lexelt - lexelt
Returns:
feature vector string
Throws:
java.lang.Exception - exception while converting p_Lexelt

getInstances

java.lang.Object getInstances(ILexelt p_Lexelt)
                              throws java.lang.Exception
extract instances from p_iLexelt

Parameters:
p_Lexelt - lexelt
Returns:
instances
Throws:
java.lang.Exception - exception while converting p_Lexelt