Parts-of-speech tagging (PoS tagging) is the process of labeling the words that correspond to particular lexical categories. The common linguistic categories include nouns, verbs, adjectives, articles, pronouns, adverbs, conjunctions, and so on.
Parts of speech tagging with spaCy
Getting ready
In this recipe, we will use a library called spacy to perform PoS tagging.
How to do it...
Let's look at how to perform PoS tagging using spacy:
- Create a new Python file and import the following packages (the full code is in the PosTagging.py file that's already been...