You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* modified: spacy_wordnet/wordnet_domains.py
- importing Synset class and added return type hint to __find_synsets(...) method
- pep8 character limit adjustment
* modified: spacy_wordnet/wordnet_domains.py
- added optional pos param to __find_synsets(...) method
* modified: spacy_wordnet/wordnet_domains.py
- argument handling for pos param
* modified: spacy_wordnet/wordnet_domains.py
- swapping all(map(...)) for set(...).difference(...) which gives a slight boost in speed and readability
* modified: spacy_wordnet/wordnet_domains.py
- added try/except to attempt to convert pos arg to list
* modified: spacy_wordnet/wordnet_domains.py
- filtering acceptable_pos using pos values and assigning to token_pos which will be used to determine which tokens to get synsets for
* modified: spacy_wordnet/wordnet_domains.py
- moved call from self.__synsets declaration into .synsets(...) method allowing user to supply pos args
* modified: spacy_wordnet/wordnet_domains.py
- return type hint and docstring for synsets(...) method
* modified: tests/test_wordnet_annotator.py
- added three assertions for pos param in test_english_annotations() method
* modified: spacy_wordnet/wordnet_domains.py
- fixed error type hint in synsets(...) method
* modified: spacy_wordnet/wordnet_domains.py
- fixed type error in __find_lemmas() method by swapping self.__synsets attribute with self.synsets(...) method
- pep8 character limit fix in __find_lemmas() method
* modified: spacy_wordnet/wordnet_domains.py
- defined token_synsets as a separate list and filtered returned synsets in wn.synsets and extending token_synsets in __find_synsets(...) method
* modified: tests/test_wordnet_annotator.py
changed expected_adj_synsets to set() instead of {} (a dict) in test_english_annotations() method
* Update spacy_wordnet/wordnet_domains.py
param type hint spacing/formatting in synsets(...) method
Co-authored-by: Francisco Aranda <[email protected]>
* Update spacy_wordnet/wordnet_domains.py
param type hint spacing/formatting in __find_synsets(...) method
Co-authored-by: Francisco Aranda <[email protected]>
* use token.pos if pos argument is none to mimic previous behavior.
Co-authored-by: Francisco Aranda <[email protected]>
* Update wordnet_domains.py
modified docstring to reflect what happens if pos argument is none
* modified: tests/test_wordnet_annotator.py
- added assert to test that list of pos args will return expected results
* modified: tests/test_wordnet_annotator.py
- added test for when pos argument is none
* Update spacy_wordnet/wordnet_domains.py
Checking if `token.pos` is an acceptable value before appending its lemma to the `word_variants` list. This avoids unexpected results such as when `token.pos` is an `ADVERB`.
Co-authored-by: Francisco Aranda <[email protected]>
* Update wordnet_domains.py
Updated docstring so user knows results are limited to NOUN, VERB, and ADJ even if `pos` is None.
Co-authored-by: Ian Thompson <[email protected]>
Co-authored-by: Francisco Aranda <[email protected]>
0 commit comments