Skip to content
This repo provides a python module to work with Open Dutch WordNet. It was created using python 3.4.
HTML Python Jupyter Notebook CSS JavaScript Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
html first commit Sep 1, 2015
resources added adjectives May 29, 2019
user_input incorporated manual annotations Jan 25, 2016
Ili conversion.ipynb converted odwn to ili Mar 6, 2017
LICENSE.md added own export Oct 27, 2015
README.md Update README.md Jul 13, 2016
__init__.py changed version 1.3 Nov 20, 2015
annotate.sh added method for annotation Sep 4, 2015
base_concepts.py first commit Sep 1, 2015
citation.bib added own export Oct 27, 2015
clean.py first commit Sep 1, 2015
configuration.py first commit Sep 1, 2015
create_version_1_1.sh first commit Sep 1, 2015
create_version_1_2.sh first commit Sep 1, 2015
create_virtual_env.sh first commit Sep 1, 2015
enrich_orbn.py added adjectives May 29, 2019
errors.txt add error log Sep 22, 2015
experiment.ipynb added synonym function Jun 27, 2016
gwc2016_odwn13.pdf added documentation Feb 17, 2016
ili_conversion.py converted odwn to ili Feb 11, 2017
install.sh first commit Sep 1, 2015
le.py added method to get synonyms Feb 9, 2016
lemma.py first commit Sep 1, 2015
les.py added synonym function Jun 27, 2016
odwn_documentation.pdf added documentation Feb 17, 2016
orbn.py first commit Sep 1, 2015
orbn.sh first commit Sep 1, 2015
orbn_inspection.py first commit Sep 1, 2015
own.py added own export Oct 27, 2015
relation.py first commit Sep 1, 2015
requirements.txt first commit Sep 1, 2015
slides_gwc2016_odwn13.pdf added documentation Feb 17, 2016
stats.py changed version 1.3 Nov 20, 2015
synonyms.tsv added synonym function Jun 27, 2016
synset.py added method for annotation Sep 4, 2015
synsets.py first commit Sep 1, 2015
unit_test.sh first commit Sep 1, 2015
user_input.py added method for annotation Sep 4, 2015
user_input_test.py added method to get synonyms Feb 9, 2016
version1_1.py first commit Sep 1, 2015
version1_2.py first commit Sep 1, 2015
version1_3.py version 1.3 Nov 30, 2015
wn_grid_parser.py added method to get synonyms Feb 9, 2016

README.md

#Global WordNet Grid LMF parser

This repo provides a python module to work with Open Dutch WordNet. Please first check the Issues to see if your question has already been answered. It was created using python 3.4. The most recent version (1.3) of the resource can be found here. Three pdf files in this repository document the resource:

If you make use of the resource and/or this repository, please cite the following reference:

@InProceedings{Postma:Miltenburg:Segers:Schoen:Vossen:2016, author = "Marten Postma and Emiel van Miltenburg and Roxane Segers and Anneleen Schoen and Piek Vossen", title = "Open {Dutch} {WordNet}", booktitle = "Proceedings of the Eight Global Wordnet Conference", year = 2016, address = "Bucharest, Romania", }

Demo

A demo for word similarity using Open Dutch WordNet can be found here. In the background, this uses the WordNetTools. We encourage to use the module locally when you need to run for many word pairs.

##USAGE AND INSTALL git clone this repository.

The python module 'lxml' is needed. Hopefully, 'pip install lxml' will do the trick. If you prefer using a virtual environment, everything should be installed by calling 'bash install.sh' in the module directory. Don't forget to source your virtual environment each time you use the module.

Epydoc was used to document the code (http://epydoc.sourceforge.net/). The documentation can be found here. The general idea of the module is that it consists of a lot of classes which are inherited by the main class 'Wn_grid_parser'.

python

>>> from OpenDutchWordnet import Wn_grid_parser

#please check the attribute LICENSE before using this module
>>> print(Wn_grid_parser.LICENSE)

#the attribute 'odwn' stores the path to the most recent version
>>>print(Wn_grid_parser.odwn)

#example of how to use module
>>> instance = Wn_grid_parser(Wn_grid_parser.odwn)

>>> le_el = instance.les_find_le("havenplaats-n-1")
>>> le_el.get_id()
'havenplaats-n-1'
>>> le_el.get_lemma()
'havenplaats'
>>> le_el.get_pos()
'noun'
>>> le_el.get_sense_id()
'o_n-109910434'
>>> le_el.get_provenance()
'cdb2.2_Auto'
>>> le_el.get_synset_id()
'eng-30-08633957-n'

>>> synset_el = instance.synsets_find_synset('eng-30-00324560-v')
>>> synset_el.get_id()
'eng-30-00324560-v'
>>> synset_el.get_ili()
'i23355'
>>> relation_el = synset_el.get_relations("has_hyperonym")[0]
>>> relation_el.get_provenance()
'pwn'
>>> relation_el.get_reltype()
'has_hyperonym'
>>> relation_el.get_target()
'eng-30-00322847-v'

##Contact

You can’t perform that action at this time.