Ë
    çÍ:jg  ã                   ó�   — 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                  «        yy)	z.
A utility for displaying lexical dispersion.
c           	      óF  — 	 ddl m} t        t	        |«      «      D ��ci c]  \  }}|r|j                  «       n||“Œ }}}g g }
}	t        | «      D ]O  \  }}|r|j                  «       n|}|j                  |«      }|€Œ.|	j                  |«       |
j                  |«       ŒQ |ddd…   } |j                  «       \  }}|j                  |	|
d«       dt        | «      dz
  c|j                  _        |j                  _        |j                  d¬«       |j                  t!        t#        t        |«      «      «      |d	¬
«       |j%                  dt        |«      «       |j'                  |«       |j)                  d«       |S # t        $ r}t        d«      |‚d}~ww xY wc c}}w )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/éÿÿÿÿú|é   Úx)ÚaxisÚC0)ÚcolorzWord Offset)Úmatplotlib.pyplotÚpyplotÚImportErrorÚ	enumerateÚreversedÚcasefoldÚgetÚappendÚsubplotsÚplotÚlenÚdataLimÚx0Úx1Ú	autoscaleÚ
set_yticksÚlistÚrangeÚset_ylimÚ	set_titleÚ
set_xlabel)ÚtextÚwordsÚignore_caseÚtitleÚpltÚeÚyÚwordÚword2yÚxsÚysr   ÚtokenÚ_Úaxs                  úi/home/mcse/projects/srt_converter/srt-converter-venv/lib/python3.12/site-packages/nltk/draw/dispersion.pyÚdispersion_plotr/      sz  € ðÝ'ô !¤¨%£Ó1÷áˆAˆtñ 'ˆ�‰Œ¨D°!Ñ3ð€Fñ ð �ˆ€BÜ˜d“Oò ‰ˆˆ5Ù$/�—‘Ô °UˆØ�J‰J�uÓˆØ‰=Ø�I‰I�aŒLØ�I‰I�a�Lðð ‘$�B�$‰K€EàˆC�L‰L‹N�E€A€rØ‡G�GˆB��CÔØ#$¤c¨$£i°!¡mÐ €B‡J�J„M�2—:‘:”=Ø‡L�L�c€LÔØ‡M�M”$”uœS ›ZÓ(Ó)¨5¸€MÔ=Ø‡K�K�”C˜“JÔØ‡L�L�ÔØ‡M�M�-Ô Ø€Iøô9 ò Üð*ó
ð ð	ûðüós   ‚F  ŸFÆ 	FÆ	FÆFÚ__main__r   N)Ú	gutenberg)ÚElinorÚMarianneÚEdwardÚ
Willoughbyzausten-sense.txt)FzLexical Dispersion Plot)
Ú__doc__r/   Ú__name__r   r   r$   Únltk.corpusr1   r!   Úshow© ó    r.   ú<module>r<      sK   ðñó
,ð^ ˆzÒÝ#å%â:€EÙ�O�I—O‘OÐ$6Ó7¸Ô?Ø€C‡H�H…Jð r;   