spaCy/spacy/tests/pipeline
Adriane Boyd 9ee1c54f40
Improve tag map initialization and updating (#5764)
* Improve tag map initialization and updating

Generalize tag map initialization and updating so that the tag map can
be loaded correctly prior to loading a `Corpus` with `spacy debug-data`
and `spacy train`.

* normalize provided tag map as necessary
* use the same method for initializing and updating the tag map

* Replace rather than update tag map

Replace rather than update tag map when loading a custom tag map.
Updating the tag map is problematic due to the sorted list of tag names
and the fact that the tag map will contain lingering/unwanted tags from
the default tag map.

* Update CLI scripts

* Reinitialize cache after loading new tag map

Reinitialize the cache with the right size after loading a new tag map.
2020-07-19 13:13:57 +02:00
..
__init__.py Revert #4334 2019-09-29 17:32:12 +02:00
test_analysis.py Remove object subclassing 2020-07-12 14:03:23 +02:00
test_entity_linker.py Feature/example only (#5707) 2020-07-06 13:02:36 +02:00
test_entity_ruler.py Tidy up and auto-format 2020-03-25 12:28:12 +01:00
test_factories.py Drop Python 2.7 and 3.5 (#4828) 2019-12-22 01:53:56 +01:00
test_functions.py Drop Python 2.7 and 3.5 (#4828) 2019-12-22 01:53:56 +01:00
test_morphologizer.py Update morphologizer (#5766) 2020-07-19 11:10:51 +02:00
test_pipe_methods.py Move to spacy.analysis 2020-05-22 16:43:18 +02:00
test_sentencizer.py Improve spacy.gold (no GoldParse, no json format!) (#5555) 2020-06-26 19:34:12 +02:00
test_senter.py Fix get_loss for values outside of labels in senter (#5730) 2020-07-09 01:41:58 +02:00
test_simple_ner.py Tidy up and auto-format 2020-06-20 14:15:04 +02:00
test_tagger.py Improve tag map initialization and updating (#5764) 2020-07-19 13:13:57 +02:00
test_textcat.py Try to fix textcat test 2020-07-09 20:24:53 +02:00