Skip to content

Commit

Permalink
minor fix for wordnet lemmatization pos param documentation (#3190)
Browse files Browse the repository at this point in the history
  • Loading branch information
sharpblade4 committed Sep 28, 2023
1 parent f529622 commit e2d368e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions AUTHORS.md
Expand Up @@ -297,6 +297,7 @@
- Steven Thomas Smith <https://github.com/essandess>
- Jan Lennartz <https://github.com/Madnex>
- Tim Sockel <https://github.com/TiMauzi>
- Ron Urbach <https://github.com/sharpblade4>

## Others whose work we've taken and included in NLTK, but who didn't directly contribute it:

Expand Down
2 changes: 1 addition & 1 deletion nltk/stem/wordnet.py
Expand Up @@ -39,7 +39,7 @@ def lemmatize(self, word: str, pos: str = "n") -> str:
:param pos: The Part Of Speech tag. Valid options are `"n"` for nouns,
`"v"` for verbs, `"a"` for adjectives, `"r"` for adverbs and `"s"`
for satellite adjectives.
:param pos: str
:type pos: str
:return: The lemma of `word`, for the given `pos`.
"""
lemmas = wn._morphy(word, pos)
Expand Down

0 comments on commit e2d368e

Please sign in to comment.