CMD + K

wn

Community

Wordnet interface library

Copied fromcf-staging / wn

Installation

To install this package, run one of the following:

Conda
$conda install conda-forge::wn

Usage Tracking

0.9.5
0.9.4
0.9.3
3 / 8 versions selected
Downloads (Last 6 months): 0

Description

Wn is a Python library for exploring information in wordnets. Install it from PyPI and download some data:

$ pip install wn
$ python -m wn download oewn:2021  # the Open English WordNet 2021

Then start exploring:

>>> import wn
>>> en = wn.Wordnet('oewn:2021')  # Create Wordnet object to query
>>> ss = en.synsets('win')[0]     # Get the first synset for 'win'
>>> ss.definition()               # Get the synset's definition
'be the winner in a contest or competition; be victorious'

PyPI: https://pypi.org/project/wn/

About

Summary

Wordnet interface library

Last Updated

Dec 6, 2023 at 07:37

License

MIT

Total Downloads

5.4K

Supported Platforms

noarch