Natural language processing - Wikipedia NLP is a subfield of computer science and is closely associated with artificial intelligence NLP is also related to information retrieval, knowledge representation, computational linguistics, and linguistics more broadly