ó ¥%zSc@sddlmZddlZdd d„ƒYZddd„ƒYZddd„ƒYZd dd „ƒYZd dd „ƒYZdS(iÿÿÿÿ(tetreeNt CfileDesccBseZdd„ZRS(cCs7d|_|dkr*tjdƒ|_n ||_dS(NsKAF/NAFtfileDesc(ttypetNoneRtElementtnode(tselfR((s5/tmp/tmphMOK1S/lib/python/KafNafParser/header_data.pyt__init__s  N(t__name__t __module__RR(((s5/tmp/tmphMOK1S/lib/python/KafNafParser/header_data.pyRstCpubliccBseZdd„ZRS(cCs7d|_|dkr*tjdƒ|_n ||_dS(NsKAF/NAFtpublic(RRRRR(RR((s5/tmp/tmphMOK1S/lib/python/KafNafParser/header_data.pyRs  N(R R RR(((s5/tmp/tmphMOK1S/lib/python/KafNafParser/header_data.pyR stClpcBsDeZddddd„Zd„Zd„Zdd„Zd„ZRS(tcCs^d|_|dkrQtjdƒ|_|j|ƒ|j|ƒ|j|ƒn ||_dS(NsKAF/NAFtlp(RRRRRtset_namet set_versiont set_timestamp(RRtnametversiont timestamp((s5/tmp/tmphMOK1S/lib/python/KafNafParser/header_data.pyRs    cCs|jjd|ƒdS(NR(Rtset(RR((s5/tmp/tmphMOK1S/lib/python/KafNafParser/header_data.pyR(scCs|jjd|ƒdS(NR(RR(RR((s5/tmp/tmphMOK1S/lib/python/KafNafParser/header_data.pyR+scCsA|dkr*ddl}|jdƒ}n|jjd|ƒdS(Niÿÿÿÿs%Y-%m-%dT%H:%M:%S%ZR(RttimetstrftimeRR(RRR((s5/tmp/tmphMOK1S/lib/python/KafNafParser/header_data.pyR.s  cCs|jS(N(R(R((s5/tmp/tmphMOK1S/lib/python/KafNafParser/header_data.pytget_node5sN(R R RRRRRR(((s5/tmp/tmphMOK1S/lib/python/KafNafParser/header_data.pyR s    tClinguisticProcessorscBs8eZdd„Zd„Zd„Zd„Zd„ZRS(cCs7d|_|dkr*tjdƒ|_n ||_dS(NsKAF/NAFtlinguisticProcessors(RRRRR(RR((s5/tmp/tmphMOK1S/lib/python/KafNafParser/header_data.pyR:s  cCs|jjdƒS(Ntlayer(Rtget(R((s5/tmp/tmphMOK1S/lib/python/KafNafParser/header_data.pyt get_layerAscCs|jjd|ƒdS(NR(RR(RR((s5/tmp/tmphMOK1S/lib/python/KafNafParser/header_data.pyt set_layerDscCs|jj|jƒƒdS(N(RtappendR(Rtmy_lp((s5/tmp/tmphMOK1S/lib/python/KafNafParser/header_data.pytadd_linguistic_processorGscCs|jS(N(R(R((s5/tmp/tmphMOK1S/lib/python/KafNafParser/header_data.pyRJsN(R R RRRRR"R(((s5/tmp/tmphMOK1S/lib/python/KafNafParser/header_data.pyR9s     tCHeadercBsDeZddd„Zd„Zd„Zd„Zd„Zd„ZRS(tNAFcCsm||_|dkr`|jdkr9tjdƒ|_qi|jdkritjdƒ|_qin ||_dS(NR$t nafHeadertKAFt kafHeader(RRRRR(RRR((s5/tmp/tmphMOK1S/lib/python/KafNafParser/header_data.pyROs  cCs+|jdkr'd|j_d|_ndS(NR$R'R&(RRttag(R((s5/tmp/tmphMOK1S/lib/python/KafNafParser/header_data.pytto_kafYs cCs+|jdkr'd|j_d|_ndS(NR&R%R$(RRR((R((s5/tmp/tmphMOK1S/lib/python/KafNafParser/header_data.pytto_naf^s cCs|jj|jƒƒdS(N(RR R(Rtlinpro((s5/tmp/tmphMOK1S/lib/python/KafNafParser/header_data.pytadd_linguistic_processorscscCsJxC|jjdƒD]/}|jdƒ|kr|jj|ƒPqqWdS(NRR(RtfindallRtremove(RRt this_node((s5/tmp/tmphMOK1S/lib/python/KafNafParser/header_data.pyt remove_lpfscCsŽd}xB|jjdƒD].}t|ƒ}|jƒ|kr|}PqqW|dkr}tƒ}|j|ƒ|j|ƒn|j|ƒdS(NR(RRR-RRRR,R"(RRR!t found_lp_objtthis_lptlp_obj((s5/tmp/tmphMOK1S/lib/python/KafNafParser/header_data.pyR"ms    N( R R RRR)R*R,R0R"(((s5/tmp/tmphMOK1S/lib/python/KafNafParser/header_data.pyR#Ns     ((((((tlxmlRRRR R RR#(((s5/tmp/tmphMOK1S/lib/python/KafNafParser/header_data.pyts