mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-06 05:10:21 +03:00
Remove traces of previous behavior for uninflected POS
This commit is contained in:
parent
3bd532ec5a
commit
d2045fa145
|
@ -60,9 +60,7 @@ class RussianLemmatizer(Lemmatizer):
|
|||
if univ_pos == "PUNCT":
|
||||
return [PUNCT_RULES.get(string, string)]
|
||||
if univ_pos not in ("ADJ", "DET", "NOUN", "NUM", "PRON", "PROPN", "VERB"):
|
||||
# Skip unchangeable pos
|
||||
return self.pymorphy2_lookup_lemmatize(token)
|
||||
return [string.lower()]
|
||||
analyses = self._morph.parse(string)
|
||||
filtered_analyses = []
|
||||
for analysis in analyses:
|
||||
|
|
Loading…
Reference in New Issue
Block a user