:- multifile sem/5, id/2. :- discontiguous sem/5, id/2. :- dynamic sem/5, id/2. id(1,1). %%% The events of April through June damaged the respect and confidence which most Americans previously had for the leaders of China . sem(1, [word(1001, 'The'), word(1002, events), word(1003, of), word(1004, 'April'), word(1005, through), word(1006, 'June'), word(1007, damaged), word(1008, the), word(1009, respect), word(1010, and), word(1011, confidence), word(1012, which), word(1013, most), word(1014, 'Americans'), word(1015, previously), word(1016, had), word(1017, for), word(1018, the), word(1019, leaders), word(1020, of), word(1021, 'China'), word(1022, '.')], [pos(1001, 'DT'), pos(1002, 'NNS'), pos(1003, 'IN'), pos(1004, 'NNP'), pos(1005, 'IN'), pos(1006, 'NNP'), pos(1007, 'VBD'), pos(1008, 'DT'), pos(1009, 'NN'), pos(1010, 'CC'), pos(1011, 'NN'), pos(1012, 'WDT'), pos(1013, 'RBS'), pos(1014, 'NNPS'), pos(1015, 'RB'), pos(1016, 'VBD'), pos(1017, 'IN'), pos(1018, 'DT'), pos(1019, 'NNS'), pos(1020, 'IN'), pos(1021, 'NNP'), pos(1022, '.')], [ne(1004, 'I-DAT'), ne(1005, 'I-DAT'), ne(1006, 'I-DAT'), ne(1021, 'I-LOC')], smerge(drs([[1006]:x0, [1001]:x1, [1004, 1005, 1006]:x2, [1008]:x3, [1021]:x4, [1018]:x5], [[1006]:timex(x0, date([]: +, []:'XXXX', [1006]:'06', []:'XX')), [1002]:pred(x1, event, n, 0), [1004]:timex(x2, date([]: +, []:'XXXX', [1004]:'04', []:'XX')), [1005]:rel(x2, x0, through, 0), [1003]:rel(x1, x2, of, 0), [1010]:or(drs([], [[1009]:pred(x3, respect, n, 0)]), drs([], [[1011]:pred(x3, confidence, n, 0)])), [1021]:named(x4, china, loc, 0), [1019]:pred(x5, leader, n, 0), [1020]:rel(x5, x4, of, 0)]), drs([[1013, 1014]:x6, [1016]:x7, [1007]:x8], [[1016]:pred(x7, have, v, 0), [1016]:rel(x7, x6, agent, 0), [1016]:rel(x7, x3, patient, 0), [1014]:named(x6, americans, nam, 0), [1015]:pred(x7, previously, a, 0), []:pred(x7, event, n, 1), [1017]:rel(x7, x5, for, 0), [1007]:pred(x8, damage, v, 0), []:pred(x8, event, n, 1), [1007]:rel(x8, x1, agent, 0), [1007]:rel(x8, x3, patient, 0)])) ). %%% ______________________________________ _________________________ %%% | x0 x1 x2 x3 x4 x5 | | x6 x7 x8 | %%% |______________________________________| |_________________________| %%% (| timex(x0)=XXXX06XX |+| have(x7) |) %%% | event(x1) | | agent(x7,x6) | %%% | timex(x2)=XXXX04XX | | patient(x7,x3) | %%% | through(x2,x0) | | named(x6,americans,nam) | %%% | of(x1,x2) | | previously(x7) | %%% | _____________ ________________ | | event(x7) | %%% | | | | | | | for(x7,x5) | %%% | |_____________| |________________| | | damage(x8) | %%% | | respect(x3) | V | confidence(x3) | | | event(x8) | %%% | |_____________| |________________| | | agent(x8,x1) | %%% | named(x4,china,loc) | | patient(x8,x3) | %%% | leader(x5) | |_________________________| %%% | of(x5,x4) | %%% |______________________________________|