with open('fileids3.txt', 'r') as f: genres=[word.strip() for word in f.next().split(',')]
with open('adjectifs2.txt', 'r') as g: adj = [word.strip() for word in g.next().split(',')] freq = nltk.ConditionalFreqDist( (genre, m) for genre in brown.fileids() for m in brown.words(fileids=genre))
freq.tabulate(conditions=genres, samples=adj)
--
You received this message because you are subscribed to the Google Groups "nltk-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nltk-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.