✨ New features and improvements
To improve loading times and reduce conflicts, MXNet and TensorFlow are no longer imported automatically (890).
⚠️ Backwards incompatibilities
MXNet and TensorFlow support needs to be enabled explicitly. Previously, MXNet and TensorFlow were imported automatically if they were available in the current environment.
To enable MXNet:
python
from thinc.api import enable_mxnet
enable_mxnet()
To enable TensorFlow:
python
from thinc.api import enable_tensorflow
enable_tensorflow()
With spaCy CLI commands you can provide this custom code using `-c code.py`. For training use `spacy train -c code.py` and to package your code with your pipeline use `spacy package -c code.py`.
Future deprecation warning: built-in MXNet and TensorFlow support will be removed in Thinc v9. If you need MXNet or TensorFlow support in the future, you can transition to using a custom copy of the current `MXNetWrapper` or `TensorFlowWrapper` in your package or project.
👥 Contributors
adrianeboyd, danieldk, honnibal, ines, svlandeg