+
    ÖÇÜhÇ`  ã                   óH   € R t ^ RIt^ RIt^ RIHt ^ RIHt  ! R R]4      tR# )z‰
An NLTK interface to the VerbNet verb lexicon

For details about VerbNet see:
https://verbs.colorado.edu/~mpalmer/projects/verbnet.html
N)Údefaultdict)ÚXMLCorpusReaderc                   óv  a € ] tR t^t o RtR#R lt]P                  ! R4      t ]P                  ! R4      t	 ]P                  ! R4      t
 R$R ltR$R ltR%R	 ltR
 tR$R ltR tR tR tR tR tR tR tR tR tR tR tR tR tR&R ltR&R ltR&R ltR&R lt R&R lt!R&R lt"R&R lt#R&R  lt$R&R! lt%R"t&V t'R# )'ÚVerbnetCorpusReaderaï  
An NLTK interface to the VerbNet verb lexicon.

From the VerbNet site: "VerbNet (VN) (Kipper-Schuler 2006) is the largest
on-line verb lexicon currently available for English. It is a hierarchical
domain-independent, broad-coverage verb lexicon with mappings to other
lexical resources such as WordNet (Miller, 1990; Fellbaum, 1998), XTAG
(XTAG Research Group, 2001), and FrameNet (Baker et al., 1998)."

For details about VerbNet see:
https://verbs.colorado.edu/~mpalmer/projects/verbnet.html
c                óÆ   € \         P                  ! WW#4       \        \        4      V n         \        \        4      V n         / V n         / V n        V P                  4        R # ©N)	r   Ú__init__r   ÚlistÚ_lemma_to_classÚ_wordnet_to_classÚ_class_to_fileidÚ_shortid_to_longidÚ_quick_index)ÚselfÚrootÚfileidsÚ
wrap_etrees   &&&&Ú</usr/lib/python3/dist-packages/nltk/corpus/reader/verbnet.pyr   ÚVerbnetCorpusReader.__init__%   s`   € Ü× Ò  ¨WÔAä*¬4Ó0ˆÔð	&ô "-¬TÓ!2ˆÔð	/ð !#ˆÔð	Bð #%ˆÔð
 	×ÑÖó    z([^\-\.]*)-([\d+.\-]+)$z
[\d+.\-]+$zH<MEMBER name="\??([^"]+)" wn="([^"]*)"[^>]+>|<VNSUBCLASS ID="([^"]+)"/?>Nc                ó  € Vf$   \        V P                  P                  4       4      # \        V\        4      '       d   V P                  V4      pVP                  R4       Uu. uF  q"P                  R4      NK  	  up# u upi )z`
Return a list of all verb lemmas that appear in any class, or
in the ``classid`` if specified.
úMEMBERS/MEMBERÚname)Úsortedr
   ÚkeysÚ
isinstanceÚstrÚvnclassÚfindallÚget)r   r   Úmembers   && r   ÚlemmasÚVerbnetCorpusReader.lemmasH   sk   € ð
 Š?Ü˜$×.Ñ.×3Ñ3Ó5Ó6Ð6ô ˜'¤3×'Ò'ØŸ,™, wÓ/�Ø5<·_±_ÐEUÔ5VÓWÑ5V¨6—J‘J˜vÖ&Ñ5VÑWÐWùÒWs   Á"A>c                óâ   € Vf$   \        V P                  P                  4       4      # \        V\        4      '       d   V P                  V4      p\        R VP                  R4       4       . 4      # )zd
