What Is Natural Language Processing (NLP)?

  • AI

What is natural language processing (NLP), and how does it work? We explain how NLP helps machines interpret human language and why it matters, without assuming a background in data science.

Transcript

We're here in Times Square. What do you think of AI? Like a bunch of computers running in the background. I think it's going to replace a lot of stuff. Well, I think it's a really neat technology, although I also believe it could be potentially dangerous. Do you know what natural language processing, NLP, is? No, first time I hear about it. I suspect maybe like those Google headphones or the AirPods that can like translate in life when people speak. Maybe. I'm not I don't have that much knowledge I think in AI. AI, everyone's talking about it. Most of us are already using it. But what exactly is AI? How does it really work? And how is it already reshaping the world around us? Welcome to Simplifying [music] AI, an explainer series from OpenX, designed for both the people who run media and the people who experience it. In each episode, we'll break down key elements of this fast-growing technology [music] with one goal, to make AI more understandable for everyone. Let's begin with natural language processing or NLP. Though it isn't new, it is foundational to how we use computers and other devices. In all the many different fields that make up artificial intelligence, NLP is the most [music] straightforward to understand. Why is it straightforward? Well, you're using it right now. You're listening to my words, understanding their meaning, and deriving comprehension from them. When we teach computers to do the same thing, that's called natural language processing or NLP. Here's the challenge. Humans communicate naturally. If I say something like, "Schedule a meeting with Sarah for tomorrow at 3:00 p.m." you instantly understand the meaning behind my words. But computers, they need structure. NLP is the translator between how we naturally speak and how computers need information organized. You probably use NLP every day without even realizing it. When a translating app or site converts "Hello, how are you?" into Spanish, that's NLP understanding context, [music] not just swapping words. When your inbox automatically sorts spam from important emails, NLP is analyzing writing patterns, the urgency behind the request, and suspicious phrases. But, how does it work? Well, NLP [music] isn't one algorithm, it's a toolkit. Let's look at a simple example. "My dogs love running in Central Park." First up is tokenization, which means breaking text into individual pieces. Six words in a period become seven tokens, since punctuation also needs to be included for analysis. Next, the computer identifies word stems. Running becomes run, dogs becomes dog, so the computer understands the related concepts. Then, we identify each word's role using what's called part of speech tagging. Love is the action, dogs is the subject, running describes what they love doing. Finally, entity recognition. Central Park isn't just [music] two random words, it's a specific place in New York. Now, our messy human sentence becomes structured data. Subject: dogs. Action: love. Activity: running. Location: Central Park. The computer can work with that. That's natural language processing, a set of tools that helps machines make sense of how we communicate. And once computers can understand us, they can help us search smarter, work faster, and even make better decisions. But, NLP is just the foundation of AI. Next, we'll explore the {quote} unquote orchestrator behind it all, deep neural networks, and how they power everything we've just discussed. [music]