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
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
test_factories.py
test_functions.py
test_morphologizer.py Update morphologizer (#5766) 2020-07-19 11:10:51 +02:00
test_pipe_methods.py
test_sentencizer.py
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
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