ó i;sSc@s®dZddlmZddlmZddlmZmZdefd„ƒYZdefd„ƒYZ d efd „ƒYZ d efd „ƒYZ d efd„ƒYZ dS(s'Josu Bermudez i(tSieve(t dictionaries(tconstituent_tagstner_tagstAppositiveConstructioncBsAeZdZeZeZeZeZd„Z d„Z d„Z RS(tACCcCs/t|j|ƒj||ƒd|k|_dS(NtCONSTRUCT_FILTER_APPOSITION(tsupert __class__t__init__tfilter_apposition(tselftmulti_sieve_processortoptions((s0corefgraph/multisieve/sieves/preciseConstruct.pyR scCsSt|j|ƒj||ƒs"tS|jjd|ƒr;tS|jd|dƒtS(Nt constituents3MENTION FILTERED Not in appositive construction: %stform(RRtvalidatetFalset tree_utilst is_appositive_construction_childtTruetdebug(R tmentiont mention_index((s0corefgraph/multisieve/sieves/preciseConstruct.pyRs cCs|j|ƒr6|j|ƒr6|jd|dƒtS|jd|d|ƒsf|jd|dƒtS|j|ƒrœ|jd|d|jddƒƒtS|d |jj|d ƒkrþ|jræ|jd |dƒt |d Pn|j | ƒq$Wg|D]} | d ^qV}|d |kr­|j r¦t |d <|jd |dƒnt Sn|jd |dƒtS( NRGRHRRFs$LINK FILTERED No enclosing verb: %s Ris)LINK FILTERED verb is not copulative: %s tidRsLINK MATCH: %ssLINK IGNORED: %s (t graph_buildert same_sentenceR Rt verb_phrasesRRtget_syntactic_siblingRtverbst copulativetappendROR( R RRRtmention_parenttmention_grandparenttenclosing_verb_phrasetsiblingstenclosing_verb_phrase_idtsibling((s0corefgraph/multisieve/sieves/preciseConstruct.pyR!Ís<    &   ( R"R#R$RR'R%R RR!(((s0corefgraph/multisieve/sieves/preciseConstruct.pyRL´s   N( t __author__tmultisieve.sieves.baseRt resourcesRtresources.tagsetRRRR)R5RBRL(((s0corefgraph/multisieve/sieves/preciseConstruct.pyts9)'