Ë
    çÍ:jN  ã                   ó$   — d dl mZ  G d„ d«      Zy)é    )Údefaultdictc                   ó:   — e Zd ZdZd	d„Zd„ Zd
d„Zdd„Zd„ Zd„ Z	y)Ú
MinimalSeta¬  
    Find contexts where more than one possible target value can
    appear.  E.g. if targets are word-initial letters, and contexts
    are the remainders of words, then we would like to find cases like
    "fat" vs "cat", and "training" vs "draining".  If targets are
    parts-of-speech and contexts are words, then we would like to find
    cases like wind (noun) 'air in rapid motion', vs wind (verb)
    'coil, wrap'.
    Nc                 ó¸   — t        «       | _        t        «       | _        t        t         «      | _        i | _        |r|D ]  \  }}}| j                  |||«       Œ yy)z¯
        Create a new minimal set.

        :param parameters: The (context, target, display) tuples for the item
        :type parameters: list(tuple(str, str, str))
        N)ÚsetÚ_targetsÚ	_contextsr   Ú_seenÚ	_displaysÚadd)ÚselfÚ
parametersÚcontextÚtargetÚdisplays        úi/home/mcse/projects/srt_converter/srt-converter-venv/lib/python3.12/site-packages/nltk/misc/minimalset.pyÚ__init__zMinimalSet.__init__   sW   € ô ›ˆŒÜ›ˆŒÜ ¤Ó%ˆŒ
ØˆŒáØ,6ò 3Ñ(�˜ Ø—‘˜ &¨'Õ2ñ3ð ó    c                 óÎ   — | j                   |   j                  |«       | j                  j                  |«       | j                  j                  |«       || j                  ||f<   y)a€  
        Add a new item to the minimal set, having the specified
        context, target, and display form.

        :param context: The context in which the item of interest appears
        :type context: str
        :param target: The item of interest
        :type target: str
        :param display: The information to be reported for each item
        :type display: str
        N)r
   r   r	   r   r   )r   r   r   r   s       r   r   zMinimalSet.add&   sV   € ð 	�
‰
�7Ñ×Ñ Ô'ð 	�‰×Ñ˜7Ô#Ø�‰×Ñ˜&Ô!ð -4ˆ�‰˜ Ð(Ò)r   c                 óx   — | j                   D �cg c]   }t        | j                  |   «      |k\  sŒ|‘Œ" c}S c c}w )zÆ
        Determine which contexts occurred with enough distinct targets.

        :param minimum: the minimum number of distinct target forms
        :type minimum: int
        :rtype: list
        )r	   Úlenr
   )r   ÚminimumÚcs      r   ÚcontextszMinimalSet.contexts<   s0   € ð  Ÿ>™>ÖK�a¬S°·±¸A±Ó-?À7Ó-J’ÒKÐKùÒKs   � 7°7c                 óH   — ||f| j                   v r| j                   ||f   S |S ©N)r   )r   r   r   Údefaults       r   r   zMinimalSet.displayF   s,   € Ø�VÐ §¡Ñ.Ø—>‘> 7¨FÐ"3Ñ4Ð4àˆNr   c                 óx   — g }| j                   D ](  }| j                  ||«      }|sŒ|j                  |«       Œ* |S r   )r   r   Úappend)r   r   Úresultr   Úxs        r   Údisplay_allzMinimalSet.display_allL   s@   € ØˆØ—m‘mò 	!ˆFØ—‘˜W fÓ-ˆAÚØ—‘˜aÕ ð	!ð ˆr   c                 ó   — | j                   S r   )r   )r   s    r   ÚtargetszMinimalSet.targetsT   s   € Ø�}‰}Ðr   r   )é   )Ú )
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r"   r$   © r   r   r   r      s&   „ ñó3ò 4ó,Lóòór   r   N)Úcollectionsr   r   r+   r   r   ú<module>r-      s   ðõ $÷Jò Jr   