Natural Language Processing Algorithms
The family of methods that let programs read, analyse and produce human language.
The idea
A typical pipeline splits text into tokens, tags words with grammar roles, finds entities, represents meaning with vectors, and finally classifies, translates or answers. Modern systems fold many of these steps into one large neural model, but the stages are still the best way to understand them.
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.
Each colour is a different tag.
Step by step
- 1Clean and tokenise the text.
- 2Tag each token with its part of speech.
- 3Find named entities such as people and places.
- 4Turn words and sentences into vectors.
- 5Apply a task model: classify, translate, summarise or answer.
Where it is used
Search, chatbots, translation, sentiment analysis.
Watch out for
Language is ambiguous and context-dependent, and models inherit bias from their training text.