Closed MarcusGDaniels closed 3 months ago
mdaniels@daniels:/data/src/work/tmp/delphin$ echo 'Every boy loves a book.' | /data/src/work/tmp/delphin/ace -g /data/src/work/tmp/delphin/erg-2018-x86-64-0.9.34.dat -T
SENT: Every boy loves a book.
[ LTOP: h0 INDEX: e2 [ e SF: prop TENSE: pres MOOD: indicative PROG: - PERF: - ] RELS: < [ _every_q<0:5> LBL: h4 ARG0: x3 [ x PERS: 3 NUM: sg IND: + ] RSTR: h5 BODY: h6 ] [ _boy_n_1<6:9> LBL: h7 ARG0: x3 ] [ _love_v_1<10:15> LBL: h1 ARG0: e2 ARG1: x3 ARG2: x8 [ x PERS: 3 NUM: sg IND: + ] ] [ _a_q<16:17> LBL: h9 ARG0: x8 RSTR: h10 BODY: h11 ] [ _book_n_of<18:23> LBL: h12 ARG0: x8 ARG1: i13 ] > HCONS: < h0 qeq h1 h5 qeq h7 h10 qeq h12 > ICONS: < > ]
[ LTOP: h0 INDEX: e2 [ e SF: prop ] RELS: < [ unknown<0:23> LBL: h1 ARG0: e2 ARG: x4 [ x PERS: 3 NUM: pl IND: + ] ] [ udef_q<0:23> LBL: h5 ARG0: x4 RSTR: h6 BODY: h7 ] [ compound<0:15> LBL: h8 ARG0: e9 [ e SF: prop TENSE: untensed MOOD: indicative PROG: - PERF: - ] ARG1: x4 ARG2: x10 [ x IND: + PT: notpro ] ] [ udef_q<0:9> LBL: h11 ARG0: x10 RSTR: h12 BODY: h13 ] [ _every_a_1<0:5> LBL: h14 ARG0: e15 [ e SF: prop TENSE: untensed MOOD: indicative PROG: bool PERF: - ] ARG1: x10 ] [ _boy_n_1<6:9> LBL: h14 ARG0: x10 ] [ _love_n_of-for<10:15> LBL: h8 ARG0: x4 ARG1: i16 ] [ _a_p_per<16:17> LBL: h8 ARG0: e17 [ e SF: prop TENSE: untensed MOOD: indicative PROG: - PERF: - ] ARG1: x4 ARG2: x18 [ x PERS: 3 NUM: sg IND: + ] ] [ udef_q<16:17> LBL: h19 ARG0: x18 RSTR: h20 BODY: h21 ] [ _book_n_of<18:23> LBL: h22 ARG0: x18 ARG1: i23 ] > HCONS: < h0 qeq h1 h6 qeq h8 h12 qeq h14 h20 qeq h22 > ICONS: < > ]
[ LTOP: h0 INDEX: e2 [ e SF: prop TENSE: pres MOOD: indicative PROG: - PERF: - ] RELS: < [ _every_q<0:5> LBL: h4 ARG0: x3 [ x PERS: 3 NUM: sg IND: + ] RSTR: h5 BODY: h6 ] [ _boy_n_1<6:9> LBL: h7 ARG0: x3 ] [ _love_v_1<10:15> LBL: h1 ARG0: e2 ARG1: x3 ARG2: h8 ] [ unknown<16:23> LBL: h9 ARG0: e10 [ e SF: prop ] ARG: x11 [ x PERS: 3 NUM: sg IND: + ] ] [ _a_q<16:17> LBL: h12 ARG0: x11 RSTR: h13 BODY: h14 ] [ _book_n_of<18:23> LBL: h15 ARG0: x11 ARG1: i16 ] > HCONS: < h0 qeq h1 h5 qeq h7 h8 qeq h9 h13 qeq h15 > ICONS: < > ]
[ LTOP: h0 INDEX: e2 [ e SF: prop TENSE: pres MOOD: indicative PROG: - PERF: - ] RELS: < [ _every_q<0:5> LBL: h4 ARG0: x3 [ x PERS: 3 NUM: sg IND: + ] RSTR: h5 BODY: h6 ] [ _boy_n_1<6:9> LBL: h7 ARG0: x3 ] [ _love_v_1<10:15> LBL: h1 ARG0: e2 ARG1: x3 ARG2: i8 ] [ mod<16:23> LBL: h1 ARG0: e9 [ e SF: prop TENSE: untensed MOOD: indicative PROG: - PERF: - ] ARG1: e2 ARG2: x10 [ x PERS: 3 NUM: sg IND: + ] ] [ _a_q<16:17> LBL: h11 ARG0: x10 RSTR: h12 BODY: h13 ] [ _book_n_of<18:23> LBL: h14 ARG0: x10 ARG1: i15 ] > HCONS: < h0 qeq h1 h5 qeq h7 h12 qeq h14 > ICONS: < > ]
[ LTOP: h0 INDEX: e2 [ e SF: prop ] RELS: < [ unknown<0:23> LBL: h1 ARG0: e2 ARG: x4 [ x PERS: 3 NUM: pl IND: + ] ] [ udef_q<0:15> LBL: h5 ARG0: x4 RSTR: h6 BODY: h7 ] [ compound<0:15> LBL: h8 ARG0: e9 [ e SF: prop TENSE: untensed MOOD: indicative PROG: - PERF: - ] ARG1: x4 ARG2: x10 [ x IND: + PT: notpro ] ] [ udef_q<0:9> LBL: h11 ARG0: x10 RSTR: h12 BODY: h13 ] [ _every_a_1<0:5> LBL: h14 ARG0: e15 [ e SF: prop TENSE: untensed MOOD: indicative PROG: bool PERF: - ] ARG1: x10 ] [ _boy_n_1<6:9> LBL: h14 ARG0: x10 ] [ _love_n_of-for<10:15> LBL: h8 ARG0: x4 ARG1: i16 ] [ mod<16:23> LBL: h1 ARG0: e2 ARG1: e2 ARG2: x17 [ x PERS: 3 NUM: sg IND: + ] ] [ _a_q<16:17> LBL: h18 ARG0: x17 RSTR: h19 BODY: h20 ] [ _book_n_of<18:23> LBL: h21 ARG0: x17 ARG1: i22 ] > HCONS: < h0 qeq h1 h6 qeq h8 h12 qeq h14 h19 qeq h21 > ICONS: < > ]
NOTE: 5 readings, added 1511 / 415 edges to chart (164 fully instantiated, 106 actives used, 121 passives used) RAM: 5287k
NOTE: parsed 1 / 1 sentences, avg 5287k, time 0.02557s
You probably have to adjust the location of the erg.dat
compiled grammar. See line 30 of Ace/Basic.lean
. In the future, I want to add a configuration type that can be passed as an argument to the run_ace
function.
Please add descriptions in future issues. You can use the proper markdown markup to code blocks. You can also pass the argument -f
to Ace to format the output.
% ace -g ~/r/erg-2023.dat -Tf -n 1
The cat is white
SENT: The cat is white
[ LTOP: h0
INDEX: e2 [ e SF: prop TENSE: pres MOOD: indicative PROG: - PERF: - ]
RELS: < [ _the_q<0:3> LBL: h4 ARG0: x3 [ x PERS: 3 NUM: sg IND: + ] RSTR: h5 BODY: h6 ]
[ _cat_n_1<4:7> LBL: h7 ARG0: x3 ]
[ _white_a_1<11:16> LBL: h1 ARG0: e2 ARG1: x3 ] >
HCONS: < h0 qeq h1 h5 qeq h7 >
ICONS: < > ]
NOTE: 1 readings, added 1217 / 251 edges to chart (103 fully instantiated, 68 actives used, 52 passives used) RAM: 4054k
Let me know if we can close this issue.
I get something a little different. It is not the erg.dat file. I fixed that, of course.
mdaniels@daniels:/data/src/work/tmp/delphin$ ./ace -g ./erg-2018-x86-64-0.9.34.dat -Tf -n 1
The cat is white.
SENT: The cat is white.
[ LTOP: h0
INDEX: e2 [ e SF: prop TENSE: pres MOOD: indicative PROG: - PERF: - ]
RELS: < [ _the_q<0:3> LBL: h4 ARG0: x3 [ x PERS: 3 NUM: sg IND: + ] RSTR: h5 BODY: h6 ]
[ _cat_n_1<4:7> LBL: h7 ARG0: x3 ]
[ _white_a_1<11:17> LBL: h1 ARG0: e2 ARG1: x3 ] >
HCONS: < h0 qeq h1 h5 qeq h7 >
ICONS: < > ]
NOTE: 1 readings, added 1048 / 210 edges to chart (92 fully instantiated, 55 actives used, 46 passives used) RAM: 3351k
NOTE: parsed 1 / 1 sentences, avg 3351k, time 0.40882s
I get nothing returned. Empty list.
In the main branch of my repo, what do you get when you execute:
% lake exe delphin
??
Problem was that utool-3.4.jar wasn't in my branch after forking. Now it is working.
Oh, yes. Sorry. I don't want to add Utool.jar in the repo. I need to add instructions about it.
I added some basic setup instructions. It will be improved later.
even though I changed the Ace binary path and the ERG path to be correct.