Return a list of all wordnet identifiers that appear in any
class, or in ``classid`` if specified.
c              3   ób   "  € T F%  pVP                  R R4      P                  4       x € K'  	  R# 5i)ÚwnÚ N)r   Úsplit)Ú.0r    s   & r   Ú	<genexpr>Ú1VerbnetCorpusReader.wordnetids.<locals>.<genexpr>a   s.   é € ð á"C˜ð —J‘J˜t RÓ(×.Ñ.×0Ð0Û"Cùs   ‚-/r   )r   r   r   r   r   r   Úsumr   )r   r   s   &&r   Ú
wordnetidsÚVerbnetCorpusReader.wordnetidsU   si   € ð
 Š?Ü˜$×0Ñ0×5Ñ5Ó7Ó8Ð8ô ˜'¤3×'Ò'ØŸ,™, wÓ/�Üñà")§/¡/Ð2BÔ"Cóð óð r   c                ó¸  € Ve7   V P                   P                  4        UUu. uF  w  rVWc8X  g   K  VNK  	  upp# Ve   V P                  V,          # Ve   V P                  V,          # VeB   V P	                  V4      pVP                  R4       Uu. uF  pVP                  R4      NK  	  up# \        V P                   P                  4       4      # u uppi u upi )a?  
Return a list of the VerbNet class identifiers.  If a file
identifier is specified, then return only the VerbNet class
identifiers for classes (and subclasses) defined by that file.
If a lemma is specified, then return only VerbNet class
identifiers for classes that contain that lemma as a member.
If a wordnetid is specified, then return only identifiers for
classes that contain that wordnetid as a member.  If a classid
is specified, then return only identifiers for subclasses of
the specified VerbNet class.
If nothing is specified, return all classids within VerbNet
úSUBCLASSES/VNSUBCLASSÚID)	r   Úitemsr
   r   r   r   r   r   r   )	r   ÚlemmaÚ	wordnetidÚfileidÚclassidÚcÚfÚxmltreeÚsubclasss	   &&&&&    r   ÚclassidsÚVerbnetCorpusReader.classidsh   sÖ   € ð ÒØ$(×$9Ñ$9×$?Ñ$?Ô$AÔQÑ$A™&˜1ÀQÁ[—A�AÑ$AÒQÐQØÒØ×'Ñ'¨Õ.Ð.ØÒ"Ø×)Ñ)¨)Õ4Ð4ØÒ Ø—l‘l 7Ó+ˆGð !(§¡Ð0GÔ Hóá H�Hð —‘˜TÖ"Ù Hñð ô
 ˜$×/Ñ/×4Ñ4Ó6Ó7Ð7ùó Rùòs   ¢
C±CÂCc                óœ  € WP                   9   d   V P                  V4      # V P                  V4      pW P                  9   d~   V P                  V P                  V4      ,          pV P                  V4      pW$P	                  R4      8X  d   V# VP                  R4       F  pW%P	                  R4      8X  g   K  Vu # 	  Q h\        RV 24      h)aw  Returns VerbNet class ElementTree

Return an ElementTree containing the xml for the specified
VerbNet class.

:param fileid_or_classid: An identifier specifying which class
    should be returned.  Can be a file identifier (such as
    ``'put-9.1.xml'``), or a VerbNet class identifier (such as
    ``'put-9.1'``) or a short VerbNet class identifier (such as
    ``'9.1'``).
r0   z.//VNSUBCLASSzUnknown identifier )Ú_fileidsÚxmlÚlongidr   r   r   Ú
ValueError)r   Úfileid_or_classidr5   r4   Útreer9   s   &&    r   r   ÚVerbnetCorpusReader.vnclass„   sº   € ð §¡Ô-Ø—8‘8Ð-Ó.Ð.ð —+‘+Ð/Ó0ˆØ×+Ñ+Ô+Ø×*Ñ*¨4¯;©;°wÓ+?Õ@ˆFØ—8‘8˜FÓ#ˆDØŸ(™( 4›.Ô(Ø�à $§¡¨_Ö =�HØ§,¡,¨tÓ"4Ö4Ø'šñ !>ð !˜5ô Ð2Ð3DÐ2EÐFÓGÐGr   c                ó  € Vf   V P                   # \        V\        4      '       d$   V P                  V P	                  V4      ,          .# V Uu. uF%  pV P                  V P	                  V4      ,          NK'  	  up# u upi )zœ
Return a list of fileids that make up this corpus.  If
``vnclass_ids`` is specified, then return the fileids that make
up the specified VerbNet class(es).
)r=   r   r   r   r?   )r   Úvnclass_idsÚ
vnclass_ids   && r   r   ÚVerbnetCorpusReader.fileids¥   s|   € ð ÒØ—=‘=Ð Ü˜¤S×)Ò)Ø×)Ñ)¨$¯+©+°kÓ*BÕCÐDÐDñ #.óá"-�Jð ×%Ñ% d§k¡k°*Ó&=×>Ð>Ù"-ñð ùò s   Á+A<c                ó6  € \        V\        4      '       d   V P                  V4      p. pVP                  R4      pV FX  pVP	                  RV P                  V4      RV P                  V4      RV P                  V4      RV P                  V4      /4       KZ  	  V# )a(  Given a VerbNet class, this method returns VerbNet frames

