Naive Bayes versus BERT: Jupyter notebook assignments for an introductory NLP course

Authors

Jennifer Foster and Joachim Wagner

Abstract

We describe two Jupyter notebooks that form the basis of two assignments in an introductory Natural Language Processing (NLP) module taught to final year undergraduate students at Dublin City University. The notebooks show the students how to train a bag-of-words polarity classifier using multinomial Naive Bayes, and how to fine-tune a polarity classifier using BERT. The students take the code as a starting point for their own experiments.