movies_set / tokenize.py
Mehmet Kuecuek
Upload 8 files
e76a6f7
raw
history blame contribute delete
126 Bytes
import nltk
text = "James rides a bicycle"
tokens = nltk.word_tokenize(text)
ps_tags = nltk.pos_tag(tokens)
print(pos_tags)