The members returned are:
1) Example
2) Description
3) Syntax
4) Semantics

:param vnclass: A VerbNet class identifier; or an ElementTree
    containing the xml contents of a VerbNet class.
:return: frames - a list of frame dictionaries
zFRAMES/FRAMEÚexampleÚdescriptionÚsyntaxÚ	semantics)	r   r   r   r   ÚappendÚ_get_example_within_frameÚ_get_description_within_frameÚ _get_syntactic_list_within_frameÚ_get_semantics_within_frame)r   r   ÚframesÚvnframesÚvnframes   &&   r   rR   ÚVerbnetCorpusReader.framesµ   s”   € ô �gœs×#Ò#Ø—l‘l 7Ó+ˆGØˆØ—?‘? >Ó2ˆÛˆGØ�M‰Mà˜t×=Ñ=¸gÓFØ! 4×#EÑ#EÀgÓ#NØ˜d×CÑCÀGÓLØ ×!AÑ!AÀ'Ó!Jð	öñ  ð ˆr   c                óº   € \        V\        4      '       d   V P                  V4      pVP                  R4       Uu. uF  q"P	                  R4      NK  	  ppV# u upi )a  Returns subclass ids, if any exist

Given a VerbNet class, this method returns subclass ids (if they exist)
in a list of strings.

:param vnclass: A VerbNet class identifier; or an ElementTree
    containing the xml contents of a VerbNet class.
:return: list of subclasses
r/   r0   )r   r   r   r   r   )r   r   r9   Ú
subclassess   &&  r   rW   ÚVerbnetCorpusReader.subclassesÑ   s\   € ô �gœs×#Ò#Ø—l‘l 7Ó+ˆGð 07¯©Ð?VÔ/Wó
Ù/W 8�L‰L˜ÖÑ/Wð 	ð 
ð Ðùò
s   »Ac                ó\  € \        V\        4      '       d   V P                  V4      p. pVP                  R4       Fh  pTP	                  RVP                  R4      RVP                  R4       Uu. uF'  pRVP                  R4      RVP                  R4      /NK)  	  up/4       Kj  	  V# u upi )a*  Returns thematic roles participating in a VerbNet class

Members returned as part of roles are-
1) Type
2) Modifiers

:param vnclass: A VerbNet class identifier; or an ElementTree
    containing the xml contents of a VerbNet class.
:return: themroles: A list of thematic roles in the VerbNet class
zTHEMROLES/THEMROLEÚtypeÚ	modifiersúSELRESTRS/SELRESTRÚvalueÚValue)r   r   r   r   rM   r   )r   r   Ú	themrolesÚtroleÚrestrs   &&   r   r_   ÚVerbnetCorpusReader.themrolesã   s©   € ô �gœs×#Ò#Ø—l‘l 7Ó+ˆGàˆ	Ø—_‘_Ð%9Ö:ˆEØ×Ñà˜EŸI™I fÓ-Øà%*§]¡]Ð3GÔ%Hó"á%H˜Eð ! %§)¡)¨GÓ"4°f¸e¿i¹iÈÓ>OÓPÙ%Hñ"ðöñ ;ð Ðùò"s   Á.-B)c                ón   € V P                    F$  pV P                  V P                  V4      V4       K&  	  R# )a  
Initialize the indexes ``_lemma_to_class``,
``_wordnet_to_class``, and ``_class_to_fileid`` by scanning
through the corpus fileids.  This is fast if ElementTree
uses the C implementation (<0.1 secs), but quite slow (>10 secs)
if only the python implementation is available.
N)r=   Ú_index_helperr>   )r   r4   s   & r   Ú_indexÚVerbnetCorpusReader._index  s+   € ð —m”mˆFØ×Ñ˜tŸx™x¨Ó/°Ö8ó $r   c                óô  € VP                  R4      pW P                  V&   W0P                  V P                  V4      &   VP	                  R4       F}  pV P
                  VP                  R4      ,          P                  V4       VP                  RR4      P                  4        F%  pV P                  V,          P                  V4       K'  	  K  	  VP	                  R4       F  pV P                  Wb4       K  	  R# )zHelper for ``_index()``r0   r   r   r%   r&   r/   N)
