mirror of https://github.com/explosion/spaCy.git
Fix non-deterministic deduplication in Greek lemmatizer (#8421)
This commit is contained in:
parent
994bed2fe2
commit
02bac8f269
|
@ -57,6 +57,6 @@ class GreekLemmatizer(Lemmatizer):
|
|||
forms.extend(oov_forms)
|
||||
if not forms:
|
||||
forms.append(string)
|
||||
forms = list(set(forms))
|
||||
forms = list(dict.fromkeys(forms))
|
||||
self.cache[cache_key] = forms
|
||||
return forms
|
||||
|
|
Loading…
Reference in New Issue