Part 6 - Debugging

This series is my AllenNLP tutorial that goes from installation through building a state-of-the-art (or nearly) named entity recognizer. By the end we will have covered dataset readers, Hierarchical LSTMs and BERT, predictors, debugging, and experimental repeatability.

All the code for the tutorial can be found in the associated Github repository.

6. Debugging

A good friend (Pedro Rodriguez) has written a very good tutorial on how to debug machine learning code. I strongly recommend that you read through his tutorial, as the tips there will save you a lot of future headaches. In this section I’m not aiming to repeat much of what he’s said, but instead complement it by explaining in depth how I use debugging tools while working with AllenNLP.

6.1 Your One-stop Shop: pdb

6.2 Logging: When All Else Fails

Written on December 18, 2019