관리-도구
편집 파일: swedish_stemmer.cpython-311.pyc
� �܋f� � �V � d dl mZ d dlmZ G d� de� � Z G d� de� � ZdS )� )�BaseStemmer)�Amongc �6 � e Zd ZdZg eddd� � � eddd� � � eddd� � � edd d� � � ed dd� � � eddd� � � eddd� � � ed dd� � � eddd� � � eddd� � � eddd� � � eddd� � � eddd� � � eddd� � � eddd� � � eddd� � � eddd� � � eddd� � � eddd� � � eddd� � � eddd� � � eddd � � � edd d� � � ed!d"d� � � ed#d"d� � � ed$d"d� � � ed%d d� � � ed&d'd� � � ed(d'd� � � ed)d d� � � ed*d+d� � � ed,d+d� � � ed-d d� � � ed.dd� � � ed/dd� � � ed0dd� � � ed1dd� � �Z ed2dd� � ed3dd� � ed4dd� � ed5dd� � ed6dd� � ed7dd� � ed8dd� � gZ ed9dd� � ed:dd� � ed;dd� � ed<dd=� � ed>dd � � gZg d?�Zg d@�Z dZ dZdA� ZdB� Z dC� ZdD� ZdE� ZdFS )G�SwedishStemmerz� This class implements the stemming algorithm defined by a snowball script. Generated by Snowball 2.2.0 - https://snowballstem.org/ �a���r �arna� �erna�heterna� �orna�ad�e�ade� �ande�arne�are�aste�en�anden� �aren�heten�ern�ar�er�heter� �or�s�as� �arnas� �ernas�ornas�es�ades� �andes�ens�arens� �hetens�erns�at�andet�het�ast�dd�gd�nn�dt�gt�kt�tt�ig�lig�els�fullt� u löst)� �A � r r r r r r r r r r r r r � r � )�w � � c �� � | j | _ | j }| j dz }|| j k rdS || _ | j | _ || _ | � t j dd� � sdS | � t j dd� � sdS | xj dz c_ | j | _ | j | j k st � � �| j | _ n# t $ r Y nw xY wdS )NrA F�a � r T) �limit�I_p1�cursor�I_x�go_out_groupingr �g_v�go_in_grouping�lab0)�self�v_1�cs �p/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/snowballstemmer/swedish_stemmer.py�__r_mark_regionszSwedishStemmer.__r_mark_regionsN s� � ��J�� ��k���K�!�O���t�z�>�>��5�����;�������#�#�N�$6��C�@�@� ��5��"�"�>�#5�r�3�?�?� ��5����q�����K�� � ��9�t�x�'�'��f�f����D�I�I������T�T������ts �(*C � C �C c � � | j | j k rdS | j }| j | _ | j | _ | � t j � � }|dk r || _ dS | j | _ || _ |dk r| � � � sdS n9| � t j dd� � sdS | � � � sdS dS )NFr r �b �y T)rO rN �limit_backward�ket�find_among_br �a_0�bra� slice_del� in_grouping_b� g_s_ending�rU �v_2� among_vars rX �__r_main_suffixzSwedishStemmer.__r_main_suffixd s� � ��;���"�"��5��!��"�i����;����%�%�n�&8�9�9� ���>�>�"%�D���5��;���!�����>�>��>�>�#�#� ��u� � �%�%�n�&?��S�I�I� ��u��>�>�#�#� ��u��t� c � � | j | j k rdS | j }| j | _ | j | j z }| � t j � � dk r || _ dS | j |z | _ | j | _ | j | j k r || _ dS | xj dz c_ | j | _ | � � � sdS || _ dS )NFr r T) rO rN r] rM r_ r �a_1r^ ra rb )rU rf �v_3s rX �__r_consonant_pairz!SwedishStemmer.__r_consonant_pair| s� � ��;���"�"��5��!��"�i����j�4�;�&�����^�/�0�0�A�5�5�"%�D���5��j�3�&����;����;�$�-�-�-�"%�D���5����q�����;����~�~��� ��5�!����tri c � � | j | j k rdS | j }| j | _ | j | _ | � t j � � }|dk r || _ dS | j | _ |dk r| � � � sdS n5|dk r| � d� � sdS n| � d� � sdS || _ dS )NFr r r u lös�fullT) rO rN r] r^ r_ r �a_2ra rb � slice_fromre s rX �__r_other_suffixzSwedishStemmer.__r_other_suffix� s� � ��;���"�"��5��!��"�i����;����%�%�n�&8�9�9� ���>�>�"%�D���5��;�����>�>��>�>�#�#� ��u� � �!�^�^��?�?�;�/�/� ��u� � �?�?�7�+�+� ��u�!����tri c � � | j }| � � � || _ | j | _ | j | _ | j | j z }| � � � | j |z | _ | j | j z }| � � � | j |z | _ | j | j z }| � � � | j |z | _ | j | _ dS )NT)rO �_SwedishStemmer__r_mark_regionsr] rM �_SwedishStemmer__r_main_suffix�!_SwedishStemmer__r_consonant_pair�_SwedishStemmer__r_other_suffix)rU rV rf rl �v_4s rX �_stemzSwedishStemmer._stem� s� � ��k�����������"�k����j����j�4�;�&���������j�3�&����j�4�;�&�����!�!�!��j�3�&����j�4�;�&���������j�3�&����)����tri N)�__name__� __module__�__qualname__�__doc__r r` rk rp rR rd rP rN rt ru rv rw ry � ri rX r r s� � � � � � �� � &� ��d�B����&� ��g�q�!���&� ��g�q�!���&� ��j�!�Q��� &� ��g�q�!���&� ��e�R���� &� ��d�B����&� ��f�a����&� ��g�q�!���&� ��g�q�!���&� ��f�a����&� ��g�q�!���&� ��e�R����&� ��h��A���&� ��g�r�1���&� ��h��A���!&�"