NLP is used in Machine Learning to enable machines to understand natural language and process it to extract meaningful insights. For example, NLP techniques are used in sentiment analysis to detect the sentiment of a given text. NLP can also be used for automatic summarization, machine translation, part-of-speech tagging, named entity recognition, and question answering.