Skip to main content

Python API for GermaNet

Project description


Welcome. This is the Python API for the German wordnet GermaNet. GermaNet is a lexical-semantic net that relates German nouns, verbs, and adjectives semantically by grouping lexical units that express the same concept into synsets and by defining semantic relations between these synsets. This API can be used to extract structured information from the GermaNet with python. More information about GermaNet can be found on the following page:


You can install germanetpy from PyPI (

pip install germanetpy

Get the GermaNet data as XML files and put all files in a data directory. When you use the API to load the data, the path pointing to the directory containing the XML files needs to be specified. The API is supported with Python 3.

How to use

You can read the documentation here

The API provides functionality that can be used to load the data from GermaNet and query it. The data has to be retrieved via a license agreement from the University of Tübingen, Seminar für Sprachwissenschaften:

To use the data for queries you first have to create a Germanet object, which loads the data specified as an argument once. This takes a few seconds:

from germanetpy import germanet

germanet_object = germanet.Germanet(path_to_the_GermaNet_XML_files)

This repository also provides a Tutorial [] that shows how to use the API to query GermaNet. If you want to use the tutorial as an interactive jupyter notebook, clone this repository:

git clone

and follow the instructions in the README

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for germanetpy, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size germanetpy-0.2.1-py3-none-any.whl (54.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size germanetpy-0.2.1.tar.gz (23.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page