spaCy/spacy/tests/doc
adrianeboyd 3b22eb651b
Sync Span __eq__ and __hash__ (#5005)
* Sync Span __eq__ and __hash__

Use the same tuple for `__eq__` and `__hash__`, including all attributes
except `vector` and `vector_norm`.

* Update entity comparison in tests

Update `assert_docs_equal()` test util to compare `Span` properties for
ents rather than `Span` objects.
2020-02-16 17:20:36 +01: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 Require HEAD for is_parsed in Doc.from_array() (#5011) 2020-02-16 17:17:09 +01: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 Fix realloc in retokenizer.split() (#4606) 2019-11-11 16:26:46 +01:00
test_span.py Sync Span __eq__ and __hash__ (#5005) 2020-02-16 17:20:36 +01: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