§
    'ê[fÆ  ã                   ób   — d Z ddlT ddlT ddlmZmZ  G d„ de¦  «        Z G d„ de¦  «        Z	dS )	zí
Indian Language POS-Tagged Corpus
Collected by A Kumaran, Microsoft Research, India
Distributed with permission

Contents:
  - Bangla: IIT Kharagpur
  - Hindi: Microsoft Research India
  - Marathi: IIT Bombay
  - Telugu: IIIT Hyderabad
é    )Ú*)Úmap_tagÚ	str2tuplec                   ó2   — e Zd ZdZdd„Zdd„Zdd„Zdd„ZdS )	ÚIndianCorpusReaderz@
    List of words, one per line.  Blank lines are ignored.
    Nc                 ó\   — t          d„ |                      |d¦  «        D ¦   «         ¦  «        S )Nc                 ó8   — g | ]\  }}t          ||d d ¦  «        ‘ŒS )F©ÚIndianCorpusView©Ú.0ÚfileidÚencs      úM/var/www/piapp/venv/lib/python3.11/site-packages/nltk/corpus/reader/indian.pyú
<listcomp>z,IndianCorpusReader.words.<locals>.<listcomp>!   s:   € ð ð ð á!�V˜Sõ ! ¨¨e°UÑ;Ô;ðð ð ó    T©ÚconcatÚabspaths©ÚselfÚfileidss     r   ÚwordszIndianCorpusReader.words   ó>   € Ýðð à%)§]¢]°7¸DÑ%AÔ%Aðñ ô ñ
ô 
ð 	
r   c                 ó’   ‡ ‡‡— ‰r‰‰ j         k    rˆ ˆfd„Šnd Št          ˆfd„‰                      |d¦  «        D ¦   «         ¦  «        S )Nc                 ó0   •— t          ‰j        ‰| ¦  «        S ©N©r   Ú_tagset©Útr   Útagsets    €€r   ú<lambda>z1IndianCorpusReader.tagged_words.<locals>.<lambda>)   ó   ø€ ­W°T´\À6È1Ñ-MÔ-M€ r   c           	      ó<   •— g | ]\  }}t          ||d d‰¦  «        ‘ŒS )TFr
   ©r   r   r   Útag_mapping_functions      €r   r   z3IndianCorpusReader.tagged_words.<locals>.<listcomp>-   s>   ø€ ð ð ð á!�V˜Sõ ! ¨¨d°EÐ;OÑPÔPðð ð r   T©r   r   r   ©r   r   r"   r'   s   ` `@r   Útagged_wordszIndianCorpusReader.tagged_words'   óz   øøø€ Øð 	(�f ¤Ò,Ð,Ø#MÐ#MÐ#MÐ#MÐ#MÐ Ð à#'Ð Ýðð ð ð à%)§]¢]°7¸DÑ%AÔ%Aðñ ô ñ
ô 
ð 	
r   c                 ó\   — t          d„ |                      |d¦  «        D ¦   «         ¦  «        S )Nc                 ó8   — g | ]\  }}t          ||d d¦  «        ‘ŒS )FTr
   r   s      r   r   z,IndianCorpusReader.sents.<locals>.<listcomp>5   s:   € ð ð ð á!�V˜Sõ ! ¨¨e°TÑ:Ô:ðð ð r   Tr   r   s     r   ÚsentszIndianCorpusReader.sents3   r   r   c                 ó’   ‡ ‡‡— ‰r‰‰ j         k    rˆ ˆfd„Šnd Št          ˆfd„‰                      |d¦  «        D ¦   «         ¦  «        S )Nc                 ó0   •— t          ‰j        ‰| ¦  «        S r   r   r    s    €€r   r#   z1IndianCorpusReader.tagged_sents.<locals>.<lambda>=   r$   r   c           	      ó<   •— g | ]\  }}t          ||d d ‰¦  «        ‘ŒS )Tr
   r&   s      €r   r   z3IndianCorpusReader.tagged_sents.<locals>.<listcomp>A   s>   ø€ ð ð ð á!�V˜Sõ ! ¨¨d°DÐ:NÑOÔOðð ð r   Tr(   r)   s   ` `@r   Útagged_sentszIndianCorpusReader.tagged_sents;   r+   r   r   )NN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r*   r.   r2   © r   r   r   r      sn   € € € € € ðð ð
