This lesson is still being designed and assembled (Pre-Alpha version)

Part of speech tagging (POS)

Overview

Time: min
Objectives

What are POS tagging?

Through POS tagging, each of the tokens are assigned a part of speech(noun, verb, pronouns, adverbs etc). This is done in python using taggers like NLTK, Spacy, TextBlob, Standford CoreNLP, etc.

nltk.download('averaged_perceptron_tagger')
text = '''The UIC Library Digital Scholarship Hub is a facility that is available to support students, 
staff and faculty with digital scholarship and humanities experimental research and instruction. 
The Hub provides technology, data and individual consultations to encourage creative, 
innovative and non-traditional research and development. '''

tex = word_tokenize(text)
for token in tex:
  print(nltk.pos_tag([token]))

Key Points