|
||||||||||
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.CWekaLexeltWriter
sg.edu.nus.comp.nlp.ims.io.CWekaSparseLexeltWriter
public class CWekaSparseLexeltWriter
convert instances in a lexelt to weka sparse instances format.
Field Summary |
---|
Fields inherited from class sg.edu.nus.comp.nlp.ims.io.CWekaLexeltWriter |
---|
CommaPattern, QuotPattern |
Constructor Summary | |
---|---|
CWekaSparseLexeltWriter()
default constructor |
Method Summary | |
---|---|
protected java.lang.String |
getFeatureVector(IInstance p_Instance,
IStatistic p_Stat)
generate the feature vector for one instance |
java.lang.Object |
getInstances(ILexelt p_Lexelt)
extract instances from p_iLexelt |
Methods inherited from class sg.edu.nus.comp.nlp.ims.io.CWekaLexeltWriter |
---|
amendValue, getHeader, toString, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CWekaSparseLexeltWriter()
Method Detail |
---|
public java.lang.Object getInstances(ILexelt p_Lexelt) throws java.lang.ClassNotFoundException
ILexeltWriter
getInstances
in interface ILexeltWriter
getInstances
in class CWekaLexeltWriter
p_Lexelt
- lexelt
java.lang.ClassNotFoundException
protected java.lang.String getFeatureVector(IInstance p_Instance, IStatistic p_Stat)
CWekaLexeltWriter
getFeatureVector
in class CWekaLexeltWriter
p_Instance
- instancep_Stat
- statistic of training instances
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |