# NLP from scratch: how machines handle language

A free course on natural language processing by JCR Labz. It takes about 30 contact hours and runs from tokenization to large language models.

## What you get
- **Book.** Every chapter as a web page, plus a PDF: https://nlp.jcrlabz.com/book/
- **Slides.** One deck per topic: https://nlp.jcrlabz.com/slides/
- **Code.** Worked examples as Colab notebooks: https://nlp.jcrlabz.com/code/
- **Lab.** Experiments that run in the browser: https://nlp.jcrlabz.com/lab/

## The path
1. Words are weirdly predictable: how text behaves statistically.
2. Turning words into numbers: counts, weighting, vectors and embeddings.
3. The math that learns: the neural-network machinery behind language models.
4. Guessing the next word: language models.
5. Attention is the whole trick: transformers.
6. Making LLMs do what you want: decoding, prompting, retrieval and alignment.
7. Who gets hurt when it's wrong: bias, evaluation and responsible use.

The full, current list of units and chapters is on the home page: https://nlp.jcrlabz.com/

## Links
- About: https://nlp.jcrlabz.com/about/
- Contact (GitHub issues): https://nlp.jcrlabz.com/contact/
- Terms and licence (text and slides CC BY-NC-SA 4.0, code MIT): https://nlp.jcrlabz.com/terms/
- Privacy: https://nlp.jcrlabz.com/privacy/
- llms.txt: https://nlp.jcrlabz.com/llms.txt
- Notebooks: https://github.com/Ramaseshanr/anlp
