AI Natural Language Processing
Natural language processing is the field of building systems that can turn human language into a form a model can compute with, and turn a model's output back into language people can read.
What Is Natural Language Processing?
Natural language processing (NLP) is the branch of AI focused on working with human language - text and speech - rather than numbers, images, or structured tables. Its goal is to build systems that can extract meaning from language, respond in language, or transform language from one form into another, whether that's translating a sentence, summarizing an article, or answering a question.
The Core Challenge: Language Is Not Numbers
Every model underneath an NLP system, no matter how sophisticated, ultimately runs on arithmetic over numeric arrays - it cannot directly 'read' a sentence the way a person does. Language, meanwhile, is messy: the same word can mean different things depending on context ('bank' of a river vs. a 'bank' that holds money), meaning depends heavily on word order and grammar, and people constantly bend or break the rules with slang, sarcasm, and typos. The foundational challenge of NLP is converting this messy, symbolic input into a numeric representation that still preserves as much of the original meaning as possible - a conversion process covered in detail in the next lesson on tokenization and embeddings.
A Typical NLP Pipeline
- Collect raw text (documents, messages, transcripts, web pages)
- Clean and normalize it (handle casing, punctuation, and unusual characters)
- Split the text into tokens (the next lesson covers this step in detail)
- Convert tokens into numeric vectors the model can process
- Feed those vectors into a model trained for the task at hand
- Convert the model's numeric output back into a label, a score, or generated text
Common NLP Tasks
Early NLP systems relied heavily on hand-written grammar rules and dictionaries built by linguists - useful, but brittle whenever real language didn't follow the expected pattern. Most modern NLP systems instead learn their behavior from large collections of real text, picking up patterns of grammar, meaning, and usage statistically rather than being told the rules explicitly.
Exercise: AI Natural Language Processing
What is the primary goal of Natural Language Processing (NLP)?