403Webshell
Server IP : 54.37.205.81  /  Your IP : 216.73.216.76
Web Server : nginx/1.22.1
System : Linux vps-249481fa 6.1.0-50-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.176-1 (2026-07-02) x86_64
User : debian ( 1000)
PHP Version : 8.2.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/nltk/misc/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/nltk/misc/__pycache__/minimalset.cpython-311.pyc
�

 T�cN��,�ddlmZGd�d��ZdS)�)�defaultdictc�<�eZdZdZdd�Zd�Zdd�Zd
d�Zd	�Zd
�Z	dS)�
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��|_tt��|_i|_|r |D]\}}}|�|||���dSdS)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__zMinimalSet.__init__s{������
������ ��%�%��
�����	3�,6�
3�
3�(��������&�'�2�2�2�2�	3�	3�
3�
3�c���|j|�|��|j�|��|j�|��||j||f<dS)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	rr)r
rrrs    rrzMinimalSet.add&sf��	
�
�7�����'�'�'�	
����7�#�#�#��
���&�!�!�!�-4�����(�)�)�)r�c�.�����fd��jD��S)z�
        Determine which contexts occurred with enough distinct targets.

        :param minimum: the minimum number of distinct target forms
        :type minimum: int
        :rtype: list
        c�P��g|]"}t�j|���k� |��#S�)�lenr
)�.0�c�minimumr
s  ��r�
<listcomp>z'MinimalSet.contexts.<locals>.<listcomp>Ds1���K�K�K�a�S���A��-?�-?�7�-J�-J��-J�-J�-Jr)r	)r
rs``r�contextszMinimalSet.contexts<s&����L�K�K�K�K�4�>�K�K�K�Kr�c�:�||f|jvr|j||fS|S�N)r)r
rr�defaults    rrzMinimalSet.displayFs+���V����.�.��>�7�F�"3�4�4��Nrc�x�g}|jD]/}|�||��}|r|�|���0|Sr")rr�append)r
r�resultr�xs     r�display_allzMinimalSet.display_allLsK�����m�	!�	!�F����W�f�-�-�A��
!��
�
�a� � � ���
rc��|jSr")r)r
s r�targetszMinimalSet.targetsTs
���}�rr")r)r )
�__name__�
__module__�__qualname__�__doc__rrrrr(r*rrrrrs���������3�3�3�3� 4�4�4�,L�L�L�L������������rrN)�collectionsrrrrr�<module>r0sU��$�#�#�#�#�#�J�J�J�J�J�J�J�J�J�Jr

Youez - 2016 - github.com/yon3zu
LinuXploit