MuhammadLab
Natural Language Processing

Natural Language Processing resources and learning tools.

Browser-based NLP tools for preprocessing, sentiment, retrieval, question answering, translation, summarisation, speech-to-text, entities, POS tagging, and language generation.

Learning area

A focused collection for this topic.

These pages are grouped as a learning collection. More lecture notes, examples, and practical tools can be added without changing the page structure.

17

Available resources

Available resources

Start with these resources

This category combines current MuhammadLab pages that match the topic. More lecture guides and interactive tools can be added here as the lab grows.

Browser resource

Next Word Prediction Interactive Tool

Train a small n-gram language model, type a context, predict likely next words, and inspect probability, smoothing, and generation calculations.

next word predictionlanguage model demon gram modelnlp prediction tooltext generation demo
Browser resource

NLP Text Preprocessing Tool

Paste or upload text and inspect tokenization, stop word removal, stemming, lemmatization, n-grams, entities, POS signals, and text statistics.

nlp text preprocessingtext preprocessing tooltokenization toolstop words removalstemming lemmatization
Browser resource

Document Retrieval Interactive Demo

Build a mini search engine in the browser: edit documents, enter a query, rank results with TF-IDF and cosine similarity, and inspect the retrieval calculations.

document retrievalinformation retrievalTF-IDF searchcosine similarityquery document ranking
Browser resource

TF-IDF Tools - Calculator and Search Engine

Learn TF-IDF with editable example documents, term scoring, query ranking, cosine similarity, and top-keyword tables.

tf-idf toolstfidf calculatortf-idf search engineinformation retrievalnlp tool
Browser resource

Transformers — Learn Self-Attention

Understand Transformers with self-attention intuition, why they scale, and common model variants (encoder/decoder).

transformersself attentionattentionbertgpt
Browser resource

BERT — Encoder-Only Transformers (Explained)

Learn what BERT is, masked language modeling, embeddings, and typical NLP uses.

berttransformer encodermasked language modelembeddingsnlp
Browser resource

Writing Assistant

Check your text for style, clarity, passive voice, weasel words, and sensitive language — a free, browser-based alternative to Grammarly powered by open NLP tools.

grammar checkerwriting assistantstyle checkergrammarly alternativereadability score
Browser resource

Natural Language Generation

Explore simple language generation with a browser-based n-gram model, inspect next-token probabilities, and generate short continuations from custom text.

natural language generationnlg tooltext generationlanguage model demonext token prediction
Browser resource

Named Entity Recognition

Identify people, places, organisations, dates, and other entity-like signals from text using a browser-based NLP workflow.

named entity recognitionner toolentity extractionpeople places organisationsbrowser nlp tool
Browser resource

Part of Speech Tagging

Paste text and inspect how a browser-based NLP pipeline highlights noun phrases, verbs, adjectives, and token-level language structure for classroom analysis.

part of speech taggingpos taggingnoun verb adjective toolnlp grammar taggingbrowser nlp tool
Browser resource

Speech Recognition

Use your microphone to turn short spoken phrases into text in the browser and inspect live transcription output for teaching speech-to-text workflows.

speech recognitionspeech to textbrowser transcriptionmicrophone transcriptnlp speech demo
Browser resource

Word2Vec — Word Embeddings (Explained)

Learn how Word2Vec creates vector embeddings and why semantics emerge from co-occurrence.

word2vecword embeddingsskip gramcbownegative sampling
Browser resource

Question Answering from Text

Paste a passage, ask a question, and see how a transformer reading-comprehension model selects an answer span from the provided context.

question answeringtransformer modelextractive qareading comprehensioncontext window
Browser resource

Text Translation

Translate short passages between supported languages using a browser transformer model, and learn how encoder-decoder translation works.

text translationmachine translationtransformersencoder-decodermultilingual ai
Browser resource

Text Summarisation

Paste a paragraph and see how a transformer summarisation model compresses the main ideas into a shorter summary, with clear metrics.

text summarisationsummarizationtransformerssequence-to-sequenceabstractive summarisation
Browser resource

Text Sentiment Analysis

Type text and see how a transformer model predicts positive, negative, or neutral/uncertain sentiment with confidence scores.

sentiment analysistext classificationtransformersnlp classificationconfidence scores
Browser resource

Naive Bayes — Fast Probabilistic Classification

Learn Bayes’ rule, conditional independence, and why Naive Bayes is strong for text.

naive bayesbayes ruletext classificationlaplace smoothing