r   r   r   Úshortidr   r
   rM   r'   r   rd   )r   r8   r4   r   r    r%   r9   s   &&&    r   rd   Ú!VerbnetCorpusReader._index_helper  sÇ   € à—+‘+˜dÓ#ˆØ)/×Ñ˜gÑ&Ø9@×Ñ §¡¨WÓ 5Ñ6Ø—o‘oÐ&6Ö7ˆFØ× Ñ  §¡¨FÓ!3Õ4×;Ñ;¸GÔDØ—j‘j  rÓ*×0Ñ0Ö2�Ø×&Ñ& rÕ*×1Ñ1°'Ö:ó 3ñ 8ð  Ÿ™Ð(?Ö@ˆHØ×Ñ˜xÖ0ó Ar   c           	     ó  € V P                    EFY  pVRR pWP                  V&   W P                  V P                  V4      &   V P	                  V4      ;_uu_ 4       pV P
                  P                  VP                  4       4       FÖ  pVP                  4       pV^ ,          el   V P                  V^ ,          ,          P                  V4       V^,          P                  4        F%  pV P                  V,          P                  V4       K'  	  K‰  V^,          e>   WP                  V^,          &   V^,          pW P                  V P                  V4      &   KÑ  Q R4       h	  RRR4       EK\  	  R#   + '       g   i     EKr  ; i)a„  
Initialize the indexes ``_lemma_to_class``,
``_wordnet_to_class``, and ``_class_to_fileid`` by scanning
through the corpus fileids.  This doesn't do proper xml parsing,
but is good enough to find everything in the standard VerbNet
corpus -- and it runs about 30 times faster than xml parsing
(with the python ElementTree; only 2-3 times faster
if ElementTree uses the C implementation).
Nzunexpected match conditionéüÿÿÿ)r=   r   r   rh   ÚopenÚ	_INDEX_REÚfinditerÚreadÚgroupsr
   rM   r'   r   )r   r4   r   ÚfpÚmrp   r%   s   &      r   r   Ú VerbnetCorpusReader._quick_index  s-  € ð —m•mˆFØ˜S˜b�kˆGØ-3×!Ñ! 'Ñ*Ø=D×#Ñ# D§L¡L°Ó$9Ñ:Ø—‘˜6×"Ô" bØŸ™×0Ñ0°·±³Ö;�AØŸX™X›Z�FØ˜a•yÒ,Ø×,Ñ,¨V°A­YÕ7×>Ñ>¸wÔGØ"(¨¥)§/¡/Ö"3˜BØ ×2Ñ2°2Õ6×=Ñ=¸gÖFó #4à �Ò.Ø;A×-Ñ-¨f°Q­iÑ8Ø"(¨¥)˜ØIP×/Ñ/°·±¸WÓ0EÓFàBÐ&BÓB˜uñ <÷ #Ò"ó	 $÷ #×"Ñ"ús   ÁDE-Å-E?c                ó"  € V P                   P                  V4      '       d   V# V P                  P                  V4      '       g   \        RV,          4      h V P                  V,          #   \
         d   p\        RT,          4      ThRp?ii ; i)z¼Returns longid of a VerbNet class

Given a short VerbNet class identifier (eg '37.10'), map it
to a long id (eg 'confess-37.10').  If ``shortid`` is already a
long id, then return it as-isúvnclass identifier %r not foundN)Ú
_LONGID_REÚmatchÚ_SHORTID_REr@   r   ÚKeyError)r   rh   Úes   && r   r?   ÚVerbnetCorpusReader.longid;  s‚   € ð �?‰?× Ñ  ×)Ò)ØˆNØ×!Ñ!×'Ñ'¨×0Ò0ÜÐ>ÀÕHÓIÐIð	QØ×*Ñ*¨7Õ3Ð3øÜô 	QÜÐ>ÀÕHÓIÈqÐPûð	Qús   ÁA+ Á+BÁ6B	Â	Bc                óÔ   € V P                   P                  V4      '       d   V# V P                  P                  V4      pV'       d   VP                  ^4      # \	        RV,          4      h)z¾Returns shortid of a VerbNet class

