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

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.

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.0.tar.gz (23.5 kB view details)

Uploaded Source

Built Distribution

germanetpy-0.2.0-py3-none-any.whl (52.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: germanetpy-0.2.0.tar.gz
  • Upload date:
  • Size: 23.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5

File hashes

Hashes for germanetpy-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b477514842b4f6600a49c754d62e71d92130629b50d65b9bae38137c8a5acafb
MD5 d330cf57b423c24a91178662187fa5a3
BLAKE2b-256 72dc7af58165308c0e9dab887d461110ba086cc9f5ce230afda024db5a2008e6

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: germanetpy-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 52.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.5

File hashes

Hashes for germanetpy-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6683277c6dd45835231160bbd4d75f7c46f7ccb70854dab43dce15a3701ce8d6
MD5 26cfc9444eb3d642f8385da89e9f6452
BLAKE2b-256 abe20bc83482c967a2929e61771b06872fd62fe855bda78bd80c1388f43f3095

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