U
    ew                     @   s   d dl mZ G dd dZdS )    )wordnetc                   @   s,   e Zd ZdZd	eeedddZdd ZdS )
WordNetLemmatizera  
    WordNet Lemmatizer

    Lemmatize using WordNet's built-in morphy function.
    Returns the input word unchanged if it cannot be found in WordNet.

        >>> from nltk.stem import WordNetLemmatizer
        >>> wnl = WordNetLemmatizer()
        >>> print(wnl.lemmatize('dogs'))
        dog
        >>> print(wnl.lemmatize('churches'))
        church
        >>> print(wnl.lemmatize('aardwolves'))
        aardwolf
        >>> print(wnl.lemmatize('abaci'))
        abacus
        >>> print(wnl.lemmatize('hardrock'))
        hardrock
    n)wordposreturnc                 C   s    t ||}|rt|tdS |S )a  Lemmatize `word` using WordNet's built-in morphy function.
        Returns the input word unchanged if it cannot be found in WordNet.

        :param word: The input word to lemmatize.
        :type word: str
        :param pos: The Part Of Speech tag. Valid options are `"n"` for nouns,
            `"v"` for verbs, `"a"` for adjectives, `"r"` for adverbs and `"s"`
            for satellite adjectives.
        :param pos: str
        :return: The lemma of `word`, for the given `pos`.
        )key)wnZ_morphyminlen)selfr   r   Zlemmas r   R/var/www/html/assets/scripts/venv/lib/python3.8/site-packages/nltk/stem/wordnet.py	lemmatize!   s    zWordNetLemmatizer.lemmatizec                 C   s   dS )Nz<WordNetLemmatizer>r   )r   r   r   r   __repr__0   s    zWordNetLemmatizer.__repr__N)r   )__name__
__module____qualname____doc__strr   r   r   r   r   r   r      s   r   N)Znltk.corpusr   r	   r   r   r   r   r   <module>	   s   