import nltk
from nltk.corpus import brown
user=input("Enter a word:")
words=brown.tagged_words()
for word in words:
if
I have started like this but I can"t go on
import nltk
from nltk.corpus import brown
user=input("Enter a word:")
words=brown.tagged_words()
for word in words:
if
I have started like this but I can"t go on
Just a hint:
will give you:
This is a list of tuples, where the first value is the word (token) and the second is the token type.
so you might say: