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/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

 T�c����ddlmZdd�ZdS)�)�wordnetNc����t|���|�tj|��}�r�fd�|D��}|sdSt�fd�|D����\}}|S)a�Return a synset for an ambiguous word in a context.

    :param iter context_sentence: The context sentence where the ambiguous word
         occurs, passed as an iterable of words.
    :param str ambiguous_word: The ambiguous word that requires WSD.
    :param str pos: A specified Part-of-Speech (POS).
    :param iter synsets: Possible synsets of the ambiguous word.
    :return: ``lesk_sense`` The Synset() object with the highest signature overlaps.

    This function is an implementation of the original Lesk algorithm (1986) [1].

    Usage example::

        >>> lesk(['I', 'went', 'to', 'the', 'bank', 'to', 'deposit', 'money', '.'], 'bank', 'n')
        Synset('savings_bank.n.02')

    [1] Lesk, Michael. "Automatic sense disambiguation using machine
    readable dictionaries: how to tell a pine cone from an ice cream
    cone." Proceedings of the 5th Annual International Conference on
    Systems Documentation. ACM, 1986.
    https://dl.acm.org/citation.cfm?id=318728
    Nc�^��g|])}t|������k�'|��*S�)�str�pos)�.0�ssrs  ��*/usr/lib/python3/dist-packages/nltk/wsd.py�
<listcomp>zlesk.<locals>.<listcomp>*s1���@�@�@�"�3�r�v�v�x�x�=�=�C�+?�+?�2�+?�+?�+?�c3��K�|]L}t��|����������|fV��MdS)N)�len�intersection�
definition�split)r	r
�contexts  �r�	<genexpr>zlesk.<locals>.<genexpr>/sc�������EG��W�
!�
!�"�-�-�/�/�"7�"7�"9�"9�
:�
:�	;�	;�R�@������r
)�setr�synsets�max)�context_sentence�ambiguous_wordrr�_�sensers  `   @r�leskr
s�����0�"�#�#�G����/�.�1�1��
�A�@�@�@�@��@�@�@�����t������KR������H�A�u��Lr
)NN)�nltk.corpusrrrr
r�<module>rs7�� ������&�&�&�&�&�&r

Youez - 2016 - github.com/yon3zu
LinuXploit