all demos · interactive demos
Classical NLP
Before large language models, computers handled text with a toolkit of simpler, transparent methods. They are still widely used in clinical and biomedical research, and they make the ideas behind modern models much easier to see. Each demo below lets you change the input and watch the method respond. The examples are modelled on research abstracts and trial reports, and are fictional unless stated.
01
Regex
Pattern matching with regular expressions: pull doses, p-values and confidence intervals out of a trial abstract, and see where hand-written rules break.
rules, not learning
02
ELIZA
One of the first chatbots (1966): a simulated therapist that holds a conversation with nothing but keywords, patterns and templates, with every step of each reply shown.
rules that imitate conversation
03
Tokenization
How raw text becomes words a program can count: splitting, lowercasing, removing stopwords and stemming. Every other demo uses this pipeline.
preprocessing
04
TF-IDF
Scores each word by how often it appears in a document and how rare it is across the collection, the classic basis for search and keyword extraction.
weighting words
05
BM25
The default ranking in Lucene, Elasticsearch, Solr and most open-source search tools: TF-IDF with diminishing returns for repeated words and a tunable correction for document length, compared side by side with TF-IDF.
search ranking
06
Naive Bayes
A probabilistic classifier that learns to recognise study design (trial, cohort or review) from example sentences, with the evidence from every word laid out.
classification
07
SVM
Place points on a plot and watch a support vector machine draw the widest possible boundary between two classes, with linear, polynomial or RBF kernels.
decision boundaries
also in Classical machine learning
08
Word similarity
Builds a vector for each word from the words around it in research sentences, then compares words by the angle between their vectors.
meaning from context
09
word2vec
Explore word vectors learned from billions of words, in 3D, and the arithmetic behind analogies like cardiologist − heart + brain ≈ neurologist.
word embeddings
Everything runs in your browser: nothing you type is sent anywhere.