§
    'ê[f*  ã                   ó6   — d dl Z d dlmZ  G d„ de¦  «        ZdS )é    N)ÚStemmerIc                   ó&   — e Zd ZdZdd„Zd„ Zd„ ZdS )ÚRegexpStemmeraä  
    A stemmer that uses regular expressions to identify morphological
    affixes.  Any substrings that match the regular expressions will
    be removed.

        >>> from nltk.stem import RegexpStemmer
        >>> st = RegexpStemmer('ing$|s$|e$|able$', min=4)
        >>> st.stem('cars')
        'car'
        >>> st.stem('mass')
        'mas'
        >>> st.stem('was')
        'was'
        >>> st.stem('bee')
        'bee'
        >>> st.stem('compute')
        'comput'
        >>> st.stem('advisable')
        'advis'

    :type regexp: str or regexp
    :param regexp: The regular expression that should be used to
        identify morphological affixes.
    :type min: int
    :param min: The minimum length of string to stem
    r   c                 ój   — t          |d¦  «        st          j        |¦  «        }|| _        || _        d S )NÚpattern)ÚhasattrÚreÚcompileÚ_regexpÚ_min)ÚselfÚregexpÚmins      úD/var/www/piapp/venv/lib/python3.11/site-packages/nltk/stem/regexp.pyÚ__init__zRegexpStemmer.__init__*   s5   € å�v˜yÑ)Ô)ð 	(Ý”Z Ñ'Ô'ˆFØˆŒØˆŒ	ˆ	ˆ	ó    c                 ól   — t          |¦  «        | j        k     r|S | j                             d|¦  «        S )NÚ )Úlenr   r   Úsub)r   Úwords     r   ÚstemzRegexpStemmer.stem1   s2   € Ýˆt‰9Œ9�t”yÒ Ð ØˆKà”<×#Ò# B¨Ñ-Ô-Ð-r   c                 ó"   — d| j         j        ›d�S )Nz<RegexpStemmer: Ú>)r   r   )r   s    r   Ú__repr__zRegexpStemmer.__repr__7   s   € Ø; $¤,Ô"6Ð;Ð;Ð;Ð;r   N)r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   © r   r   r   r      sP   € € € € € ðð ð6ð ð ð ð.ð .ð .ð<ð <ð <ð <ð <r   r   )r	   Únltk.stem.apir   r   r    r   r   ú<module>r"      sV   ðð 
€	€	€	à "Ð "Ð "Ð "Ð "Ð "ð*<ð *<ð *<ð *<ð *<�Hñ *<ô *<ð *<ð *<ð *<r   