This repository contains two tutorials that show how to use the Java-- and the Python API for GermaNet. GermaNet is a lexical semantic network that partitions the lexical space in a set of concepts that are interlinked with semantic relations.
The tutorial for the Java API is located in the javaAPI directory. The Java API is located here
The tutorial for the Python API is located in the pythonAPI directory. The Python API can be found here.
The tutorials are provided as interactive jupyter notebooks. That means that you can read the tutorial and run the code snippets in your browser or programming enviroment. You can also change parts of the code and adapt it to your fulfill your purposes. Alternatively you can just read the tutorial online without being able to run the code interactively.
To be able to run the tutorial as a jupyter notebook you have to install jupyter, which can be done with pip:
pip install jupyterlab
or with conda:
conda install -c conda-forge jupyterlab
more detailed information about jupyter can be found here
To be able to use the java tutorial with jupyter you additionally have to install the ijava kernel with jupyter as it is not included in the default installation. To install it, follow the instructions under requirements and installing on this page.
Once you successfully installed the kernel, clone this repository to your local machine and cd into the javaAPI directory:
cd germanetTutorials/javaAPI
There you can enter
jupyter notebook
This should open a new window in your default browser where you can see the tutorial within the jupyter enviroment. Click on it to browse it and run the code.
Clone this repository to your local machine and cd into the pythonAPI directory:
cd germanetTutorials/pythonAPI
There you can enter
jupyter notebook
This should open a new window in your default browser where you can see the tutorial within the jupyter enviroment. Click on it to browse it and run the code.