ð 
ð 
ð 
ð

ð 

ð 

ð 

ð
ð 
ð 
ð 
ð

ð 

ð 

ð 

ð 

ð 

r   r   c                   ó   — e Zd Z	 dd„Zd„ ZdS )r   Nc                 ój   — || _         || _        || _        t                               | ||¬¦  «         d S )N)Úencoding)Ú_taggedÚ_group_by_sentÚ_tag_mapping_functionÚStreamBackedCorpusViewÚ__init__)r   Úcorpus_filer:   ÚtaggedÚgroup_by_sentr'   s         r   r?   zIndianCorpusView.__init__I   s<   € ð ˆŒØ+ˆÔØ%9ˆÔ"Ý×'Ò'¨¨kÀHÐ'ÑMÔMÐMÐMÐMr   c                 óþ   ‡ — |                      ¦   «         }|                     d¦  «        rg S d„ |                     ¦   «         D ¦   «         }‰ j        rˆ fd„|D ¦   «         }‰ j        sd„ |D ¦   «         }‰ j        r|gS |S )NÚ<c                 ó0   — g | ]}t          |d ¬¦  «        ‘ŒS )Ú_)Úsep)r   )r   Úwords     r   r   z/IndianCorpusView.read_block.<locals>.<listcomp>U   s%   € ÐBÐBÐB¨T•	˜$ CÐ(Ñ(Ô(ÐBÐBÐBr   c                 óD   •— g | ]\  }}|‰                      |¦  «        f‘ŒS r7   )r=   )r   Úwr!   r   s      €r   r   z/IndianCorpusView.read_block.<locals>.<listcomp>W   s0   ø€ ÐJÐJÐJ¹6¸A¸q�Q˜×2Ò2°1Ñ5Ô5Ð6ÐJÐJÐJr   c                 ó   — g | ]\  }}|‘ŒS r7   r7   )r   rJ   r!   s      r   r   z/IndianCorpusView.read_block.<locals>.<listcomp>Y   s   € Ð)Ð)Ð)™&˜1˜a�AÐ)Ð)Ð)r   )ÚreadlineÚ
startswithÚsplitr=   r;   r<   )r   ÚstreamÚlineÚsents   `   r   Ú
read_blockzIndianCorpusView.read_blockQ   sŸ   ø€ Ø�ŠÑ Ô ˆØ�?Š?˜3ÑÔð 	ØˆIØBÐB°T·Z²Z±\´\ÐBÑBÔBˆØÔ%ð 	KØJÐJÐJÐJÀTÐJÑJÔJˆDØŒ|ð 	*Ø)Ð) DÐ)Ñ)Ô)ˆDØÔð 	Ø�6ˆMàˆKr   r   )r3   r4   r5   r?   rR   r7   r   r   r   r   H   s>   € € € € € àQUðNð Nð Nð Nðð ð ð ð r   r   N)
r6   Únltk.corpus.reader.apiÚnltk.corpus.reader.utilÚnltk.tagr   r   ÚCorpusReaderr   r>   r   r7   r   r   ú<module>rW      s¡   ðð
ð 
ð %Ð $Ð $Ð $Ø %Ð %Ð %Ð %Ø 'Ð 'Ð 'Ð 'Ð 'Ð 'Ð 'Ð 'ð+
ð +
ð +
ð +
ð +
˜ñ +
ô +
ð +
ð\ð ð ð ð Ð-ñ ô ð ð ð r   