Given a long VerbNet class identifier (eg 'confess-37.10'),
map it to a short id (eg '37.10').  If ``longid`` is already a
short id, then return it as-is.ru   )rx   rw   rv   Úgroupr@   )r   r?   rr   s   && r   rh   ÚVerbnetCorpusReader.shortidJ  sV   € ð ×Ñ×!Ñ! &×)Ò)ØˆMØ�O‰O×!Ñ! &Ó)ˆßØ—7‘7˜1“:ÐäÐ>ÀÕGÓHÐHr   c                ó8  € . pVP                  R4       F}  pVP                  R4       Uu. uF'  pRVP                  R4      RVP                  R4      /NK)  	  ppVP                  RVP                  R4      RVRVP                  R4      R	8H  /4       K  	  V# u upi )
a.  Returns semantics within a single frame

A utility function to retrieve semantics within a frame in VerbNet
Members of the semantics dictionary:
1) Predicate value
2) Arguments

:param vnframe: An ElementTree containing the xml contents of
    a VerbNet frame.
:return: semantics: semantics dictionary
zSEMANTICS/PREDzARGS/ARGrZ   r]   Úpredicate_valueÚ	argumentsÚnegatedÚboolÚ!)r   r   rM   )r   rT   Úsemantics_within_single_frameÚpredÚargr�   s   &&    r   rQ   Ú/VerbnetCorpusReader._get_semantics_within_frame\  s«   € ð )+Ð%Ø—O‘OÐ$4Ö5ˆDð  Ÿ<™<¨
Ô3óá3�Cð ˜Ÿ™ ›¨'°3·7±7¸7Ó3CÓDÙ3ð ð ð *×0Ñ0à% t§x¡x°Ó'8Ø Ø˜tŸx™x¨Ó/°3Ñ6ðöñ 6ð -Ð,ùòs   ª-Bc                óP   € VP                  R4      pVe   VP                  pV# RpV# )zÿReturns example within a frame

A utility function to retrieve an example within a frame in VerbNet.

:param vnframe: An ElementTree containing the xml contents of
    a VerbNet frame.
:return: example_text: The example sentence for this particular frame
zEXAMPLES/EXAMPLEr&   )ÚfindÚtext)r   rT   Úexample_elementÚexample_texts   &&  r   rN   Ú-VerbnetCorpusReader._get_example_within_framew  s9   € ð "Ÿ,™,Ð'9Ó:ˆØÒ&Ø*×/Ñ/ˆLð Ðð ˆLØÐr   c                ór   € VP                  R4      pRVP                  R,          RVP                  RR4      /# )a2  Returns member description within frame

A utility function to retrieve a description of participating members
within a frame in VerbNet.

:param vnframe: An ElementTree containing the xml contents of
    a VerbNet frame.
:return: description: a description dictionary with members - primary and secondary
ÚDESCRIPTIONÚprimaryÚ	secondaryr&   )rŠ   Úattribr   )r   rT   Údescription_elements   && r   rO   Ú1VerbnetCorpusReader._get_description_within_frame‡  sA   € ð &Ÿl™l¨=Ó9ÐàÐ*×1Ñ1°)Õ<ØÐ,×0Ñ0°¸bÓAð
ð 	
r   c           
     ó
  € . pVP                  R4       Fá  pVP                  p\        4       pRVP                  9   d   VP	                  R4      MRVR&   VP                  R4       Uu. uF'  pRVP	                  R4      RVP	                  R4      /NK)  	  upVR&   VP                  R4       Uu. uF'  pRVP	                  R4      RVP	                  R4      /NK)  	  upVR	&   VP                  R
VRV/4       Kã  	  V# u upi u upi )a  Returns semantics within a frame

A utility function to retrieve semantics within a frame in VerbNet.
Members of the syntactic dictionary:
1) POS Tag
2) Modifiers

:param vnframe: An ElementTree containing the xml contents of
    a VerbNet frame.
