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
Metadata
Release files for germanetpy 0.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| germanetpy-0.2.5.tar.gz | 38.3 kB | Without provenance | Details for germanetpy-0.2.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| germanetpy-0.2.5-py3-none-any.whl | Python 3 | none | any | Details for germanetpy-0.2.5-py3-none-any.whl |
Total release size: 72.2 kB
Release files / germanetpy-0.2.5.tar.gz
| Download URL | germanetpy-0.2.5.tar.gz |
|---|---|
| Size | 38.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d652dc67daeb34f8d3aaba0516bb18de3e290be6f7e4802a8d589eae367aa17
|
|
BLAKE2b-256 checksum How to use checksums |
37e5cd3a01adab5b3f1707b64587a6c67d256a6c91fce0fef799c25c36a9b9a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.7
|
Release files / germanetpy-0.2.5-py3-none-any.whl
| Download URL | germanetpy-0.2.5-py3-none-any.whl |
|---|---|
| Size | 33.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0ebf7e3a3f79522574b33163b6280a585f6408e444ddfa4e8a42fc7d1bca9023
|
|
BLAKE2b-256 checksum How to use checksums |
9f95b3b9f396f3aaec3cd7cb83978e473786f21f9e1dd16ba100a46b97e40fc4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.7
|
Security for germanetpy 0.2.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.