3

U'íc¦;ã@sìddlmZddlmZGdd„deƒZGdd„deƒZGdd„deƒZGd	d
„d
eƒZGdd„deƒZ	Gd
d„deƒZ
Gdd„deƒZGdd„deƒZGdd„deƒZ
Gdd„deƒZGdd„deƒZGdd„deƒZGdd„deƒZdS)é)ÚBaseStemmer)ÚAmongc1@sÎeZdZdZedd¨dƒedddƒedddƒedd©dƒed	d
dƒedd
dƒeddªdƒed
ddƒedddƒg	Zedd«dƒedd¬dƒedd­dƒedd®dƒedd¯dƒedd°dƒedd±dƒedd²dƒedd³dƒedd´dƒeddµdƒedd¶dƒedd·dƒedd¸dƒedd¹dƒ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ƒgZeddÅdƒed*dÆdƒed+dÇdƒed,ddƒed-ddƒed.dÈdƒed/d0dƒed1ddƒgZed2dÉdƒed3dÊdƒgZed4dËdƒed5ddƒed6ddƒed7dÌdƒed8d
dƒed9dÍdƒed:dÎdƒed;dÏdƒed<d=dƒed>d=dƒed?dÐdƒed@dAdƒedBdAdƒedCdÑdƒeddDdƒedEdDdƒedFdÒdƒedGdHdƒedIdHdƒeddÓdƒeddÔdƒeddÕdƒedJdÖdƒedKdLdƒedMd×dƒedNdOdƒedPdOdƒedQdØdƒedRdSdƒedTdSdƒedUdÙdƒedVdWdƒedXdÚdƒedYdÛdƒedZdÜdƒed[d\dƒed]dÝdƒed^dÞdƒed_d`dƒedadßdƒedbdcdƒedddcdƒededàdƒedfdádƒedgdâdƒed&dhdƒg.Z	edidãdƒedjdädƒedkdådƒedldædƒedd
dƒedmd
dƒedndçdƒedoddƒedpddƒedqddƒedrddƒedsdAdƒedCdèdƒeddtdƒedudDdƒeddtdƒeddtdƒedvdédƒeddêdƒedwdxdƒeddëdƒedydìdƒedzd{dƒed|dídƒed}dîdƒed~dïdƒeddðdƒed€ddƒed‚dñdƒedƒdòdƒedgdódƒed„dWdƒed…dWdƒed†dôdƒed‡dˆdƒed‰dˆdƒg$Z
edŠdõdƒed‹dödƒgZedŒd÷dƒedJdødƒeddùdƒedƒdúd
ƒgZdˆdŽddgZ
dZdZd‘d’„Zd“d”„Zd•d–„Zd—d˜„Zd™dš„Zd›dœ„Zddž„ZdŸd „Zd¡d¢„Zd£d¤„Zd¥d¦„Zd§S)ûÚRussianStemmerz
    This class implements the stemming algorithm defined by a snowball script.
    Generated by Snowball 2.2.0 - https://snowballstem.org/
    uвruивééuывuвшиuившиéuывшиu
вшисьuившисьéuывшисьuееuиеuоеuыеuимиuымиuейuийuойuыйuемuимuомuымuегоuогоuемуuомуuихuыхuеюuоюuуюuююuаяuяяuннuвшuившuывшuщuющéuующuсьuсяuлаuилаuылаuнаuенаuетеuитеuйтеuейтеéuуйтеuлиuилиé
uылиuйé
uуйuлuилéuылuнuенéuлоuилоéuылоuноuеноéuнноuетuуетéuитuытuютuуютé"uятuныuеныé%uтьuитьé'uытьuешьuишьuюé,uаuевuовuеuьеuиuеиuииuамиuямиuиямиéuиейuамuиемéuямuиямéuоuуuахuяхuияхéuыuьuиюuьюuяuияé!uьяuостuостьuейшеuейшéAééècCsÚ|j|_|j|_|j}y¤|jtjddƒs.tƒ‚|jd7_|j|_|jtjddƒsZtƒ‚|jd7_|jtjddƒs~tƒ‚|jd7_|jtjddƒs¢tƒ‚|jd7_|j|_Wntk
rÎYnX||_dS)Ni0iOrT)	ÚlimitÚI_pVÚI_p2ÚcursorZgo_out_groupingrÚg_vÚlab0Zgo_in_grouping)ÚselfÚv_1©r&úJ/tmp/pip-build-gk9425m9/snowballstemmer/snowballstemmer/russian_stemmer.pyZ__r_mark_regions¯s,zRussianStemmer.__r_mark_regionscCs|j|jksdSdS)NFT)r r!)r$r&r&r'Z__r_R2ÆszRussianStemmer.__r_R2cCs¾|j|_|jtjƒ}|dkr dS|j|_|dkr®yZ|j|j}y|jdƒsPtƒ‚t	ƒ‚Wntk
rlYnX|j||_|jdƒsˆdSWnt	k
ržYnX|j
ƒsºdSn|j
ƒsºdSdS)NrFruаuяT)r!ÚketÚfind_among_brÚa_0ÚbrarÚeq_s_bÚlab1r#Ú	slice_del)r$Ú	among_varr%r&r&r'Z__r_perfective_gerundËs0


z$RussianStemmer.__r_perfective_gerundcCs4|j|_|jtjƒdkrdS|j|_|jƒs0dSdS)NrFT)r!r(r)rÚa_1r+r.)r$r&r&r'Z
__r_adjectiveæszRussianStemmer.__r_adjectivecCs|jƒsdS|j|j}yÚ|j|_|jtjƒ}|dkrH|j||_tƒ‚|j|_|dkräyh|j|j}y|j	dƒsxt
ƒ‚tƒ‚Wnt
k
r”YnX|j||_|j	dƒs¾|j||_tƒ‚Wntk
rÔYnX|jƒsðdSn|jƒsðdSWntk
rYnXdS)NFrruаuяT)
Ú_RussianStemmer__r_adjectiverr!r(r)rÚa_2r#r+r,Úlab2r-r.)r$r%r/Úv_2r&r&r'Z__r_adjectivalðs@



zRussianStemmer.__r_adjectivalcCs4|j|_|jtjƒdkrdS|j|_|jƒs0dSdS)NrFT)r!r(r)rÚa_3r+r.)r$r&r&r'Z
__r_reflexiveszRussianStemmer.__r_reflexivecCs¾|j|_|jtjƒ}|dkr dS|j|_|dkr®yZ|j|j}y|jdƒsPtƒ‚t	ƒ‚Wntk
rlYnX|j||_|jdƒsˆdSWnt	k
ržYnX|j
ƒsºdSn|j
ƒsºdSdS)NrFruаuяT)r!r(r)rÚa_4r+rr,r-r#r.)r$r/r%r&r&r'Z__r_verbs0


zRussianStemmer.__r_verbcCs4|j|_|jtjƒdkrdS|j|_|jƒs0dSdS)NrFT)r!r(r)rÚa_5r+r.)r$r&r&r'Z__r_noun7szRussianStemmer.__r_nouncCs@|j|_|jtjƒdkrdS|j|_|jƒs0dS|jƒs<dSdS)NrFT)r!r(r)rÚa_6r+Ú_RussianStemmer__r_R2r.)r$r&r&r'Z__r_derivationalAszRussianStemmer.__r_derivationalcCsª|j|_|jtjƒ}|dkr dS|j|_|dkrv|jƒs<dS|j|_|jdƒsRdS|j|_|jdƒshdS|jƒs¦dSn0|dkrš|jdƒsŒdS|jƒs¦dSn|jƒs¦dSdS)NrFruнrT)r!r(r)rÚa_7r+r.r,)r$r/r&r&r'Z__r_tidy_upMs0


zRussianStemmer.__r_tidy_upcECsz|j}yÔxÎ|j}y¦y|xv|j}y0|j|_|jdƒs6tƒ‚|j|_||_tƒ‚Wntk
r`YnX||_|j|jkrztƒ‚|jd7_qWWntk
r¢YnX|jdƒs²dSw
Wntk
rÊYnX||_Pq
WWnt	k
rîYnX||_|j
ƒ|j|_|j|_|j|jkr dS|j}|j|_|j|j}ydyF|j|j}y|j
ƒs`tƒ‚tƒ‚Wntk
r~YnX|j||_|j|j}y |jƒs¶|j||_tƒ‚Wntk
rÎYnXyœ|j|j}y|jƒsðtƒ‚tƒ‚Wntk
rYnX|j||_y|jƒs.tƒ‚tƒ‚Wntk
rLYnX|j||_|jƒsjtƒ‚Wntk
r‚YnXWntk
rœYnXWntk
r¶YnX|j||_|j|j}	y@|j|_|jdƒsø|j|	|_tƒ‚|j|_|jƒsdSWntk
r&YnX|j|j}
|jƒ|j|
|_|j|j}|jƒ|j||_||_|j|_dS)NuёruеFuиT)r!r+Zeq_sÚlab3r(r3rr-Z
slice_fromr#Ú_RussianStemmer__r_mark_regionsZlimit_backwardrÚ$_RussianStemmer__r_perfective_gerundÚlab6Úlab5Ú_RussianStemmer__r_reflexiveÚlab7Ú_RussianStemmer__r_adjectivalÚlab9Úlab8Ú_RussianStemmer__r_verbÚlab10Ú_RussianStemmer__r_nounÚlab4r,Úlab11r.Ú_RussianStemmer__r_derivationalÚ_RussianStemmer__r_tidy_up)r$r%r4Zv_3Zv_6Zv_7Zv_8Zv_9Zv_10Zv_11Zv_12Zv_13r&r&r'Ú_stemlsÎ
















zRussianStemmer._stemNéÿÿÿÿrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrMrM)Ú__name__Ú
__module__Ú__qualname__Ú__doc__rr*r0r2r5r6r7r8r:r"r rr<r9r=r1rBr@rErGrJrKrLr&r&r&r'rs(





























































































































"

rc@seZdZdS)r#N)rNrOrPr&r&r&r'r#Ësr#c@seZdZdS)r-N)rNrOrPr&r&r&r'r-Îsr-c@seZdZdS)r3N)rNrOrPr&r&r&r'r3Ñsr3c@seZdZdS)r;N)rNrOrPr&r&r&r'r;Ôsr;c@seZdZdS)rHN)rNrOrPr&r&r&r'rH×srHc@seZdZdS)r?N)rNrOrPr&r&r&r'r?Úsr?c@seZdZdS)r>N)rNrOrPr&r&r&r'r>Ýsr>c@seZdZdS)rAN)rNrOrPr&r&r&r'rAàsrAc@seZdZdS)rDN)rNrOrPr&r&r&r'rDãsrDc@seZdZdS)rCN)rNrOrPr&r&r&r'rCæsrCc@seZdZdS)rFN)rNrOrPr&r&r&r'rFésrFc@seZdZdS)rIN)rNrOrPr&r&r&r'rIìsrIN)ZbasestemmerrZamongrrÚ
BaseExceptionr#r-r3r;rHr?r>rArDrCrFrIr&r&r&r'Ú<module>s"G