NLP is built on artificial intelligence (AI), which provides machine learning models and algorithms that let computers comprehend and analyze language. NLP is a subset of AI that focuses on communication between people.