+
    ÖÇÜh  ã                   ó   € ^ RI Ht RR ltR# )é    )ÚwordnetNc                ó  a€ \        V 4      oVf   \        P                  ! WR7      pV'       d2   V Uu. uF%  p\        VP	                  4       4      V8X  g   K#  VNK'  	  ppV'       g   R# \        VV3R lR7      pV# u upi )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   <€ \        SP                  V P                  4       P                  4       4      4      # )N)ÚlenÚintersectionÚ
definitionÚsplit)ÚssÚcontexts   &€Ú*/usr/lib/python3/dist-packages/nltk/wsd.pyÚ<lambda>Ú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      sp   ø€ ô2 Ð"Ó#€GØ‚Ü—/’/ .Ô<ˆç
Ù 'Ó@¡˜"¬3¨r¯v©v«x«=¸CÑ+?—2�2¡ˆÐ@çÙäØÔRô€Eð €Lùò As   ´ A>ÁA>)NNÚeng)Únltk.corpusr   r   © r   r   Ú<module>r      s   ðõ  ö'r   