delph-in / pydelphin

Python libraries for DELPH-IN
https://pydelphin.readthedocs.io/
MIT License
79 stars 27 forks source link

Getting completely different results with a similar setup #326

Closed haveamission closed 3 years ago

haveamission commented 3 years ago

I am using the same compiled Zhong grammar on Ace .9.30 and PyDelphin 1.2.4 (I will eventually update them, but I think that would just add more steps into solving this problem in the interim).

When I am trying to parse something locally, I get this:

Response({'NOTES': [], 'WARNINGS': [], 'ERRORS': [], 'run': {'run-id': 0, 'application': 'ACE 0.9.30 via PyDelphin v1.2.4', 'environment': '-n 50 --tsdb-notes --tsdb-stdout --report-labels', 'user': 'andy', 'host': '0587429694.wireless.umich.net', 'os': 'Darwin-19.6.0-x86_64-i386-64bit', 'start': datetime.datetime(2021, 5, 11, 15, 49, 34, 555511), 'platform': 'gcc 8.2', 'grammar': 'Zhong-zhs (2018-03-30)', 'avms': 2844, 'lexicon': 38252, 'lrules': 4, 'rules': 54}, 'input': '狗 叫 了', 'surface': None, 'results': [{'result-id': 0, 'derivation': '(618 filler-head 0.000000 0 3 (614 bare-np 0.000000 0 1 (10 狗_n_1 0.000000 0 1 ("狗" 7 "token [ +FORM \\"狗\\" +FROM \\"0\\" +TO \\"1\\" +ID diff-list [ LIST cons [ FIRST \\"0\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"狗\\" ]"))) (617 opt-subj-decl 0.000000 1 3 (616 extracted-comp 0.000000 1 3 (615 comp-marker 0.000000 1 3 (11 叫_v_3 0.000000 1 2 ("叫" 8 "token [ +FORM \\"叫\\" +FROM \\"2\\" +TO \\"3\\" +ID diff-list [ LIST cons [ FIRST \\"1\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"叫\\" ]")) (18 了_pfv 0.000000 2 3 ("了" 9 "token [ +FORM \\"了\\" +FROM \\"4\\" +TO \\"5\\" +ID diff-list [ LIST cons [ FIRST \\"2\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"了\\" ]"))))))', 'mrs': '[ LTOP: h0 INDEX: e2 [ e SF: prop-or-ques E.ASPECT: perfective ] RELS: < [ "_狗_n_1_rel"<0:1> LBL: h4 ARG0: x5 [ x SPECI: + SF: prop COG-ST: activ-or-less PNG.PERNUM: pernum PNG.GENDER: gender PNG.ANIMACY: animacy ] ] [ exist_q_rel<0:1> LBL: h6 ARG0: x5 RSTR: h7 BODY: h8 ] [ "_叫_v_3_rel"<2:3> LBL: h1 ARG0: e2 ARG1: x3 [ x SPECI: bool SF: prop COG-ST: in-foc PNG.PERNUM: pernum PNG.GENDER: gender PNG.ANIMACY: animacy ] ARG2: x5 ] > HCONS: < h0 qeq h1 h7 qeq h4 > ICONS: < e2 non-focus x3 e2 topic x5 > ]', 'tree': '("S" ("NP" ("N" ("狗"))) ("S/NP" ("VP" ("V" ("V" ("叫")) ("AS" ("了"))))))', 'flags': [(':ascore', 0.0), (':probability', 0.083333)]}, {'result-id': 1, 'derivation': '(627 filler-head 0.000000 0 3 (614 bare-np 0.000000 0 1 (10 狗_n_1 0.000000 0 1 ("狗" 7 "token [ +FORM \\"狗\\" +FROM \\"0\\" +TO \\"1\\" +ID diff-list [ LIST cons [ FIRST \\"0\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"狗\\" ]"))) (626 opt-subj-decl 0.000000 1 3 (625 extracted-comp 0.000000 1 3 (624 opt-comp 0.000000 1 3 (623 comp-marker 0.000000 1 3 (14 叫_v_6 0.000000 1 2 ("叫" 8 "token [ +FORM \\"叫\\" +FROM \\"2\\" +TO \\"3\\" +ID diff-list [ LIST cons [ FIRST \\"1\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"叫\\" ]")) (18 了_pfv 0.000000 2 3 ("了" 9 "token [ +FORM \\"了\\" +FROM \\"4\\" +TO \\"5\\" +ID diff-list [ LIST cons [ FIRST \\"2\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"了\\" ]")))))))', 'mrs': '[ LTOP: h0 INDEX: e2 [ e SF: prop-or-ques E.ASPECT: perfective ] RELS: < [ "_狗_n_1_rel"<0:1> LBL: h4 ARG0: x5 [ x SPECI: + SF: prop COG-ST: activ-or-less PNG.PERNUM: pernum PNG.GENDER: gender PNG.ANIMACY: animacy ] ] [ exist_q_rel<0:1> LBL: h6 ARG0: x5 RSTR: h7 BODY: h8 ] [ "_叫_v_6_rel"<2:3> LBL: h1 ARG0: e2 ARG1: x3 [ x SPECI: bool SF: prop COG-ST: in-foc PNG.PERNUM: pernum PNG.GENDER: gender PNG.ANIMACY: animacy ] ARG2: x9 [ x SPECI: bool SF: prop COG-ST: cog-st PNG.PERNUM: pernum PNG.GENDER: gender PNG.ANIMACY: animacy ] ARG3: x5 ] > HCONS: < h0 qeq h1 h7 qeq h4 > ICONS: < e2 non-focus x9 e2 non-focus x3 e2 topic x5 > ]', 'tree': '("S" ("NP" ("N" ("狗"))) ("S/NP" ("VP" ("V" ("V" ("V" ("叫")) ("AS" ("了")))))))', 'flags': [(':ascore', 0.0), (':probability', 0.083333)]}, {'result-id': 2, 'derivation': '(644 comp-marker 0.000000 0 3 (643 subj-head 0.000000 0 2 (639 bare-np 0.000000 0 1 (10 狗_n_1 0.000000 0 1 ("狗" 7 "token [ +FORM \\"狗\\" +FROM \\"0\\" +TO \\"1\\" +ID diff-list [ LIST cons [ FIRST \\"0\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"狗\\" ]"))) (642 opt-comp 0.000000 1 2 (11 叫_v_3 0.000000 1 2 ("叫" 8 "token [ +FORM \\"叫\\" +FROM \\"2\\" +TO \\"3\\" +ID diff-list [ LIST cons [ FIRST \\"1\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"叫\\" ]")))) (19 了_crs 0.000000 2 3 ("了" 9 "token [ +FORM \\"了\\" +FROM \\"4\\" +TO \\"5\\" +ID diff-list [ LIST cons [ FIRST \\"2\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"了\\" ]")))', 'mrs': '[ LTOP: h0 INDEX: e2 [ e SF: prop-or-ques E.ASPECT: non-aspect ] RELS: < [ "_狗_n_1_rel"<0:1> LBL: h4 ARG0: x3 [ x SPECI: + SF: prop COG-ST: activ-or-less PNG.PERNUM: pernum PNG.GENDER: gender PNG.ANIMACY: animacy ] ] [ exist_q_rel<0:1> LBL: h5 ARG0: x3 RSTR: h6 BODY: h7 ] [ "_叫_v_3_rel"<2:3> LBL: h1 ARG0: e2 ARG1: x3 ARG2: x8 [ x SPECI: bool SF: prop COG-ST: cog-st PNG.PERNUM: pernum PNG.GENDER: gender PNG.ANIMACY: animacy ] ] > HCONS: < h0 qeq h1 h6 qeq h4 > ICONS: < e2 non-focus x8 > ]', 'tree': '("S" ("S" ("NP" ("N" ("狗"))) ("VP" ("V" ("叫")))) ("SP" ("了")))', 'flags': [(':ascore', 0.0), (':probability', 0.083333)]}, {'result-id': 3, 'derivation': '(649 comp-marker 0.000000 0 3 (648 filler-head 0.000000 0 2 (645 bare-np 0.000000 0 1 (10 狗_n_1 0.000000 0 1 ("狗" 7 "token [ +FORM \\"狗\\" +FROM \\"0\\" +TO \\"1\\" +ID diff-list [ LIST cons [ FIRST \\"0\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"狗\\" ]"))) (647 opt-subj-decl 0.000000 1 2 (646 extracted-comp 0.000000 1 2 (11 叫_v_3 0.000000 1 2 ("叫" 8 "token [ +FORM \\"叫\\" +FROM \\"2\\" +TO \\"3\\" +ID diff-list [ LIST cons [ FIRST \\"1\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"叫\\" ]"))))) (19 了_crs 0.000000 2 3 ("了" 9 "token [ +FORM \\"了\\" +FROM \\"4\\" +TO \\"5\\" +ID diff-list [ LIST cons [ FIRST \\"2\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"了\\" ]")))', 'mrs': '[ LTOP: h0 INDEX: e2 [ e SF: prop-or-ques E.ASPECT: non-aspect ] RELS: < [ "_狗_n_1_rel"<0:1> LBL: h4 ARG0: x5 [ x SPECI: + SF: prop COG-ST: activ-or-less PNG.PERNUM: pernum PNG.GENDER: gender PNG.ANIMACY: animacy ] ] [ exist_q_rel<0:1> LBL: h6 ARG0: x5 RSTR: h7 BODY: h8 ] [ "_叫_v_3_rel"<2:3> LBL: h1 ARG0: e2 ARG1: x3 [ x SPECI: bool SF: prop COG-ST: in-foc PNG.PERNUM: pernum PNG.GENDER: gender PNG.ANIMACY: animacy ] ARG2: x5 ] > HCONS: < h0 qeq h1 h7 qeq h4 > ICONS: < e2 non-focus x3 e2 topic x5 > ]', 'tree': '("S" ("S" ("NP" ("N" ("狗"))) ("S/NP" ("VP" ("V" ("叫"))))) ("SP" ("了")))', 'flags': [(':ascore', 0.0), (':probability', 0.083333)]}, {'result-id': 4, 'derivation': '(641 comp-marker 0.000000 0 3 (640 subj-head 0.000000 0 2 (639 bare-np 0.000000 0 1 (10 狗_n_1 0.000000 0 1 ("狗" 7 "token [ +FORM \\"狗\\" +FROM \\"0\\" +TO \\"1\\" +ID diff-list [ LIST cons [ FIRST \\"0\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"狗\\" ]"))) (15 叫_v_2 0.000000 1 2 ("叫" 8 "token [ +FORM \\"叫\\" +FROM \\"2\\" +TO \\"3\\" +ID diff-list [ LIST cons [ FIRST \\"1\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"叫\\" ]"))) (19 了_crs 0.000000 2 3 ("了" 9 "token [ +FORM \\"了\\" +FROM \\"4\\" +TO \\"5\\" +ID diff-list [ LIST cons [ FIRST \\"2\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"了\\" ]")))', 'mrs': '[ LTOP: h0 INDEX: e2 [ e SF: prop-or-ques E.ASPECT: non-aspect ] RELS: < [ "_狗_n_1_rel"<0:1> LBL: h4 ARG0: x3 [ x SPECI: + SF: prop COG-ST: activ-or-less PNG.PERNUM: pernum PNG.GENDER: gender PNG.ANIMACY: animacy ] ] [ exist_q_rel<0:1> LBL: h5 ARG0: x3 RSTR: h6 BODY: h7 ] [ "_叫_v_2_rel"<2:3> LBL: h1 ARG0: e2 ARG1: x3 ] > HCONS: < h0 qeq h1 h6 qeq h4 > ICONS: < > ]', 'tree': '("S" ("S" ("NP" ("N" ("狗"))) ("VP" ("叫"))) ("SP" ("了")))', 'flags': [(':ascore', 0.0), (':probability', 0.083333)]}, {'result-id': 5, 'derivation': '(662 comp-marker 0.000000 0 3 (657 filler-head 0.000000 0 2 (645 bare-np 0.000000 0 1 (10 狗_n_1 0.000000 0 1 ("狗" 7 "token [ +FORM \\"狗\\" +FROM \\"0\\" +TO \\"1\\" +ID diff-list [ LIST cons [ FIRST \\"0\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"狗\\" ]"))) (656 opt-subj-decl 0.000000 1 2 (655 extracted-comp 0.000000 1 2 (654 opt-comp 0.000000 1 2 (14 叫_v_6 0.000000 1 2 ("叫" 8 "token [ +FORM \\"叫\\" +FROM \\"2\\" +TO \\"3\\" +ID diff-list [ LIST cons [ FIRST \\"1\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"叫\\" ]")))))) (19 了_crs 0.000000 2 3 ("了" 9 "token [ +FORM \\"了\\" +FROM \\"4\\" +TO \\"5\\" +ID diff-list [ LIST cons [ FIRST \\"2\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"了\\" ]")))', 'mrs': '[ LTOP: h0 INDEX: e2 [ e SF: prop-or-ques E.ASPECT: non-aspect ] RELS: < [ "_狗_n_1_rel"<0:1> LBL: h4 ARG0: x5 [ x SPECI: + SF: prop COG-ST: activ-or-less PNG.PERNUM: pernum PNG.GENDER: gender PNG.ANIMACY: animacy ] ] [ exist_q_rel<0:1> LBL: h6 ARG0: x5 RSTR: h7 BODY: h8 ] [ "_叫_v_6_rel"<2:3> LBL: h1 ARG0: e2 ARG1: x3 [ x SPECI: bool SF: prop COG-ST: in-foc PNG.PERNUM: pernum PNG.GENDER: gender PNG.ANIMACY: animacy ] ARG2: x9 [ x SPECI: bool SF: prop COG-ST: cog-st PNG.PERNUM: pernum PNG.GENDER: gender PNG.ANIMACY: animacy ] ARG3: x5 ] > HCONS: < h0 qeq h1 h7 qeq h4 > ICONS: < e2 non-focus x9 e2 non-focus x3 e2 topic x5 > ]', 'tree': '("S" ("S" ("NP" ("N" ("狗"))) ("S/NP" ("VP" ("V" ("V" ("叫")))))) ("SP" ("了")))', 'flags': [(':ascore', 0.0), (':probability', 0.083333)]}, {'result-id': 6, 'derivation': '(622 subj-head 0.000000 0 3 (619 bare-np 0.000000 0 1 (10 狗_n_1 0.000000 0 1 ("狗" 7 "token [ +FORM \\"狗\\" +FROM \\"0\\" +TO \\"1\\" +ID diff-list [ LIST cons [ FIRST \\"0\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"狗\\" ]"))) (621 opt-comp 0.000000 1 3 (620 comp-marker 0.000000 1 3 (11 叫_v_3 0.000000 1 2 ("叫" 8 "token [ +FORM \\"叫\\" +FROM \\"2\\" +TO \\"3\\" +ID diff-list [ LIST cons [ FIRST \\"1\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"叫\\" ]")) (18 了_pfv 0.000000 2 3 ("了" 9 "token [ +FORM \\"了\\" +FROM \\"4\\" +TO \\"5\\" +ID diff-list [ LIST cons [ FIRST \\"2\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"了\\" ]")))))', 'mrs': '[ LTOP: h0 INDEX: e2 [ e SF: prop-or-ques E.ASPECT: perfective ] RELS: < [ "_狗_n_1_rel"<0:1> LBL: h4 ARG0: x3 [ x SPECI: + SF: prop COG-ST: activ-or-less PNG.PERNUM: pernum PNG.GENDER: gender PNG.ANIMACY: animacy ] ] [ exist_q_rel<0:1> LBL: h5 ARG0: x3 RSTR: h6 BODY: h7 ] [ "_叫_v_3_rel"<2:3> LBL: h1 ARG0: e2 ARG1: x3 ARG2: x8 [ x SPECI: bool SF: prop COG-ST: cog-st PNG.PERNUM: pernum PNG.GENDER: gender PNG.ANIMACY: animacy ] ] > HCONS: < h0 qeq h1 h6 qeq h4 > ICONS: < e2 non-focus x8 > ]', 'tree': '("S" ("NP" ("N" ("狗"))) ("VP" ("V" ("V" ("叫")) ("AS" ("了")))))', 'flags': [(':ascore', 0.0), (':probability', 0.083333)]}, {'result-id': 7, 'derivation': '(636 subj-head 0.000000 0 3 (619 bare-np 0.000000 0 1 (10 狗_n_1 0.000000 0 1 ("狗" 7 "token [ +FORM \\"狗\\" +FROM \\"0\\" +TO \\"1\\" +ID diff-list [ LIST cons [ FIRST \\"0\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"狗\\" ]"))) (635 opt-comp 0.000000 1 3 (634 opt-comp 0.000000 1 3 (633 comp-marker 0.000000 1 3 (14 叫_v_6 0.000000 1 2 ("叫" 8 "token [ +FORM \\"叫\\" +FROM \\"2\\" +TO \\"3\\" +ID diff-list [ LIST cons [ FIRST \\"1\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"叫\\" ]")) (18 了_pfv 0.000000 2 3 ("了" 9 "token [ +FORM \\"了\\" +FROM \\"4\\" +TO \\"5\\" +ID diff-list [ LIST cons [ FIRST \\"2\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"了\\" ]"))))))', 'mrs': '[ LTOP: h0 INDEX: e2 [ e SF: prop-or-ques E.ASPECT: perfective ] RELS: < [ "_狗_n_1_rel"<0:1> LBL: h4 ARG0: x3 [ x SPECI: + SF: prop COG-ST: activ-or-less PNG.PERNUM: pernum PNG.GENDER: gender PNG.ANIMACY: animacy ] ] [ exist_q_rel<0:1> LBL: h5 ARG0: x3 RSTR: h6 BODY: h7 ] [ "_叫_v_6_rel"<2:3> LBL: h1 ARG0: e2 ARG1: x3 ARG2: x8 [ x SPECI: bool SF: prop COG-ST: cog-st PNG.PERNUM: pernum PNG.GENDER: gender PNG.ANIMACY: animacy ] ARG3: x9 [ x SPECI: bool SF: prop COG-ST: cog-st PNG.PERNUM: pernum PNG.GENDER: gender PNG.ANIMACY: animacy ] ] > HCONS: < h0 qeq h1 h6 qeq h4 > ICONS: < e2 non-focus x8 e2 non-focus x9 > ]', 'tree': '("S" ("NP" ("N" ("狗"))) ("VP" ("V" ("V" ("V" ("叫")) ("AS" ("了"))))))', 'flags': [(':ascore', 0.0), (':probability', 0.083333)]}, {'result-id': 8, 'derivation': '(663 comp-marker 0.000000 0 3 (661 filler-head 0.000000 0 2 (645 bare-np 0.000000 0 1 (10 狗_n_1 0.000000 0 1 ("狗" 7 "token [ +FORM \\"狗\\" +FROM \\"0\\" +TO \\"1\\" +ID diff-list [ LIST cons [ FIRST \\"0\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"狗\\" ]"))) (660 opt-subj-decl 0.000000 1 2 (659 opt-comp 0.000000 1 2 (658 extracted-comp 0.000000 1 2 (14 叫_v_6 0.000000 1 2 ("叫" 8 "token [ +FORM \\"叫\\" +FROM \\"2\\" +TO \\"3\\" +ID diff-list [ LIST cons [ FIRST \\"1\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"叫\\" ]")))))) (19 了_crs 0.000000 2 3 ("了" 9 "token [ +FORM \\"了\\" +FROM \\"4\\" +TO \\"5\\" +ID diff-list [ LIST cons [ FIRST \\"2\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"了\\" ]")))', 'mrs': '[ LTOP: h0 INDEX: e2 [ e SF: prop-or-ques E.ASPECT: non-aspect ] RELS: < [ "_狗_n_1_rel"<0:1> LBL: h4 ARG0: x5 [ x SPECI: + SF: prop COG-ST: activ-or-less PNG.PERNUM: pernum PNG.GENDER: gender PNG.ANIMACY: animacy ] ] [ exist_q_rel<0:1> LBL: h6 ARG0: x5 RSTR: h7 BODY: h8 ] [ "_叫_v_6_rel"<2:3> LBL: h1 ARG0: e2 ARG1: x3 [ x SPECI: bool SF: prop COG-ST: in-foc PNG.PERNUM: pernum PNG.GENDER: gender PNG.ANIMACY: animacy ] ARG2: x5 ARG3: x9 [ x SPECI: bool SF: prop COG-ST: cog-st PNG.PERNUM: pernum PNG.GENDER: gender PNG.ANIMACY: animacy ] ] > HCONS: < h0 qeq h1 h7 qeq h4 > ICONS: < e2 non-focus x9 e2 non-focus x3 e2 topic x5 > ]', 'tree': '("S" ("S" ("NP" ("N" ("狗"))) ("S/NP" ("VP" ("V" ("V" ("叫")))))) ("SP" ("了")))', 'flags': [(':ascore', 0.0), (':probability', 0.083333)]}, {'result-id': 9, 'derivation': '(638 subj-head 0.000000 0 3 (619 bare-np 0.000000 0 1 (10 狗_n_1 0.000000 0 1 ("狗" 7 "token [ +FORM \\"狗\\" +FROM \\"0\\" +TO \\"1\\" +ID diff-list [ LIST cons [ FIRST \\"0\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"狗\\" ]"))) (637 comp-marker 0.000000 1 3 (15 叫_v_2 0.000000 1 2 ("叫" 8 "token [ +FORM \\"叫\\" +FROM \\"2\\" +TO \\"3\\" +ID diff-list [ LIST cons [ FIRST \\"1\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"叫\\" ]")) (18 了_pfv 0.000000 2 3 ("了" 9 "token [ +FORM \\"了\\" +FROM \\"4\\" +TO \\"5\\" +ID diff-list [ LIST cons [ FIRST \\"2\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"了\\" ]"))))', 'mrs': '[ LTOP: h0 INDEX: e2 [ e SF: prop-or-ques E.ASPECT: perfective ] RELS: < [ "_狗_n_1_rel"<0:1> LBL: h4 ARG0: x3 [ x SPECI: + SF: prop COG-ST: activ-or-less PNG.PERNUM: pernum PNG.GENDER: gender PNG.ANIMACY: animacy ] ] [ exist_q_rel<0:1> LBL: h5 ARG0: x3 RSTR: h6 BODY: h7 ] [ "_叫_v_2_rel"<2:3> LBL: h1 ARG0: e2 ARG1: x3 ] > HCONS: < h0 qeq h1 h6 qeq h4 > ICONS: < > ]', 'tree': '("S" ("NP" ("N" ("狗"))) ("VP" ("VP" ("叫")) ("AS" ("了"))))', 'flags': [(':ascore', 0.0), (':probability', 0.083333)]}, {'result-id': 10, 'derivation': '(632 filler-head 0.000000 0 3 (614 bare-np 0.000000 0 1 (10 狗_n_1 0.000000 0 1 ("狗" 7 "token [ +FORM \\"狗\\" +FROM \\"0\\" +TO \\"1\\" +ID diff-list [ LIST cons [ FIRST \\"0\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"狗\\" ]"))) (631 opt-subj-decl 0.000000 1 3 (630 opt-comp 0.000000 1 3 (629 extracted-comp 0.000000 1 3 (628 comp-marker 0.000000 1 3 (14 叫_v_6 0.000000 1 2 ("叫" 8 "token [ +FORM \\"叫\\" +FROM \\"2\\" +TO \\"3\\" +ID diff-list [ LIST cons [ FIRST \\"1\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"叫\\" ]")) (18 了_pfv 0.000000 2 3 ("了" 9 "token [ +FORM \\"了\\" +FROM \\"4\\" +TO \\"5\\" +ID diff-list [ LIST cons [ FIRST \\"2\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"了\\" ]")))))))', 'mrs': '[ LTOP: h0 INDEX: e2 [ e SF: prop-or-ques E.ASPECT: perfective ] RELS: < [ "_狗_n_1_rel"<0:1> LBL: h4 ARG0: x5 [ x SPECI: + SF: prop COG-ST: activ-or-less PNG.PERNUM: pernum PNG.GENDER: gender PNG.ANIMACY: animacy ] ] [ exist_q_rel<0:1> LBL: h6 ARG0: x5 RSTR: h7 BODY: h8 ] [ "_叫_v_6_rel"<2:3> LBL: h1 ARG0: e2 ARG1: x3 [ x SPECI: bool SF: prop COG-ST: in-foc PNG.PERNUM: pernum PNG.GENDER: gender PNG.ANIMACY: animacy ] ARG2: x5 ARG3: x9 [ x SPECI: bool SF: prop COG-ST: cog-st PNG.PERNUM: pernum PNG.GENDER: gender PNG.ANIMACY: animacy ] ] > HCONS: < h0 qeq h1 h7 qeq h4 > ICONS: < e2 non-focus x9 e2 non-focus x3 e2 topic x5 > ]', 'tree': '("S" ("NP" ("N" ("狗"))) ("S/NP" ("VP" ("V" ("V" ("V" ("叫")) ("AS" ("了")))))))', 'flags': [(':ascore', 0.0), (':probability', 0.083333)]}, {'result-id': 11, 'derivation': '(653 comp-marker 0.000000 0 3 (652 subj-head 0.000000 0 2 (639 bare-np 0.000000 0 1 (10 狗_n_1 0.000000 0 1 ("狗" 7 "token [ +FORM \\"狗\\" +FROM \\"0\\" +TO \\"1\\" +ID diff-list [ LIST cons [ FIRST \\"0\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"狗\\" ]"))) (651 opt-comp 0.000000 1 2 (650 opt-comp 0.000000 1 2 (14 叫_v_6 0.000000 1 2 ("叫" 8 "token [ +FORM \\"叫\\" +FROM \\"2\\" +TO \\"3\\" +ID diff-list [ LIST cons [ FIRST \\"1\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"叫\\" ]"))))) (19 了_crs 0.000000 2 3 ("了" 9 "token [ +FORM \\"了\\" +FROM \\"4\\" +TO \\"5\\" +ID diff-list [ LIST cons [ FIRST \\"2\\" REST list ] LAST list ] +POS pos [ +TAGS null +PRBS null ] +CLASS non_ne [ +INITIAL luk ] +TRAIT token_trait +PRED predsort +CARG \\"了\\" ]")))', 'mrs': '[ LTOP: h0 INDEX: e2 [ e SF: prop-or-ques E.ASPECT: non-aspect ] RELS: < [ "_狗_n_1_rel"<0:1> LBL: h4 ARG0: x3 [ x SPECI: + SF: prop COG-ST: activ-or-less PNG.PERNUM: pernum PNG.GENDER: gender PNG.ANIMACY: animacy ] ] [ exist_q_rel<0:1> LBL: h5 ARG0: x3 RSTR: h6 BODY: h7 ] [ "_叫_v_6_rel"<2:3> LBL: h1 ARG0: e2 ARG1: x3 ARG2: x8 [ x SPECI: bool SF: prop COG-ST: cog-st PNG.PERNUM: pernum PNG.GENDER: gender PNG.ANIMACY: animacy ] ARG3: x9 [ x SPECI: bool SF: prop COG-ST: cog-st PNG.PERNUM: pernum PNG.GENDER: gender PNG.ANIMACY: animacy ] ] > HCONS: < h0 qeq h1 h6 qeq h4 > ICONS: < e2 non-focus x8 e2 non-focus x9 > ]', 'tree': '("S" ("S" ("NP" ("N" ("狗"))) ("VP" ("V" ("V" ("叫"))))) ("SP" ("了")))', 'flags': [(':ascore', 0.0), (':probability', 0.083333)]}], 'ninputs': 3, 'tokens': {'initial': '(1, 0, 1, <0:1>, 1, "狗", 0, "null") (2, 1, 2, <2:3>, 1, "叫", 0, "null") (3, 2, 3, <4:5>, 1, "了", 0, "null")', 'internal': '(7, 0, 1, <0:1>, 1, "狗", 0, "null") (8, 1, 2, <2:3>, 1, "叫", 0, "null") (9, 2, 3, <4:5>, 1, "了", 0, "null")'}, 'copies': 498, 'unifications': 5150, 'ntokens': 3, 'readings': 12, 'pedges': 94, 'aedges': 360, 'total': 18, 'treal': 361, 'tcpu': 18, 'others': 5523632})