:return: syntax_within_single_frame
ÚSYNTAXr]   r&   r\   r^   rZ   Ú	selrestrszSYNRESTRS/SYNRESTRÚ	synrestrsÚpos_tagr[   )rŠ   ÚtagÚdictr“   r   r   rM   )r   rT   Úsyntax_within_single_frameÚeltrš   r[   ra   s   &&     r   rP   Ú4VerbnetCorpusReader._get_syntactic_list_within_frame—  s  € ð &(Ð"Ø—<‘< Ö)ˆCØ—g‘gˆGÜ›ˆIØ5<ÀÇ
Á
Ô5J §¡¨Ô!1ÐPRˆI�gÑð !Ÿ[™[Ð)=Ô>ó&á>�Eð ˜%Ÿ)™) GÓ,¨f°e·i±iÀÓ6GÓHÙ>ñ&ˆI�kÑ"ð !Ÿ[™[Ð)=Ô>ó&á>�Eð ˜%Ÿ)™) GÓ,¨f°e·i±iÀÓ6GÓHÙ>ñ&ˆI�kÑ"ð '×-Ñ-Ø˜G [°)Ð<öñ *ð *Ð)ùò&ùò&s   Á'-C;Â--D c                óš  € \        V\        4      '       d   V P                  V4      pVP                  R4      R,           pW P	                  VRR7      R,           ,          pW P                  VRR7      R,           ,          pVR,          pW P                  VRR7      R,           ,          pVR,          pW P                  VRR7      ,          pV# )zýReturns pretty printed version of a VerbNet class

Return a string containing a pretty-printed representation of
the given VerbNet class.

:param vnclass: A VerbNet class identifier; or an ElementTree
    containing the xml contents of a VerbNet class.
r0   Ú
ú  )Úindentz  Thematic roles:
ú    z
  Frames:
)r   r   r   r   Úpprint_subclassesÚpprint_membersÚpprint_themrolesÚpprint_frames)r   r   Úss   && r   ÚpprintÚVerbnetCorpusReader.pprint¹  s»   € ô �gœs×#Ò#Ø—l‘l 7Ó+ˆGà�K‰K˜Ó Õ$ˆØ	×#Ñ# G°DÐ#Ó9¸DÕ@Õ@ˆØ	× Ñ  °Ð Ó6¸Õ=Õ=ˆØ	Ð"Õ"ˆØ	×"Ñ" 7°6Ð"Ó:¸TÕAÕAˆØ	ˆ]ÕˆØ	×Ñ °ÐÓ7Õ7ˆØˆr   c                óø   € \        V\        4      '       d   V P                  V4      pV P                  V4      pV'       g   R.pRRP	                  V4      ,           p\
        P                  ! V^FW"R,           R7      # )a  Returns pretty printed version of subclasses of VerbNet class

Return a string containing a pretty-printed representation of
the given VerbNet class's subclasses.

:param vnclass: A VerbNet class identifier; or an ElementTree
    containing the xml contents of a VerbNet class.
ú(none)zSubclasses: Ú r¢   ©Úinitial_indentÚsubsequent_indent)r   r   r   rW   ÚjoinÚtextwrapÚfill)r   r   r£   rW   r©   s   &&&  r   r¥   Ú%VerbnetCorpusReader.pprint_subclassesÎ  sf   € ô �gœs×#Ò#Ø—l‘l 7Ó+ˆGà—_‘_ WÓ-ˆ
ßØ"˜ˆJØ˜SŸX™X jÓ1Õ1ˆÜ�}Š}Øˆr &ÀT½Mô
ð 	
r   c                óø   € \        V\        4      '       d   V P                  V4      pV P                  V4      pV'       g   R.pRRP	                  V4      ,           p\
        P                  ! V^FW"R,           R7      # )a  Returns pretty printed version of members in a VerbNet class

Return a string containing a pretty-printed representation of
the given VerbNet class's member verbs.

:param vnclass: A VerbNet class identifier; or an ElementTree
    containing the xml contents of a VerbNet class.
