ó ¥%zSc@sXddlTddlTddlTddlmZddd„ƒYZdd d„ƒYZdS( iÿÿÿÿ(t*(tetreetCtermcBs_eZd dd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z RS( tNAFcCs7||_|dkr*tjdƒ|_n ||_dS(Ntterm(ttypetNoneRtElementtnode(tselfRR((s3/tmp/tmphMOK1S/lib/python/KafNafParser/term_data.pyt__init__ s  cCsB|jdkr|jjdƒS|jdkr>|jjdƒSdS(NRtidtKAFttid(RRtget(R ((s3/tmp/tmphMOK1S/lib/python/KafNafParser/term_data.pytget_idscCs|jjdƒS(Ntlemma(RR(R ((s3/tmp/tmphMOK1S/lib/python/KafNafParser/term_data.pyt get_lemmascCs|jjdƒS(Ntpos(RR(R ((s3/tmp/tmphMOK1S/lib/python/KafNafParser/term_data.pytget_posscCs|jjdƒS(Nt morphofeat(RR(R ((s3/tmp/tmphMOK1S/lib/python/KafNafParser/term_data.pytget_morphofeatscCs0|jjdƒ}|dk r(t|ƒSdSdS(Ntspan(RtfindRtCspan(R t node_span((s3/tmp/tmphMOK1S/lib/python/KafNafParser/term_data.pytget_span"s  cCs0|jjdƒ}|dkr"dSt|ƒSdS(Nt sentiment(RRRtCterm_sentiment(R t sent_node((s3/tmp/tmphMOK1S/lib/python/KafNafParser/term_data.pyt get_sentiment)s cCs]|jjdƒ}|dkr@tƒ}|jj|jƒƒn t|ƒ}|j|ƒdS(NtexternalReferences(RRRtCexternalReferencestappendtget_nodetadd_external_reference(R text_reft ext_refs_nodet ext_refs_obj((s3/tmp/tmphMOK1S/lib/python/KafNafParser/term_data.pyR#2s    cCs|jj|jƒƒdS(N(RR!R"(R tterm_sentiment((s3/tmp/tmphMOK1S/lib/python/KafNafParser/term_data.pytadd_term_sentiment<sN( t__name__t __module__RR RRRRRRR#R((((s3/tmp/tmphMOK1S/lib/python/KafNafParser/term_data.pyR s      tCtermscBsVeZd dd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z RS( RcCsmi|_||_|dkr3tjdƒ|_n6||_x*|jƒD]}||j|jdƒs   8