Machine Learning Guide

MLG 019 Natural Language Processing 2

Machine Learning Guide

Show Notes

Try a walking desk to stay healthy while you study or work! Notes and resources at ocdevel.com/mlg/19 Classical NLP Techniques: Origins and Phases in NLP History: Initially reliant on hardcoded linguistic rules, NLP's evolution significantly pivoted with the introduction of machine learning, particularly shallow learning algorithms, leading eventually to deep learning, which is the current standard.

Importance of Classical Methods: Knowing traditional methods is still valuable, providing a historical context and foundation for understanding NLP tasks. Traditional methods can be advantageous with small datasets or limited compute power.

Edit Distance and Stemming: Levenshtein Distance: Used for spelling corrections by measuring the minimal edits needed to transform one string into another. Stemming: Simplifying a word to its base form. The Porter Stemmer is a common algorithm used.

Language Models: Understand language legitimacy by calculating the joint probability of word sequences. Use n-grams for constructing language models to increase accuracy at the expense of computational power.

Naive Bayes for Classification: Ideal for tasks like spam detection, document classification, and sentiment analysis. Relies on a 'bag of words' model, simplifying documents down to word frequency counts and disregarding sequence dependence.

Part of Speech Tagging and Named Entity Recognition: Methods: Maximum entropy models, hidden Markov models. Challenges: Feature engineering for parts of speech, complexity in named entity recognition.

Generative vs. Discriminative Models: Generative Models: Estimate the joint probability distribution; useful with less data. Discriminative Models: Focus on decision boundaries between classes.

Topic Modeling with LDA: Latent Dirichlet Allocation (LDA) helps identify topics within large sets of documents by clustering words into topics, allowing for mixed membership of topics across documents.

Search and Similarity Measures: Utilize TF-IDF for transforming documents into vectors reflecting term importance inversely correlated with document frequency in the corpus. Employ cosine similarity for measuring semantic similarity between document vectors.

More from Machine Learning Guide

Feb 26, 2026

The aggregate job market held, the entry-level door narrowed, and software postings sit a quarter below pre-pandemic. Why cheap implementation made specification, verification and domain scarce, how ML roles split five ways, and how to position. Links Try a walking desk - stay healthy & sharp while you learn & code More OCDevel shows - this one has siblings, each on its own subject and produced the same way

Feb 22, 2026

OpenClaw as the worked example of the always-on personal agent: gateway, markdown memory, heartbeats, skills, coding agents from your phone, hosted vs local models, and the 2026 security record (exposed instances, two critical CVEs, ClawHavoc) with the posture that makes it survivable. Links Try a walking desk - stay healthy & sharp while you learn & code More OCDevel shows - this one has siblings, each on its own subject and produced the same way

Feb 22, 2026

What an AI agent actually is, why coding agents got good first, how memory really works, what MCP and A2A standardize, which SDKs are alive, how to evaluate on trajectories, and where the products stand after browser agents contracted. Links Try a walking desk - stay healthy & sharp while you learn & code More OCDevel shows - this one has siblings, each on its own subject and produced the same way

Jul 14, 2025

How to automate AI media end to end: clone your own voice on open TTS, pick music that's actually licensed, run ComfyUI graphs headless, design around fal, Replicate and provider queues, finish with ffmpeg, and stay inside licensing at every layer. Links More OCDevel shows - this one has siblings, each on its own subject and produced the same way Companion show. This episode is the overview of the media pipeline. For weekly, hands-on coverage of the video half, from a first usable clip to scenes that cut together, listen to AI Video Generation on Gnothi. Try a walking desk - stay healthy & sharp while you learn & code

Jul 12, 2025

Sora is shut down, Google runs two video models, Kling 3 does lip-synced dialogue, and open-weight MiniMax H3 is what you can actually fine-tune. What a usable clip costs, which models do native audio, how reference consistency works, and why the unit of work is the shot. Links Notes and resources at ocdevel.com/mlg/mla-26 More OCDevel shows - this one has siblings, each on its own subject and produced the same way. Companion show: for weekly, hands-on coverage of the AI video pipeline, from a first usable clip to scenes that cut together, listen to AI Video Generation. Try a walking desk - stay healthy & sharp while you learn & code

See all episodes →