N-gram language models Python implementation of n-gram language models from scratch and using the NLTK library. Slides from my NLP course based on Dan Jurafsky and James H. Martin (2024). Speech and Language Processing (3rd ed. draft). See also: Naive bayes Feedforward neural networks Recurrent neural networks and attention mechanisms Transformer