Study Atlas › Computer Science › Artificial intelligence

Natural language processing

Computers processing human language: tokenisation, tagging, translation, question answering and generation.

Edited by Alex C, EduAlx · Sources cited below

Explanation

Early NLP used rules and statistical n-gram models. Word embeddings (word2vec, 2013) represent words as vectors where similar words are close. Sequence-to-sequence RNNs with attention improved translation; transformers (2017) and pretrained models (BERT, GPT) now dominate.

Example

king – man + woman ≈ queen in word2vec space.

How it works, step by step

  1. Tokenise text
  2. Map tokens to vectors
  3. Model context (RNN or transformer)
  4. Predict labels or next tokens
  5. Evaluate with metrics such as BLEU or accuracy

Open the interactive page with diagrams →

People behind it

References

  1. T. Mikolov et al., arXiv:1301.3781, 2013.
  2. J. Devlin et al., Proc. NAACL 2019, 4171–4186.

Textbooks

Related topics

Reinforcement learningComputer vision and convolutional neural networksMachine learningArtificial intelligence: search and the Turing testNeural networks and backpropagationTransformers and large language modelsDecision trees and ensemble methodsSearch engines and PageRankClustering and unsupervised learningWeb development: front end and back end