spaCy/spacy/tests/doc
Ines Montani cf65a80f36 Refactor lemmatizer and data table integration (#4353)
* Move test

* Allow default in Lookups.get_table

* Start with blank tables in Lookups.from_bytes

* Refactor lemmatizer to hold instance of Lookups

* Get lookups table within the lemmatization methods to make sure it references the correct table (even if the table was replaced or modified, e.g. when loading a model from disk)
* Deprecate other arguments on Lemmatizer.__init__ and expect Lookups for consistency
* Remove old and unsupported Lemmatizer.load classmethod
* Refactor language-specific lemmatizers to inherit as much as possible from base class and override only what they need

* Update tests and docs

* Fix more tests

* Fix lemmatizer

* Upgrade pytest to try and fix weird CI errors

* Try pytest 4.6.5
2019-10-01 21:36:03 +02:00
..
__init__.py Revert #4334 2019-09-29 17:32:12 +02:00
test_add_entities.py Fix test imports 2019-09-29 17:34:56 +02:00
test_array.py Revert #4334 2019-09-29 17:32:12 +02:00
test_creation.py Refactor lemmatizer and data table integration (#4353) 2019-10-01 21:36:03 +02:00
test_doc_api.py Revert #4334 2019-09-29 17:32:12 +02:00
test_morphanalysis.py Revert #4334 2019-09-29 17:32:12 +02:00
test_pickle_doc.py Revert #4334 2019-09-29 17:32:12 +02:00
test_retokenize_merge.py Skip duplicate spans in Doc.retokenize (#4339) 2019-09-30 12:43:48 +02:00
test_retokenize_split.py Revert #4334 2019-09-29 17:32:12 +02:00
test_span.py Revert #4334 2019-09-29 17:32:12 +02:00
test_to_json.py Revert #4334 2019-09-29 17:32:12 +02:00
test_token_api.py Revert #4334 2019-09-29 17:32:12 +02:00
test_underscore.py Revert #4334 2019-09-29 17:32:12 +02:00