spaCy/spacy/tests/doc
Ines Montani cae4457c38 💫 Add .similarity warnings for no vectors and option to exclude warnings (#2197)
* Add logic to filter out warning IDs via environment variable

Usage: SPACY_WARNING_EXCLUDE=W001,W007

* Add warnings for empty vectors

* Add warning if no word vectors are used in .similarity methods

For example, if only tensors are available in small models – should hopefully clear up some confusion around this

* Capture warnings in tests

* Rename SPACY_WARNING_EXCLUDE to SPACY_WARNING_IGNORE
2018-05-21 01:22:38 +02:00
..
__init__.py Rename "tokens" tests to "doc" 2017-01-11 18:59:01 +01:00
test_add_entities.py Update doc.ents test 2018-03-28 18:39:03 +02:00
test_array.py Support strings for attribute list in doc.to_array 2017-10-20 11:46:57 +05:30
test_creation.py Fix tests 2017-10-11 13:27:18 +02:00
test_doc_api.py 💫 Add .similarity warnings for no vectors and option to exclude warnings (#2197) 2018-05-21 01:22:38 +02:00
test_pickle_doc.py Test pickling hooks 2017-10-17 19:43:52 +02:00
test_span_merge.py Add test for ent_iob during span merge 2018-03-28 18:36:53 +02:00
test_span.py 💫 Add .similarity warnings for no vectors and option to exclude warnings (#2197) 2018-05-21 01:22:38 +02:00
test_token_api.py Fix #2014: token.pos_ not writeable 2018-03-27 21:21:11 +02:00