ó
    ´OÂfN  ã                   ó$   • S SK Jr   " S S5      rg)é    )Údefaultdictc                   óH   • \ rS rSrSrSS jrS rSS jrSS jrS r	S	 r
S
rg)Ú
MinimalSeté   aŒ  
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                 óÂ   • [        5       U l        [        5       U l        [        [         5      U l        0 U l        U(       a  U H  u  p#nU R                  X#U5        M     gg)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        Ú6/usr/lib/python3/dist-packages/nltk/misc/minimalset.pyÚ__init__ÚMinimalSet.__init__   sN   € ô ›ˆŒÜ›ˆŒÜ ¤Ó%ˆŒ
ØˆŒæÛ,6Ñ(� Ø—‘˜¨'Ö2ò -7ð ó    c                 óÊ   • U R                   U   R                  U5        U R                  R                  U5        U R                  R                  U5        X0R                  X4'   g)a8  
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   ÚMinimalSet.add&   sR   € ð 	�
‰
�7Ñ×Ñ Ô'ð 	�‰×Ñ˜7Ô#Ø�‰×Ñ˜&Ô!ð -4�‰˜Ð(Ò)r   c                 ó‚   • U R                    Vs/ s H#  n[        U R                  U   5      U:¼  d  M!  UPM%     sn$ s  snf )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   ÚcontextsÚMinimalSet.contexts<   s4   € ð  Ÿ>š>ÓKš>�a¬S°·±¸A±Ó-?À7Ñ-J—™>ÑKÐKùÒKs   � <³<c                 óH   • X4U R                   ;   a  U R                   X4   $ U$ ©N)r   )r   r   r   Údefaults       r   r   ÚMinimalSet.displayF   s(   € ØÐ §¡Ó.Ø—>‘> 7Ð"3Ñ4Ð4àˆNr   c                 ó†   • / nU R                    H.  nU R                  X5      nU(       d  M  UR                  U5        M0     U$ r    )r	   r   Úappend)r   r   Úresultr   Úxs        r   Údisplay_allÚMinimalSet.display_allL   s;   € ØˆØ—m”mˆFØ—‘˜WÓ-ˆAßˆqØ—‘˜aÖ ñ $ð ˆr   c                 ó   • U R                   $ r    )r	   )r   s    r   ÚtargetsÚMinimalSet.targetsT   s   € Ø�}‰}Ðr   )r
   r   r   r	   r    )é   )Ú )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   r   r   r'   r*   Ú__static_attributes__© r   r   r   r      s&   † ñô3ò 4ô,Lôòõr   r   N)Úcollectionsr   r   r4   r   r   Ú<module>r6      s   ðõ $÷Jò Jr   