Quite a long response.

However when I try this on my Linux server (inside a Kubernetes cluster), I get this:

Response({'NOTES': [], 'WARNINGS': [], 'ERRORS': [], 'run': {'run-id': 0, 'application': 'ACE 0.9.30 via PyDelphin v1.2.4', 'environment': '-n 50 --tsdb-notes --tsdb-stdout --report-labels', 'user': 'root', 'host': 'pandaist-main-84447889fb-mxdtn', 'os': 'Linux-4.19.0-11-amd64-x86_64-with-debian-10.9', 'start': datetime.datetime(2021, 5, 11, 19, 51, 22, 851625), 'platform': 'gcc 4.2', 'grammar': 'Zhong-zhs (2018-03-30)', 'avms': 2844, 'lexicon': 38252, 'lrules': 4, 'rules': 54}, 'input': '狗 叫 了', 'surface': None, 'results': [], 'ninputs': 3, 'tokens': {'initial': '(1, 0, 1, <0:1>, 1, "狗", 0, "null") (2, 1, 2, <2:3>, 1, "叫", 0, "null") (3, 2, 3, <4:5>, 1, "了", 0, "null")'}})

The code used to generate this is exactly the same:

from delphin import ace
import os
from subprocess import (
PIPE
)
zhs = os.path.join('./', 'zhs.dat')
parse_string = "狗 叫 了"
parser = ace.ACEParser(zhs, cmdargs=['-n', '50'], stderr=PIPE)
tree = parser.interact(parse_string)
print(tree)

I am using the Linux version of Ace rather than the MacOS version, like on my local machine.

But the grammars are absolutely the same - I used the same grammar file in both locations.

What might be causing a total lack of results on my server?

I do notice that GCC versions are different - could that be the source of the problem?

I have set my ENV LANG to the correct setting as well.

haveamission commented 3 years ago

It appears upgrading to 9.34 works

goodmami commented 3 years ago

Hi, I'm glad updating cleared things up for you. I also want to respond to this:

I am using the Linux version of Ace rather than the MacOS version, like on my local machine.

But the grammars are absolutely the same - I used the same grammar file in both locations.

I don't think a grammar image compiled on macOS will run on Linux and vice versa. You can compile from the same grammar source, but the compiled image should be recreated on the respective platforms.