r­   z	Members: r®   r¢   r¯   )r   r   r   r!   r²   r³   r´   )r   r   r£   Úmembersr©   s   &&&  r   r¦   Ú"VerbnetCorpusReader.pprint_membersâ  sf   € ô �gœs×#Ò#Ø—l‘l 7Ó+ˆGà—+‘+˜gÓ&ˆßØ�jˆGØ˜#Ÿ(™( 7Ó+Õ+ˆÜ�}Š}Øˆr &ÀT½Mô
ð 	
r   c                óÈ  € \        V\        4      '       d   V P                  V4      p. pV P                  V4       F�  pVR,           VP	                  R4      ,           pVR,           Uu. uF  pVR,          VR,          ,           NK  	  ppV'       d(   VRP                  RP                  V4      4      ,          pVP                  V4       K‘  	  RP                  V4      # u upi )a   Returns pretty printed version of thematic roles in a VerbNet class

Return a string containing a pretty-printed representation of
the given VerbNet class's thematic roles.

:param vnclass: A VerbNet class identifier; or an ElementTree
    containing the xml contents of a VerbNet class.
ú* rZ   r[   r]   ú[{}]r®   r¡   )r   r   r   r_   r   Úformatr²   rM   )r   r   r£   ÚpiecesÚthemroleÚpieceÚmodifierr[   s   &&&     r   r§   Ú$VerbnetCorpusReader.pprint_themrolesö  sÊ   € ô �gœs×#Ò#Ø—l‘l 7Ó+ˆGàˆØŸ™ wÖ/ˆHØ˜T•M H§L¡L°Ó$8Õ8ˆEð !)¨Ö 5óá 5�Hð ˜Õ! H¨VÕ$4×4Ð4Ù 5ð ð ÷ Ø˜Ÿ™ s§x¡x°	Ó':Ó;Õ;�Ø�M‰M˜%Ö ñ 0ð �y‰y˜Ó Ð ùòs   Á( Cc                óæ   € \        V\        4      '       d   V P                  V4      p. pV P                  V4       F#  pVP	                  V P                  WB4      4       K%  	  RP                  V4      # )a  Returns pretty version of all frames in a VerbNet class

Return a string containing a pretty-printed representation of
the list of frames within the VerbNet class.

:param vnclass: A VerbNet class identifier; or an ElementTree
    containing the xml contents of a VerbNet class.
r¡   )r   r   r   rR   rM   Ú_pprint_single_framer²   )r   r   r£   r½   rT   s   &&&  r   r¨   Ú!VerbnetCorpusReader.pprint_frames  s]   € ô �gœs×#Ò#Ø—l‘l 7Ó+ˆGØˆØ—{‘{ 7Ö+ˆGØ�M‰M˜$×3Ñ3°GÓDÖEñ ,à�y‰y˜Ó Ð r   c                ó&  € V P                  W4      R,           pW0P                  WR,           4      R,           ,          pVV P                  WR,           4      R,           ,          pW2R,           ,          pW0P                  WR,           4      ,          pV# )zéReturns pretty printed version of a single frame in a VerbNet class

Returns a string containing a pretty-printed representation of
the given frame.

:param vnframe: An ElementTree containing the xml contents of
    a VerbNet frame.
r¡   r®   z
  Syntax: z  Semantics:
