+
    ÖÇÜhø
  ã                   óH   € R t ^ RI5 ^ RI5  ! R R4      t ! R R]4      tR# )að  
Read lines from the Prepositional Phrase Attachment Corpus.

The PP Attachment Corpus contains several files having the format:

sentence_id verb noun1 preposition noun2 attachment

For example:

42960 gives authority to administration V
46742 gives inventors of microchip N

The PP attachment is to the verb phrase (V) or noun phrase (N), i.e.:

(VP gives (NP authority) (PP to administration))
(VP gives (NP inventors (PP of microchip)))

The corpus contains the following files:

training:   training set
devset:     development test set, used for algorithm development.
test:       test set, used to report results
bitstrings: word classes derived from Mutual Information Clustering for the Wall Street Journal.

Ratnaparkhi, Adwait (1994). A Maximum Entropy Model for Prepositional
Phrase Attachment.  Proceedings of the ARPA Human Language Technology
Conference.  [http://www.cis.upenn.edu/~adwait/papers/hlt94.ps]

The PP Attachment Corpus is distributed with NLTK with the permission
of the author.
)Ú*c                   ó,   a € ] tR t^-t o R tR tRtV tR# )ÚPPAttachmentc                óN   € Wn         W n        W0n        W@n        WPn        W`n        R # ©N©ÚsentÚverbÚnoun1ÚprepÚnoun2Ú
attachment)Úselfr   r	   r
   r   r   r   s   &&&&&&&Ú=/usr/lib/python3/dist-packages/nltk/corpus/reader/ppattach.pyÚ__init__ÚPPAttachment.__init__.   s    € ØŒ	ØŒ	ØŒ
ØŒ	ØŒ
Ø$Žó    c                ó°   € R V P                   : RV P                  : RV P                  : RV P                  : RV P                  : RV P
                  : R2# )zPPAttachment(sent=z, verb=z, noun1=z, prep=z, noun2=z, attachment=Ú)r   )r   s   &r   Ú__repr__ÚPPAttachment.__repr__6   s4   � ð �yŒy˜$Ÿ)œ) T§Z¤Z°·´¸D¿J¼JÈÏÌðYð	
r   )r   r
   r   r   r   r	   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__r   r   Ú__static_attributes__Ú__classdictcell__©Ú__classdict__s   @r   r   r   -   s   ø‡ € ò%÷
ð 
r   r   c                   ó<   a € ] tR t^>t o RtR tR tR tR tRt	V t
R# )ÚPPAttachmentCorpusReaderz5
sentence_id verb noun1 preposition noun2 attachment
c                ó–   € \        V P                  VR 4       UUu. uF  w  r#\        W P                  VR7      NK  	  upp4      # u uppi ©T)Úencoding)ÚconcatÚabspathsÚStreamBackedCorpusViewÚ_read_obj_block©r   ÚfileidsÚfileidÚencs   &&  r   ÚattachmentsÚ$PPAttachmentCorpusReader.attachmentsC   sK   € Üð &*§]¡]°7¸DÔ%Aôá%A‘M�Vô ' v×/CÑ/CÈc×RÙ%Aòó
ð 	
ùóó   ›"A
c                ó–   € \        V P                  VR 4       UUu. uF  w  r#\        W P                  VR7      NK  	  upp4      # u uppi r"   )r$   r%   r&   Ú_read_tuple_blockr(   s   &&  r   ÚtuplesÚPPAttachmentCorpusReader.tuplesK   sL   € Üð &*§]¡]°7¸DÔ%Aôá%A‘M�Vô ' v×/EÑ/EÐPS×TÙ%Aòó
ð 	
ùór.   c                ój   € VP                  4       pV'       d   \        VP                  4       4      .# . # r   )ÚreadlineÚtupleÚsplit©r   ÚstreamÚlines   && r   r0   Ú*PPAttachmentCorpusReader._read_tuple_blockS   s*   € Ø�‰Ó ˆßÜ˜$Ÿ*™*›,Ó'Ð(Ð(àˆIr   c                óf   € VP                  4       pV'       d   \        VP                  4       !  .# . # r   )r4   r   r6   r7   s   && r   r'   Ú(PPAttachmentCorpusReader._read_obj_blockZ   s*   € Ø�‰Ó ˆßÜ  $§*¡*£,Ñ/Ð0Ð0àˆIr   © N)r   r   r   r   Ú__doc__r,   r1   r0   r'   r   r   r   s   @r   r    r    >   s#   ø‡ € ñò
ò
ò÷ð r   r    N)r>   Únltk.corpus.reader.apiÚnltk.corpus.reader.utilr   ÚCorpusReaderr    r=   r   r   Ú<module>rB      s)   ðñô@ %Ü %÷
ñ 
ô"!˜|ö !r   