Download this NB from https://gatenlp.github.io/python-gatenlp/german-stanza.ipynb
Requirements:
pip install ipykernel ipython notebook gatenlp stanza
from gatenlp import Document
import stanza
from gatenlp.lib_stanza import apply_stanza
from IPython.display import display
text = """
Die Meinung der LehrerInnen ist uns wichtig.
"""
doc = Document(text)
# If necessary, first download the Stanza model (uncomment)
# stanza.download("de")
# Load the german stanza model
nlp = stanza.Pipeline(lang="de", use_gpu=False)
# Run stanza on the gatenlp document and convert annotations to gatenlp representation
doc = apply_stanza(nlp, doc)
# Show the annotated document
display(doc)