The goal of this repository is to load Open Dutch WordNet into Python classes as well as compute descriptive statistics.
Python 3.6 was used to create this project. It might work with older versions of Python.
A number of external modules need to be installed, which are listed in requirements.txt. Depending on how you installed Python, you can probably install the requirements using one of following commands:
pip install -r requirements.txtAlso, please download the relevant resources by calling:
bash install.shimport ODWN_reader
senseid_to_sense_obj = ODWN_reader.senseid_to_sense_objsenseid_to_sense_obj is mapping from a sense identifier to a LE object. We included two types of sense identifiers:
- r_: RBN
- c_: Cornetto
The definition of the LE object is found in odwn_classes.LE.
import ODWN_reader
verb_to_phrasal_entries = ODWN_Reader.verb_to_phrasal_entries
verb_to_phrasal_entries conains a mapping from a verb head, e.g., "bieden", to all phrasal entries in RBN that are marked as "phrasal" (morpho_type == 'phrasal').
You can load ORBN in Lemon the following way:
import ODWN_reader
orbn_in_lemon = ODWN_reader.load_orbn_in_lemon(ODWN_reader.orbn_lemon_path)the attribute 'senseid_to_uri' contains the mapping from an ORBN sense id to a URI of the sense.
import ODWN_reader
ODWN_reader.senseid_to_uri- RDF namespace of WordNet 3.0
- synonymy information
- add English information about synset
- it seems that not all English WordNet synsets have an XML element in the LMF file
- Piek Vossen (piek.vossen@vu.nl)
- Marten Postma
This project is licensed under the Apache 2.0 License - see the LICENSE.md file for details