Ë
    çÍ:j  ã                   ó   — d dl mZ dd„Zy)é    )ÚwordnetNc                 óÜ   ‡— t        | «      Š|€t        j                  ||¬«      }|r,|D �cg c]!  }t        |j	                  «       «      |k(  sŒ |‘Œ# }}|syt        |ˆfd„¬«      }|S c c}w )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.
    :param str lang: WordNet language.
    :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('depository_financial_institution.n.01')

    [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
    N)Úlangc                 óp   •— t        ‰j                  | j                  «       j                  «       «      «      S )N)ÚlenÚintersectionÚ
definitionÚsplit)ÚssÚcontexts    €ú]/home/mcse/projects/srt_converter/srt-converter-venv/lib/python3.12/site-packages/nltk/wsd.pyú<lambda>zlesk.<locals>.<lambda>1   s&   ø€ ¤ G×$8Ñ$8¸¿¹»×9NÑ9NÓ9PÓ$QÓ R€ ó    )Úkey)Úsetr   ÚsynsetsÚstrÚposÚmax)Úcontext_sentenceÚambiguous_wordr   r   r   r   Úsenser   s          @r   Úleskr      so   ø€ ô2 Ð"Ó#€GØ€Ü—/‘/ .°tÔ<ˆá
Ø 'Ö@˜"¬3¨r¯v©v«x«=¸CÓ+?’2Ð@ˆÐ@áØäØÓRô€Eð €Lùò As   ¬!A)ÁA))NNÚeng)Únltk.corpusr   r   © r   r   ú<module>r      s   ðõ  ô'r   