import nltk
text = nltk.word_tokenize('We are going out.Just you and me.')
print(nltk.pos_tag(text))
[('We', 'PRP'), ('are', 'VBP'), ('going', 'VBG'), ('out.Just', 'JJ'), (
    'you', 'PRP'), ('and', 'CC'), ('me', 'PRP'), ('.', '.')]
How to do POS tagging using the NLTK POS tagger in Python?