§
    'ê[f&  ã                   óH   — d Z ddlT ddlT ddlmZ  G d„ de¦  «        Zd„ ZdS )a  
The Carnegie Mellon Pronouncing Dictionary [cmudict.0.6]
ftp://ftp.cs.cmu.edu/project/speech/dict/
Copyright 1998 Carnegie Mellon University

File Format: Each line consists of an uppercased word, a counter
(for alternative pronunciations), and a transcription.  Vowels are
marked for stress (1=primary, 2=secondary, 0=no stress).  E.g.:
NATURAL 1 N AE1 CH ER0 AH0 L

The dictionary contains 127069 entries.  Of these, 119400 words are assigned
a unique pronunciation, 6830 words have two pronunciations, and 839 words have
three or more pronunciations.  Many of these are fast-speech variants.

Phonemes: There are 39 phonemes, as shown below:

Phoneme Example Translation    Phoneme Example Translation
------- ------- -----------    ------- ------- -----------
AA      odd     AA D           AE      at      AE T
AH      hut     HH AH T        AO      ought   AO T
AW      cow     K AW           AY      hide    HH AY D
B       be      B IY           CH      cheese  CH IY Z
D       dee     D IY           DH      thee    DH IY
EH      Ed      EH D           ER      hurt    HH ER T
EY      ate     EY T           F       fee     F IY
G       green   G R IY N       HH      he      HH IY
IH      it      IH T           IY      eat     IY T
JH      gee     JH IY          K       key     K IY
L       lee     L IY           M       me      M IY
N       knee    N IY           NG      ping    P IH NG
OW      oat     OW T           OY      toy     T OY
P       pee     P IY           R       read    R IY D
S       sea     S IY           SH      she     SH IY
T       tea     T IY           TH      theta   TH EY T AH
UH      hood    HH UH D        UW      two     T UW
V       vee     V IY           W       we      W IY
Y       yield   Y IY L D       Z       zee     Z IY
ZH      seizure S IY ZH ER
é    )Ú*)ÚIndexc                   ó    — e Zd Zd„ Zd„ Zd„ ZdS )ÚCMUDictCorpusReaderc                 ó\   — t          d„ |                      dd¦  «        D ¦   «         ¦  «        S )zy
        :return: the cmudict lexicon as a list of entries
            containing (word, transcriptions) tuples.
        c                 óB   — g | ]\  }}t          |t          |¬ ¦  «        ‘ŒS ))Úencoding)ÚStreamBackedCorpusViewÚread_cmudict_block)Ú.0ÚfileidÚencs      úN/var/www/piapp/venv/lib/python3.11/site-packages/nltk/corpus/reader/cmudict.pyú
<listcomp>z/CMUDictCorpusReader.entries.<locals>.<listcomp><   s<   € ð ð ð á�F˜Cõ ' vÕ/AÈCÐPÑPÔPðð ð ó    NT)ÚconcatÚabspaths©Úselfs    r   ÚentrieszCMUDictCorpusReader.entries6   s@   € õ
 ðð à#'§=¢=°°tÑ#<Ô#<ðñ ô ñ
ô 
ð 	
r   c                 ó>   — d„ |                       ¦   «         D ¦   «         S )zN
        :return: a list of all words defined in the cmudict lexicon.
        c                 ó<   — g | ]\  }}|                      ¦   «         ‘ŒS © )Úlower)r   ÚwordÚ_s      r   r   z-CMUDictCorpusReader.words.<locals>.<listcomp>F   s$   € Ð=Ð=Ð=¡ $¨�—
’
‘”Ð=Ð=Ð=r   )r   r   s    r   ÚwordszCMUDictCorpusReader.wordsB   s    € ð >Ð=¨d¯lªl©n¬nÐ=Ñ=Ô=Ð=r   c                 ó^   — t          t          |                      ¦   «         ¦  «        ¦  «        S )z˜
        :return: the cmudict lexicon as a dictionary, whose keys are
            lowercase words and whose values are lists of pronunciations.
        )Údictr   r   r   s    r   r   zCMUDictCorpusReader.dictH   s"   € õ
 •E˜$Ÿ,š,™.œ.Ñ)Ô)Ñ*Ô*Ð*r   N)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r   r   r   5   sA   € € € € € ð

ð 

ð 

ð>ð >ð >ð+ð +ð +ð +ð +r   r   c                 ó$  — g }t          |¦  «        dk     rz|                      ¦   «         }|dk    r|S |                     ¦   «         }|                     |d                              ¦   «         |dd …         f¦  «         t          |¦  «        dk     °z|S )Néd   Ú r   é   )ÚlenÚreadlineÚsplitÚappendr   )Ústreamr   ÚlineÚpiecess       r   r   r   P   s‰   € Ø€GÝ
ˆg‰,Œ,˜Ò
Ð
Ø�ŠÑ Ô ˆØ�2Š:ˆ:ØˆNØ—’‘”ˆØ�Š˜˜qœ	ŸšÑ)Ô)¨6°!°"°"¬:Ð6Ñ7Ô7Ð7õ ˆg‰,Œ,˜Ò
Ð
ð €Nr   N)Ú__doc__Únltk.corpus.reader.apiÚnltk.corpus.reader.utilÚ	nltk.utilr   ÚCorpusReaderr   r   r   r   r   ú<module>r3      s   ðð&ð &ðP %Ð $Ð $Ð $Ø %Ð %Ð %Ð %Ø Ð Ð Ð Ð Ð ð+ð +ð +ð +ð +˜,ñ +ô +ð +ð6ð ð ð ð r   