Solution:c) To assign a grammatical category to each word in a sentence.
Reason:Part-of-speech tagging is a NLP task that involves assigning a grammatical category to each word in a sentence, such as noun, verb, adjective, or adverb.