Developer chat

Breaking changes in text! To make the API more consistent with the vision side and make it compatible with the data block API, plus cleaning the code that was a bit too messy, I’ve just merged big changes in NLP. Examples and docs are updated to reflate that. There’s also a working lesson notebook in course-v3 (I’d love to know if it doesn’t work for you).

Please note:

  • RNNLearner.classifier is now text_classifier_learner
  • RNN_Learner.language_model is now language_model_learner.
  • You need to manually save/load your TextDataBunch. Doing it automatically was inducing too many subtle bugs.
  • TextDataBunch.from_csv now takes on csv and valid_pct instead of two csv

If you’re using the dataset methods, changes are more numerous so you’d better check the docs. And remember to use the data bock API as it’s been designed to make your life easier :wink:

1 Like