Files
INTUIA/Programa final/spacy/lang/ca/__pycache__/lemmatizer.cpython-312.pyc
T

26 lines
3.7 KiB
Plaintext
Raw Normal View History

2026-03-15 13:27:50 +00:00
Ë
=û gl ãóBddlmZmZddlmZddlmZGdde«Zy)é)ÚListÚTupleé)Ú
Lemmatizer)ÚTokencóbeZdZdZededeeeeeffˆfd «Zde deefdZ
ˆxZ S)ÚCatalanLemmatizerar
Copied from French Lemmatizer
Catalan language lemmatizer applies the default rule based lemmatization
procedure with some modifications for better Catalan language support.
The parts of speech 'ADV', 'PRON', 'DET', 'ADP' and 'AUX' are added to use
the rule-based lemmatization. As a last resort, the lemmatizer checks in
the lookup table.
ÚmodeÚreturncó<|dk(rgd¢}|gfSt||«S)rule)Ú lemma_lookupÚ lemma_rulesÚ lemma_excÚ lemma_index)ÚsuperÚget_lookups_config)Úclsr
ÚrequiredÚ __class__s €úYC:\Users\garci\AppData\Roaming\Python\Python312\site-packages\spacy/lang/ca/lemmatizer.pyrz$CatalanLemmatizer.get_lookups_configs)ø€à 6Š>ÚRˆ˜b -¨dÓ Útokencóæ|j|jf}||jvr|j|S|j}|jj «}|dvr|j «gSd|j vs|dvr|j|«S|j jdi«}|j jdi«}|j jdi«}|j jdi«}|j|i«} |j|i«}
|j|g«} |j «}g} || vr"| j|«| |j|<| S| j|
j|g««g}
| ss| D]n\}}|j|«sŒ|dt|«t|«z
|z}|sŒ8|| vs|j«s| j|«Œ^|
j|«Œp| s| j|
«| s%| j|j||g«d«tt j#| ««} | |j|<| S)N)ÚÚeolÚspacer) ÚnounÚverbÚadjÚadpÚadvÚauxÚcconjÚdetÚpronÚpunctÚsconjrrrr)ÚorthÚposÚcacheÚtextÚpos_ÚlowerÚlookupsÚlookup_lemmatizeÚ get_tableÚgetÚappendÚextendÚendswithÚlenÚisalphaÚlistÚdictÚfromkeys)ÚselfrÚ cache_keyÚstringÚuniv_posÚ index_tableÚ exc_tableÚ rules_tableÚ lookup_tableÚindexÚ
exceptionsÚrulesÚformsÚ oov_formsÚoldÚnewÚforms rÚrule_lemmatizez CatalanLemmatizer.rule_lemmatizes/Ø—Z‘Z §¡Ð+ˆ Ø ˜Ÿ
Ñ —:‘:˜iÑ ˆØ—:‘:ר Ð —L‘L“NÐ
 $§,¡,Ñ
.°(ð C
ñ 3
ð×Ó —l‘l×,¨]¸BÓ Ø—L‘L×*¨;¸Ó;ˆ Ø—l‘l×,¨]¸BÓ Ø—|‘|×-¨n¸bÓ Ø ¨"ÓØ—]] 8¨RÓ