Package: wn-fast
a Python library for wordnetsAvailable Wordnets|Documentation|FAQ|Migrating from NLTK|RoadmapWn is a Python library for exploring information in wordnets. Install
it from PyPI and download some data:$pipinstallwn$python-mwndownloadoewn:2021# the Open English WordNet 2021Then start exploring:>>>importwn>>>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'FeaturesMultilingual by design; first-class support for wordnets in any languageInterlingual queries via theCollaborative Interlingual IndexSixsimilarity metricsFunctions forexploring taxonomiesSupport forlemmatization(Morphyfor English is built-in) and unicodenormalizationFull support of theWN-LMF 1.1format, including word pronunciations and lexicon extensionsSQL-based backend offers very fast startup and improved performance on many kinds of queriesAvailable WordnetsAny WN-LMF-formatted wordnet can be added to Wn's database from a local
file or remote URL, but Wn also maintains an index (seewn/index.toml)
of available projects, similar to a package manager for software, to aid
in the discovery and downloading of new wordnets. The projects in this
index are listed below.English WordnetsThere are several English wordnets available. In general it is
recommended to use the latestOpen English Wordnet, but if you have
stricter compatibility needs for, e.g., experiment replicability, you
may try theOMW English Wordnet based on WordNet 3.0(compatible with
the Princeton WordNet 3.0 and with theNLTK), orOpenWordnet-EN(for
use with the Portuguese wordnetOpenWordnet-PT).NameSpecifier# SynsetsNotesOpen English WordNetoewn:2021ewn:2020ewn:2019120039120053117791RecommendedOMW English Wordnet based on WordNet 3.0omw-en:1.4117659Included withomw:1.4OMW English Wordnet based on WordNet 3.1omw-en31:1.4117791OpenWordnet-ENown-en:1.0.0117659Included withown:1.0.0Other Wordnets and CollectionsThese are standalone non-English wordnets and collections. The wordnets
of each collection are listed further down.NameSpecifier# SynsetsLanguageOpen Multilingual Wordnetomw:1.4n/amultiple [mul]Open German WordNetodenet:1.4odenet:1.33626836159German [de]Open Wordnets for Portuguese and Englishown:1.0.0n/amultiple [mul]KurdNetkurdnet:1.02144Kurdish [ckb]Open Multilingual Wordnet (OMW) CollectionTheOpen Multilingual Wordnetcollection (omw:1.4) installs the
following lexicons (fromhere) which can
also be downloaded and installed independently:NameSpecifier# SynsetsLanguageAlbanetomw-sq:1.44675Albanian [sq]Arabic WordNet (AWN v2)omw-arb:1.49916Arabic [arb]BulTreeBank Wordnet (BTB-WN)omw-bg:1.44959Bulgarian [bg]Chinese Open Wordnetomw-cmn:1.442312Mandarin (Simplified) [cmn-Hans]Croatian Wordnetomw-hr:1.423120Croatian [hr]DanNetomw-da:1.44476Danish [da]FinnWordNetomw-fi:1.4116763Finnish [fi]Greek Wordnetomw-el:1.418049Greek [el]Hebrew Wordnetomw-he:1.45448Hebrew [he]IceWordNetomw-is:1.44951Icelandic [is]Italian Wordnetomw-iwn:1.415563Italian [it]Japanese Wordnetomw-ja:1.457184Japanese [ja]Lithuanian  WordNetomw-lt:1.49462Lithuanian [lt]Multilingual Central Repositoryomw-ca:1.445826Catalan [ca]Multilingual Central Repositoryomw-eu:1.429413Basque [eu]Multilingual Central Repositoryomw-gl:1.419312Galician [gl]Multilingual Central Repositoryomw-es:1.438512Spanish [es]MultiWordNetomw-it:1.435001Italian [it]Norwegian Wordnetomw-nb:1.44455Norwegian (Bokmål) [nb]Norwegian Wordnetomw-nn:1.43671Norwegian (Nynorsk) [nn]OMW English Wordnet based on WordNet 3.0omw-en:1.4117659English [en]Open Dutch WordNetomw-nl:1.430177Dutch [nl]OpenWN-PTomw-pt:1.443895Portuguese [pt]plWordNetomw-pl:1.433826Polish [pl]Romanian Wordnetomw-ro:1.456026Romanian [ro]Slovak WordNetomw-sk:1.418507Slovak [sk]sloWNetomw-sl:1.442583Slovenian [sl]Swedish (SALDO)omw-sv:1.46796Swedish [sv]Thai Wordnetomw-th:1.473350Thai [th]WOLF (Wordnet Libre du Français)omw-fr:1.459091French [fr]Wordnet Bahasaomw-id:1.438085Indonesian [id]Wordnet Bahasaomw-zsm:1.436911Malaysian [zsm]Open Wordnet (OWN) CollectionTheOpen Wordnets for Portuguese and Englishcollection (own:1.0.0)
installs the following lexicons (fromhere)
which can also be downloaded and installed independently:NameSpecifier# SynsetsLanguageOpenWordnet-PTown-pt:1.0.052670Portuguese [pt]OpenWordnet-ENown-en:1.0.0117659English [en]Collaborative Interlingual IndexWhile not a wordnet, theCollaborative Interlingual Index(CILI)
represents the interlingual backbone of many wordnets. Wn, including
interlingual queries, will function without CILI loaded, but adding it
to the database makes available the full list of concepts, their status
(active, deprecated, etc.), and their definitions.NameSpecifier# ConceptsCollaborative Interlingual Indexcili:1.0117659Changes to the Indexewn→oewnThe 2021 version of theOpen English WordNet(oewn:2021) has
changed its lexicon ID fromewntooewn, so the index is updated
accordingly. The previous versions are still available asewn:2019andewn:2020.pwn→omw-en,omw-en31The wordnet formerly called thePrinceton WordNet(pwn:3.0,pwn:3.1) is now called theOMW English Wordnet based on WordNet
3.0(omw-en) and theOMW English Wordnet based on WordNet 3.1(omw-en31). This is more accurate, as it is a OMW-produced
derivative of the original WordNet data, and it also avoids license or
trademark issues.*wn→omw-*for OMW wordnetsAll OMW wordnets have changed their ID scheme from...wntoomw-..and the version no longer
includes+omw(e.g.,bulwn:1.3+omwis nowomw-bg:1.4).