<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>Natural Language Processing · PoliStudy</title><description>From raw text and tokenizers to bag-of-words, language models, embeddings, transformers and large language models — the full Politecnico di Milano NLP course, rebuilt as an interactive, exam-focused study guide.</description><link>https://www.polistudy.me/</link><language>en</language><item><title>Foundations of NLP &amp; Text Preprocessing</title><link>https://www.polistudy.me/nlp/foundations/</link><guid isPermaLink="true">https://www.polistudy.me/nlp/foundations/</guid><description>What natural language is, why it is hard to process, and how to turn raw bytes into the tokens a model can read — tokenisation, normalisation, stemming vs lemmatisation, and the regular expressions that still do the surgical work.</description><category>tokenization</category><category>byte-pair encoding</category><category>stemming</category><category>lemmatisation</category><category>ambiguity</category><category>Zipf&apos;s law</category><category>regular expressions</category></item><item><title>Classifying Text</title><link>https://www.polistudy.me/nlp/classifying-text/</link><guid isPermaLink="true">https://www.polistudy.me/nlp/classifying-text/</guid><description>Turn documents into labels. Bag-of-Words as the canonical sparse representation, then three linear classifiers — Naïve Bayes, logistic regression, and the linear SVM — plus how to grade them with precision, recall and F1, and spelling correction as Naïve Bayes in disguise.</description><category>bag-of-words</category><category>Naïve Bayes</category><category>Laplace smoothing</category><category>logistic regression</category><category>support vector machine</category><category>precision recall F1</category><category>edit distance</category></item><item><title>Searching &amp; Clustering</title><link>https://www.polistudy.me/nlp/searching-clustering/</link><guid isPermaLink="true">https://www.polistudy.me/nlp/searching-clustering/</guid><description>Vector-space information retrieval. TF-IDF reweights counts by how discriminative a word is; cosine similarity ranks by angle not magnitude; the inverted index makes search fast; then unsupervised structure — k-means clustering and LDA topic models.</description><category>TF-IDF</category><category>inverse document frequency</category><category>cosine similarity</category><category>inverted index</category><category>BM25</category><category>k-means</category><category>latent Dirichlet allocation</category></item><item><title>Language Models &amp; Embeddings</title><link>https://www.polistudy.me/nlp/language-models/</link><guid isPermaLink="true">https://www.polistudy.me/nlp/language-models/</guid><description>Assign probabilities to word sequences. The chain rule and the n-gram Markov assumption, smoothing for unseen events, perplexity, and why sparse n-grams fail — motivating distributional semantics, word2vec, and the dense embeddings whose geometry encodes analogy.</description><category>language model</category><category>n-gram</category><category>Markov assumption</category><category>smoothing</category><category>perplexity</category><category>distributional semantics</category><category>word2vec</category><category>word embeddings</category></item><item><title>Sequence Models &amp; Labelling</title><link>https://www.polistudy.me/nlp/sequence-labelling/</link><guid isPermaLink="true">https://www.polistudy.me/nlp/sequence-labelling/</guid><description>Order matters. Recurrent networks and the vanishing-gradient problem, the LSTM gates that fix it, and bidirectional context — applied to the two canonical token-labelling tasks, POS tagging and named-entity recognition, with the Viterbi algorithm for globally consistent tag sequences.</description><category>recurrent neural network</category><category>vanishing gradient</category><category>LSTM</category><category>BiLSTM</category><category>POS tagging</category><category>named-entity recognition</category><category>Viterbi algorithm</category></item><item><title>Seq2Seq, Attention &amp; Transformers</title><link>https://www.polistudy.me/nlp/transformers/</link><guid isPermaLink="true">https://www.polistudy.me/nlp/transformers/</guid><description>The architecture that changed everything. The seq2seq bottleneck, attention as its fix, self-attention via query/key/value, the Transformer block, positional encoding, and the BERT-vs-GPT split between encoders and decoders — plus the pretrain-then-fine-tune recipe.</description><category>sequence-to-sequence</category><category>attention</category><category>self-attention</category><category>query key value</category><category>transformer</category><category>positional encoding</category><category>BERT</category><category>GPT</category><category>fine-tuning</category></item><item><title>Using Pretrained Models</title><link>https://www.polistudy.me/nlp/using-pretrained-models/</link><guid isPermaLink="true">https://www.polistudy.me/nlp/using-pretrained-models/</guid><description>Putting transformers to work. Probing and fine-tuning BERT for understanding, sentence embeddings (SBERT) and vector databases for semantic search, CLIP for multimodal alignment, and the generation side — decoding strategies and in-context (zero/one/few-shot) learning.</description><category>probing</category><category>fine-tuning</category><category>sentence embeddings</category><category>SBERT</category><category>vector database</category><category>semantic search</category><category>CLIP</category><category>decoding</category><category>in-context learning</category></item><item><title>Large Language Models</title><link>https://www.polistudy.me/nlp/large-language-models/</link><guid isPermaLink="true">https://www.polistudy.me/nlp/large-language-models/</guid><description>What changes when language models get big. Scaling laws and emergent abilities, alignment via instruction tuning and RLHF, chat templates, prompting and chain-of-thought, sampling, and the characteristic failure modes — hallucination, prompt injection, and overconfidence.</description><category>scaling laws</category><category>emergent abilities</category><category>RLHF</category><category>instruction tuning</category><category>chain-of-thought</category><category>prompting</category><category>hallucination</category></item><item><title>Efficient Inference &amp; Deployment</title><link>https://www.polistudy.me/nlp/efficient-inference/</link><guid isPermaLink="true">https://www.polistudy.me/nlp/efficient-inference/</guid><description>Making large models practical to run. Open vs closed weights and runtimes, quantization, the KV cache, grouped-query attention, FlashAttention, rotary embeddings, sliding-window attention, pre-norm, and mixture-of-experts — the toolbox that fits big models on small hardware and serves them fast.</description><category>quantization</category><category>KV cache</category><category>grouped-query attention</category><category>FlashAttention</category><category>rotary embeddings</category><category>mixture of experts</category></item><item><title>RAG, Agents &amp; Adaptation</title><link>https://www.polistudy.me/nlp/rag-and-agents/</link><guid isPermaLink="true">https://www.polistudy.me/nlp/rag-and-agents/</guid><description>Extending a frozen LLM. Retrieval-augmented generation grounds answers in real documents; ReAct-style agents reason and call tools; LoRA fine-tunes cheaply; and distillation compresses a big model into a small one. The toolkit for shipping LLM applications.</description><category>retrieval-augmented generation</category><category>vector search</category><category>ReAct</category><category>tool use</category><category>LoRA</category><category>knowledge distillation</category></item><item><title>Speech &amp; Dialogue</title><link>https://www.polistudy.me/nlp/speech-and-dialogue/</link><guid isPermaLink="true">https://www.polistudy.me/nlp/speech-and-dialogue/</guid><description>Language as sound and conversation. Representing speech as spectrograms, automatic speech recognition (CTC and seq2seq), text-to-speech, dialogue state tracking and turn-taking, voice agents — and the ethical stakes of synthetic voices and always-listening systems.</description><category>spectrogram</category><category>STFT</category><category>mel scale</category><category>automatic speech recognition</category><category>CTC</category><category>text-to-speech</category><category>dialogue state tracking</category></item></channel></rss>