# Simple POS tagging (NLTK's default tagger might not be perfect for Indonesian) tagged = nltk.pos_tag(tokens)