Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fetch a specific version of Wordnet when doing nltk.download()

I have a domain mapped file, for Wordnet synsets which is linked by offsets, from :- link

This has two types of databases for different Wordnet versions and other significant differences. The readme says

- "wn-domains-3.2-20070223" contains the mapping between Princeton WordNet 2.0 synsets and their corresponding domains.

I am using python3.4 with Wordnet version 3 on a linux machine. I couldn't seem to find any other version of the domain file that would support Wordnet 3, so i need to to go for downgrading Wordnet to version 2. How do i do that?, is that even possible?

like image 735
Vishal Tyagi Avatar asked Nov 07 '22 15:11

Vishal Tyagi


1 Answers

Instead of trying to roll back the nltk, you should migrate your resource to the current version of Wordnet -- if other project dependencies don't get in the way, of course. The wordnet website provides a downloadable "sense-key mapping from version 2.1 to 3.0" (tgz archive) that you can use to migrate your domain file to Wordnet 3.0. Each version of Wordnet contains a similar migration table from the previous version, e.g. from 2.0 to 2.1 (which apparently you needed), etc.

like image 85
alexis Avatar answered Nov 14 '22 23:11

alexis