spaCy/spacy/cli
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
..
project Update CLI commans to use one shared util file 2020-07-10 17:57:40 +02:00
__init__.py Merge branch 'develop' into feature/refactor-config-args 2020-07-10 20:51:52 +02:00
_util.py Make debug commands subcommands of spacy debug 2020-07-12 13:53:41 +02:00
convert.py Update command docstrings and docs 2020-07-12 13:53:49 +02:00
debug_data.py Improve tag map initialization and updating (#5764) 2020-07-19 13:13:57 +02:00
debug_model.py Make debug commands subcommands of spacy debug 2020-07-12 13:53:41 +02:00
download.py Update CLI commans to use one shared util file 2020-07-10 17:57:40 +02:00
evaluate.py Update CLI commans to use one shared util file 2020-07-10 17:57:40 +02:00
info.py Update CLI commans to use one shared util file 2020-07-10 17:57:40 +02:00
init_model.py Update command docstrings and docs 2020-07-12 13:53:49 +02:00
package.py Update command docstrings and docs 2020-07-12 13:53:49 +02:00
pretrain.py Merge pull request #5747 from explosion/feature/refactor-config-args 2020-07-14 00:00:22 +02:00
profile.py Make debug commands subcommands of spacy debug 2020-07-12 13:53:41 +02:00
train.py Improve tag map initialization and updating (#5764) 2020-07-19 13:13:57 +02:00
validate.py Update CLI commans to use one shared util file 2020-07-10 17:57:40 +02:00