AI & ML Atlas
Artificial IntelligencealgorithmInteractive simulation
Part-of-Speech Tagging
Labels each word as a noun, verb, adjective and so on, using its context.
The idea
The same word can play different roles: "book a flight" (verb) versus "read a book" (noun). Taggers use the neighbouring words: HMMs with the Viterbi algorithm, CRFs, and now neural models all work out the most likely tag sequence for the whole sentence.
Watch it run
This is a real computation, not a drawing. Pause, step, change the settings, or try new random data.
- DET
- ADJ
- NOUN
- VERB
- ADP
Part-of-speech tagging labels every word with its grammatical role. Here a word list plus simple suffix rules does the job.
1/11
Each colour is a different tag.
Step by step
- 1Split the sentence into tokens.
- 2For each token, consider its possible tags.
- 3Score tags using the word itself and the tags around it.
- 4Choose the best-scoring tag sequence.
Where it is used
Parsing, lemmatisation, grammar checkers, information extraction.
Watch out for
Informal text, new words and rare constructions lower accuracy.