spaCy/spacy/tests/matcher
Adriane Boyd 86c3ec9c2b
Refactor Token morph setting (#6175)
* Refactor Token morph setting

* Remove `Token.morph_`
* Add `Token.set_morph()`
  * `0` resets `token.c.morph` to unset
  * Any other values are passed to `Morphology.add`

* Add token.morph setter to set from MorphAnalysis
2020-10-01 22:21:46 +02:00
..
__init__.py Revert #4334 2019-09-29 17:32:12 +02:00
test_dependency_matcher.py Tidy up tests and docs 2020-09-21 20:43:54 +02:00
test_matcher_api.py Refactor Token morph setting (#6175) 2020-10-01 22:21:46 +02:00
test_matcher_logic.py Tidy up and auto-format 2020-08-05 16:00:59 +02:00
test_pattern_validation.py Fix tests 2020-09-04 14:05:55 +02:00
test_phrase_matcher.py Refactor Token morph setting (#6175) 2020-10-01 22:21:46 +02:00