Skip to main content

Python API for GermaNet

Project description

germanetpy

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:

https://uni-tuebingen.de/en/142806

Installation

You can install germanetpy from PyPI (https://pypi.org/project/germanetpy/):

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:

https://uni-tuebingen.de/en/142828

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 [https://github.com/Blubberli/germanetpy/blob/master/germanetpy_tutorial.ipynb] 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 https://github.com/Germanet-sfs/germanetTutorials.git

and follow the instructions in the README https://github.com/Germanet-sfs/germanetTutorials

Project details


Download files

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

Source Distribution

germanetpy-0.2.2.tar.gz (28.4 kB view details)

Uploaded Source

Built Distribution

germanetpy-0.2.2-py3-none-any.whl (33.2 kB view details)

Uploaded Python 3

File details

Details for the file germanetpy-0.2.2.tar.gz.

File metadata

  • Download URL: germanetpy-0.2.2.tar.gz
  • Upload date:
  • Size: 28.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.5

File hashes

Hashes for germanetpy-0.2.2.tar.gz
Algorithm Hash digest
SHA256 ef5e8d994dd37493d27b95e7e5f98cb052a5d24b59fbc027b783a72f98ac18d6
MD5 1d1586738f7397f80e2de2051082e96f
BLAKE2b-256 2ad4c185fb3a9ef1c50ea27383d781d1b56bfed4b7a9aa6f84c520fa1e6afbc4

See more details on using hashes here.

Provenance

File details

Details for the file germanetpy-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: germanetpy-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 33.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.5

File hashes

Hashes for germanetpy-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c6cb48d7e17f368a19dd472c0d399980f0bb5e328930f734fa13653a8bba1cb0
MD5 067e1ae76619a531241d3e70e1db1045
BLAKE2b-256 0488adaf7fd3fbc5e7e9ce17a8ff3cf7f4c252d336c48f830b7b81fbb2e143ae

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page