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:
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:
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 [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
Built Distribution
File details
Details for the file germanetpy-0.1.2.tar.gz
.
File metadata
- Download URL: germanetpy-0.1.2.tar.gz
- Upload date:
- Size: 23.6 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5af2a91a770347da694ac95af31a4a6b4851486a9546e027d212e29b0f9f33e9 |
|
MD5 | c7c117f689600182d8c0ddfdd9680413 |
|
BLAKE2b-256 | ee2816425e21f91c8103da7cbe889f7cc335fa1f3522b7b82db07abe569326f6 |
Provenance
File details
Details for the file germanetpy-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: germanetpy-0.1.2-py3-none-any.whl
- Upload date:
- Size: 52.9 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 294ca71cc77820b0780540347bc025ebad4c3656c0a87f3b730242e34050b232 |
|
MD5 | 46e754f15d44d2d31e6acb17b8164b7e |
|
BLAKE2b-256 | 1d441d95d2b66c10e671934fa9df2a8d0b593a973d9ad9bf3345e896889a46f9 |