What is a corpus, and how is it used in NLP?

A corpus (plural corpora), also known as a text corpus in linguistics, is usually a large collection of texts, and it could be compared to…