§
    'ê[f>  ã                   ó”   — d Z d
d„Zedk    r;ddlmZ ddlmZ g d¢Z e ej        d	¦  «        e¦  «          ej	        ¦   «          dS dS )z.
A utility for displaying lexical dispersion.
FúLexical Dispersion Plotc           	      óú  ‡— 	 ddl m} n"# t          $ r}t          d¦  «        |‚d}~ww xY wˆfd„t          t	          |¦  «        ¦  «        D ¦   «         }g g }}t          | ¦  «        D ]^\  }	}
‰r|
                     ¦   «         n|
}
|                     |
¦  «        }|�*|                     |	¦  «         |                     |¦  «         Œ_ |j        ¦   «         \  }}| 	                    ||d¦  «         | 
                    t          t          t          |¦  «        ¦  «        ¦  «        |d¬¦  «         |                     dt          |¦  «        ¦  «         |                     |¦  «         |                     d	¦  «         |S )
a†  
    Generate a lexical dispersion plot.

    :param text: The source text
    :type text: list(str) or iter(str)
    :param words: The target words
    :type words: list of str
    :param ignore_case: flag to set if case should be ignored when searching text
    :type ignore_case: bool
    :return: a matplotlib Axes object that may still be modified before plotting
    :rtype: Axes
    é    NzRThe plot function requires matplotlib to be installed. See https://matplotlib.org/c                 óH   •— i | ]\  }}‰r|                      ¦   «         n||“ŒS © )Úcasefold)Ú.0ÚyÚwordÚignore_cases      €úH/var/www/piapp/venv/lib/python3.11/site-packages/nltk/draw/dispersion.pyú
<dictcomp>z#dispersion_plot.<locals>.<dictcomp>#   s@   ø€ ð ð ð áˆAˆtð 'Ð0ˆ�Š‰Œˆ¨D°!ðð ð ó    Ú|ÚC0)ÚcoloréÿÿÿÿzWord Offset)Úmatplotlib.pyplotÚpyplotÚImportErrorÚ	enumerateÚreversedr   ÚgetÚappendÚsubplotsÚplotÚ
set_yticksÚlistÚrangeÚlenÚset_ylimÚ	set_titleÚ
set_xlabel)ÚtextÚwordsr   ÚtitleÚpltÚeÚword2yÚxsÚysÚxÚtokenr	   Ú_Úaxs     `           r   Údispersion_plotr/      s˜  ø€ ðØ'Ð'Ð'Ð'Ð'Ð'Ð'øÝð ð ð Ýð*ñ
ô 
ð ð	øøøøðøøøðð ð ð å ¥¨%¡¤Ñ1Ô1ðñ ô €Fð �ˆ€BÝ˜d‘O”Oð ð ‰ˆˆ5Ø$/Ð:�—’Ñ Ô Ð °UˆØ�JŠJ�uÑÔˆØˆ=Ø�IŠI�a‰LŒLˆLØ�IŠI�a‰LŒLˆLøàˆCŒL‰NŒN�E€A€rØ‡G‚GˆB��CÑÔÐØ‡M‚M•$•u�S ™ZœZÑ(Ô(Ñ)Ô)¨5¸€MÑ=Ô=Ð=Ø‡K‚K�•C˜‘J”JÑÔÐØ‡L‚L�ÑÔÐØ‡M‚M�-Ñ Ô Ð Ø€Is   ƒ
 Š
)”$¤)Ú__main__r   N)Ú	gutenberg)ÚElinorÚMarianneÚEdwardÚ
Willoughbyzausten-sense.txt)Fr   )
Ú__doc__r/   Ú__name__r   r   r&   Únltk.corpusr1   r$   Úshowr   r   r   ú<module>r:      s˜   ððð ð
(ð (ð (ð (ðV ˆzÒÐØ#Ð#Ð#Ð#Ð#Ð#à%Ð%Ð%Ð%Ð%Ð%à:Ð:Ð:€EØ€O�O�I”OÐ$6Ñ7Ô7¸Ñ?Ô?Ð?Ø€C„H�J„J€J€J€Jð Ðr   