Fix typo in lemmatizer.py

specfic -> specific
This commit is contained in:
Ikko Eltociear Ashimine 2023-09-25 00:04:20 +09:00 committed by GitHub
parent 8f0d6b0a8c
commit e386f5684d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -163,7 +163,7 @@ class SpanishLemmatizer(Lemmatizer):
for old, new in self.lookups.get_table("lemma_rules").get("det", []): for old, new in self.lookups.get_table("lemma_rules").get("det", []):
if word == old: if word == old:
return [new] return [new]
# If none of the specfic rules apply, search in the common rules for # If none of the specific rules apply, search in the common rules for
# determiners and pronouns that follow a unique pattern for # determiners and pronouns that follow a unique pattern for
# lemmatization. If the word is in the list, return the corresponding # lemmatization. If the word is in the list, return the corresponding
# lemma. # lemma.
@ -291,7 +291,7 @@ class SpanishLemmatizer(Lemmatizer):
for old, new in self.lookups.get_table("lemma_rules").get("pron", []): for old, new in self.lookups.get_table("lemma_rules").get("pron", []):
if word == old: if word == old:
return [new] return [new]
# If none of the specfic rules apply, search in the common rules for # If none of the specific rules apply, search in the common rules for
# determiners and pronouns that follow a unique pattern for # determiners and pronouns that follow a unique pattern for
# lemmatization. If the word is in the list, return the corresponding # lemmatization. If the word is in the list, return the corresponding
# lemma. # lemma.