QuiddityML

NLP

From text and tokenization to embeddings, transformers, and LLMs. Posts are listed in the order the ideas build on each other.

What NLP is

Text as data

Text as data Why text is hard data for machine learning How raw text differs from tables and images, and the three decisions an NLP system has to make before a model can learn anything from it. 23 October 2026 · 7 min read Text as data Unicode and UTF-8 explained: how computers store text How a character becomes a code point and then bytes, why the same word can take a different number of bytes in different scripts, and how to fix text that compares wrong or shows up garbled. 23 October 2026 · 6 min read Text as data Where to find NLP datasets: Hugging Face Hub, Kaggle, and more Which places to search for a text dataset, how to load one in Python, and what to check before you train anything on it. 24 October 2026 · 7 min read Text as data How to build your own NLP dataset: selecting data, extracting text, documenting it How to choose the text for a custom dataset and pull clean text out of web pages, PDFs and scans, plus what to write down so the next person can trust it. 24 October 2026 · 7 min read Text as data Data annotation for NLP: crowdsourcing vs experts, and inter-annotator agreement How to design labels people can apply consistently, when to pay a crowd and when to hire experts, and how to compute Cohen's kappa to check whether your labels can be trusted. 24 October 2026 · 8 min read Text as data Text preprocessing in NLP: normalization, stemming vs lemmatization, and stopwords What each classic cleanup step does to a sentence, with runnable NLTK code, where each one erases something a model could use, and how much of it to apply for a count-based model versus a transformer. 26 October 2026 · 9 min read Text as data How to handle class imbalance in text classification Why a spam filter can score 98% accuracy while catching no spam, which numbers to report instead, and how reweighting, oversampling and undersampling work in PyTorch, with what each one costs. 26 October 2026 · 6 min read Text as data Data quality problems in NLP: duplicates, contamination, bias, and representativeness The problems to check for in a text dataset before training, how each one changes a model's scores, and short Python checks for duplicates, train/test overlap and test-set size. 26 October 2026 · 10 min read Text as data Privacy and licensing: can you train a model on scraped text? What to check before you collect or publish a text dataset, what a dataset license spells out, and a short Python example that masks emails, phone numbers and IP addresses. 28 October 2026 · 5 min read

Tokenization

Word representations