r¤   )Ú _pprint_description_within_frameÚ_pprint_example_within_frameÚ_pprint_syntax_within_frameÚ_pprint_semantics_within_frame)r   rT   r£   Úframe_strings   &&& r   rÃ   Ú(VerbnetCorpusReader._pprint_single_frame  s†   € ð ×<Ñ<¸WÓMÐPTÕTˆØ×9Ñ9¸'ÈCÅ<ÓPÐSWÕWÕWˆØØ×,Ñ,¨W¸|Õ6KÓLÈtÕSõ	
ˆð 	Ð!1Õ1Õ1ˆØ×;Ñ;¸GÈfÅ_ÓUÕUˆØÐr   c                óR   € VR,          '       d   VR,           VR,          ,           # R# )zþReturns pretty printed version of example within frame in a VerbNet class

Return a string containing a pretty-printed representation of
the given VerbNet frame example.

:param vnframe: An ElementTree containing the xml contents of
    a Verbnet frame.
rI   z
 Example: N© )r   rT   r£   s   &&&r   rÇ   Ú0VerbnetCorpusReader._pprint_example_within_frame0  s)   € ð �9×ÔØ˜LÕ(¨7°9Õ+=Õ=Ð=ñ r   c                óª   € W!R,          R,          ,           pVR,          R,          '       d'   VRP                  VR,          R,          4      ,          pV# )zöReturns pretty printed version of a VerbNet frame description

Return a string containing a pretty-printed representation of
the given VerbNet frame description.

:param vnframe: An ElementTree containing the xml contents of
    a VerbNet frame.
rJ   r‘   r’   z ({}))r¼   )r   rT   r£   rJ   s   &&& r   rÆ   Ú4VerbnetCorpusReader._pprint_description_within_frame<  sI   € ð  }Õ5°iÕ@Õ@ˆØ�=Õ! +×.Ô.Ø˜7Ÿ>™>¨'°-Õ*@ÀÕ*MÓNÕNˆKØÐr   c           
     ó0  € . pVR,           Fë  pVR,          p. pRVR,          9   d6   VR,          R,          '       d    VP                  VR,          R,          4       TVR,          R,          VR,          R,          ,            Uu. uF#  pRP                  VR,          VR,          4      NK%  	  up,          pV'       d(   VR	P                  R
P                  V4      4      ,          pVP                  V4       Kí  	  VR
P                  V4      ,           # u upi )zþReturns pretty printed version of syntax within a frame in a VerbNet class

Return a string containing a pretty-printed representation of
the given VerbNet frame syntax.

:param vnframe: An ElementTree containing the xml contents of
    a VerbNet frame.
rK   rš   r]   r[   r˜   r™   z{}{}rZ   r»   r®   )rM   r¼   r²   )r   rT   r£   r½   Úelementr¿   Úmodifier_listra   s   &&&     r   rÈ   Ú/VerbnetCorpusReader._pprint_syntax_within_frameJ  s  € ð ˆØ˜x×(Ð(ˆGØ˜IÕ&ˆEØˆMØ˜' +Õ.Ô.°7¸;Õ3GÈ×3PÔ3PØ×$Ñ$ W¨[Õ%9¸'Õ%BÔCØð ˜KÕ(¨Õ5Ø˜kÕ*¨;Õ7ö8óñ8ð ð —‘˜e G�n¨e°F­mÖ<ñ8ñõ ˆM÷ Ø˜Ÿ™ s§x¡x°Ó'>Ó?Õ?�Ø�M‰M˜%Ö ñ )ð  ˜Ÿ™ Ó(Õ(Ð(ùòs   Â)Dc           	     ó$  a€ . pVR,           Fa  pVR,           Uu. uF  qUR,          NK  	  ppTP                  VR,          '       d   RMR VR,           RR	P                  V4       R
24       Kc  	  RP                  V3R lV 4       4      # u upi )a  Returns a pretty printed version of semantics within frame in a VerbNet class

Return a string containing a pretty-printed representation of
the given VerbNet frame semantics.

:param vnframe: An ElementTree containing the xml contents of
    a VerbNet frame.
rL   r�   r]   r‚   ô   Â¬r&   r€   Ú(z, Ú)r¡   c              3   ó2   <"  € T F  pS R V 2x € K  	  R# 5i)rº   NrÍ   )r(   r¿   r£   s   & €r   r)   ÚEVerbnetCorpusReader._pprint_semantics_within_frame.<locals>.<genexpr>u  s   øé € ÐB¹6°%˜F˜8 2 e WÕ-»6ùs   ƒ)rM   r²   )r   rT   r£   r½   Ú	predicateÚargumentr�   s   &&f    r   rÉ   Ú2VerbnetCorpusReader._pprint_semantics_within_framef  sž   ø€ ð ˆØ  ×-Ð-ˆIØ;DÀ[Ö;QÓRÑ;Q¨x '×*Ð*Ñ;QˆIÐRØ�M‰MØ$ Y×/Ô/‘4°RÐ8¸ÐCTÕ9UÐ8VÐVWÐX\×XaÑXaÐbkÓXlÐWmÐmnÐoöñ .ð
 �y‰yÔB¹6ÓBÓBÐBùò	 Ss   ›B)r   r
   r   r   )Fr   )NNNN)r&   )(Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   ÚreÚcompilerv   rx   rm   r!   r,   r:   r   r   rR   rW   r_   re   rd   r   r?   rh   rQ   rN   rO   rP   rª   r¥   r¦   r§   r¨   rÃ   rÇ   rÆ   rÈ   rÉ   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r   r   r      sà   ø‡ € ñôð. —’Ð6Ó7€JØBà—*’*˜]Ó+€KØ2à—
’
ØWó€Ið!ôXôô&8ò8HôBò ò8ò$ò>	9ò
1òCòDQòIò$-ò6ò 
ò *òDô*
ô(
ô(!ô0!ô ô$
>ôô)÷8Cò Cr   r   )râ   rã   r³   Úcollectionsr   Únltk.corpus.reader.xmldocsr   r   rÍ   r   r   Ú<module>rê      s(   ðñó 
Û Ý #å 6ô_	C˜/ö _	Cr   