0

I'd like a complete list of parts of speech (e.g., adj., adv., and .v) for English words. All I need is just a TSV table with two columns, with the first column the word and the second column POS.

I know that wordnet should contain such information. But it contains more than what I needed. I am not sure which file I should use.

https://wordnet.princeton.edu/download

Does anybody know a convenience-to-use file that contains English words and their POS? Thanks.

alvas
  • 115,346
  • 109
  • 446
  • 738
user1424739
  • 11,937
  • 17
  • 63
  • 152

1 Answers1

0

Wordnet doesn't give you "word" per say but lemmas.

from nltk.corpus import wordnet as wn

for ss in wn.all_synsets():
    for lemma in ss.lemma_names():
        print(ss.offset() + '\t' + ss.pos() +'\t' + lemma)

See

alvas
  • 115,346
  • 109
  • 446
  • 738