Wn Documentation


This package provides an interface to wordnet data, from simple lookup queries, to graph traversals, to more sophisticated algorithms and metrics. Features include:

  • Support for wordnets in the WN-LMF format

  • A SQLite database backend for data consistency and efficient queries

  • Accurate modeling of Words, Senses, and Synsets

Quick Start

$ pip install wn
>>> import wn
>>> wn.download('ewn:2020')
>>> wn.synsets('coffee')
[Synset('ewn-04979718-n'), Synset('ewn-07945591-n'), Synset('ewn-07945759-n'), Synset('ewn-12683533-n')]