Heutiger Testraketenprobierteststart - Stufe 9

Nun wird es (endlich) logisch.

Input

{"sentence":"Heute ging ich durch den Wald, es war gar nicht allzu sehr kalt."}

Output

{"sentence":"Heute ging ich durch den Wald, es war gar nicht allzu sehr kalt.","words":[{"word":"heute","ner":"O","pos":"ADV","lang":"de","index":1,"head":2,"dep":"advmod"},{"word":"ging","ner":"O","pos":"VERB","lang":"de","dep":"root","head":0,"index":2},{"word":"ich","ner":"O","pos":"PRON","lang":"de","index":3,"head":2,"dep":"nsubj"},{"word":"durch","ner":"O","pos":"ADP","lang":"de","index":4,"head":6,"dep":"case"},{"word":"den","ner":"O","pos":"DET","lang":"de","index":5,"head":6,"dep":"det"},{"word":"wald","ner":"O","pos":"NOUN","lang":"de","index":6,"head":2,"dep":"nmod"},{"word":",","ner":"O","pos":"PUNCT","lang":"de","index":7,"head":2,"dep":"punct"},{"word":"es","ner":"O","pos":"PRON","lang":"de","index":8,"head":14,"dep":"nsubj"},{"word":"war","ner":"O","pos":"VERB","lang":"de","index":9,"head":14,"dep":"cop"},{"word":"gar","ner":"O","pos":"ADV","lang":"de","index":10,"head":11,"dep":"advmod"},{"word":"nicht","ner":"O","pos":"PART","lang":"de","index":11,"head":14,"dep":"neg"},{"word":"allzu","ner":"O","pos":"ADJ","lang":"de","index":12,"head":14,"dep":"advmod"},{"word":"sehr","ner":"O","pos":"ADV","lang":"de","index":13,"head":14,"dep":"advmod"},{"word":"kalt","ner":"O","pos":"ADJ","lang":"de","index":14,"head":2,"dep":"parataxis"},{"word":".","ner":"O","sentEnd":true,"pos":"PUNCT","lang":"de","index":15,"head":2,"dep":"punct"}],"entities":[],"deplambda_oblique_tree":"(l-parataxis (l-punct (l-punct (l-nsubj (l-nmod (l-advmod w-2-ging w-1-heute) (l-case (l-det w-6-wald w-5-den) w-4-durch)) w-3-ich) w-7-,) w-15-.) (l-neg (l-nsubj (l-advmod (l-advmod (l-cop w-14-kalt w-9-war) w-12-allzu) w-13-sehr) w-8-es) (l-advmod w-11-nicht w-10-gar)))","deplambda_expression":"(lambda $0:\u003ca,e\u003e (exists:ex $1:\u003ca,e\u003e (and:c (exists:ex $2:\u003ca,e\u003e (and:c (exists:ex $3:\u003ca,e\u003e (and:c (and:c (p_EVENT_w-2-ging:u $0) (p_EVENTMOD_w-1-heute:u $0)) (and:c (and:c (p_TYPE_w-6-wald:u $3) (p_EVENT_w-6-wald:u $3) (p_EVENT.ENTITY_arg0:b $3 $3)) (p_EMPTY:u $3)) (p_EVENT.ENTITY_l-nmod.w-4-durch:b $0 $3))) (p_TYPE_w-3-ich:u $2) (p_EVENT.ENTITY_arg1:b $0 $2))) (exists:ex $4:\u003ca,e\u003e (and:c (exists:ex $5:\u003ca,e\u003e (and:c (and:c (and:c (p_EVENT_w-14-kalt:u $1) (p_TYPEMOD_w-12-allzu:u $1)) (p_EVENTMOD_w-13-sehr:u $1)) (p_TYPE_w-8-es:u $5) (p_EVENT.ENTITY_arg1:b $1 $5))) (and:c (and:c (p_TYPE_w-11-nicht:u $4) (p_EVENT_w-11-nicht:u $4) (p_EVENT.ENTITY_arg0:b $4 $4)) (p_EVENTMOD_w-10-gar:u $4)) (p_EVENT.ENTITY_l-neg:b $1 $4))) (p_EVENT.EVENT_l-parataxis:b $0 $1))))","dependency_lambda":[["es(7:s , 7:x)","gar(9:s , 10:e)","ging.arg1(1:e , 2:x)","ging.nmod.durch(1:e , 5:x)","ging.parataxis(1:e , 13:e)","heute(0:s , 1:e)","ich(2:s , 2:x)","kalt.arg1(13:e , 7:x)","kalt.neg(13:e , 10:x)","nicht(10:s , 10:x)","nicht.arg0(10:e , 10:x)","sehr(12:s , 13:e)","wald(5:s , 5:x)","wald.arg0(5:e , 5:x)"]]}



Bemerkung



Ich gehe davon aus, dass diese bemerkenswerte Arbeit eine fast unschätzbar wertvolle welche ist (zumindest für mich und ein paar andere):

GitHub - sivareddyg/UDepLambda: A framework to convert Universal Dependencies to Logical Forms

Auf einem Windows 10 - Laptop habe ich das Framework nicht zum Laufen gekriegt. Ständig die Fehlermeldung, dass die Hauptklasse nicht gefunden wird (bin durch die ganzen Path- und Classpath-Geschichten nicht gänzlich durchgestiegen, um es dort zum Laufen zu bekommen). Hier auf meinem Ubuntu-Arbeitsboot ist nun alles klar schiff!

Requirements

  • Java 8
  • Ant 1.8.2 or higher

Installation commands

Run the following commands in a terminal:
git clone https://github.com/sivareddyg/UDepLambda.git
cd UDepLambda
git submodule update --init --recursive lib
git submodule update --init --recursive lib_data/ud-models-v1.3
git submodule update --init --recursive lib_data/ud-models-v1.2
ant build 

https://github.com/sivareddyg/UDepLambda

That's schon fast all it needs. Fine, nice, really!
Nun mache ich mir auf der Windows-Maschine Gedanken,
wie ich dem Framework ganze Texte übergeben und den Output weiterverwerten kann.
Das dürfte dann in Stufe 10 oder 11 zur Sprache kommen.
Schau'n mer mal und lasse mer sich überrasche, gell?


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


https://www.youtube.com/playlist?list=PLL1ZJvW8jPWdU8Ga0bZ1YRcYy6ZeD73nN







Kommentare

Beliebte Posts aus diesem Blog

·

Es brennt.

Bye, bye Nord Stream 2!