Convert DRS to Sentence

85 Views Asked by At

How do you convert Discourse-Repsentation-Structure (DRS) to text Sentence? Here are some DRS samples:

drs([A, B], [object(A, book, countable, na, eq, 1)-1/4, predicate(B, own, named('Peter'), A)-1/2]).
drs([], [question(drs([A, B], [query(A, what)-1/1, predicate(B, own, named('Peter'), A)-1/4]))]).
drs([], [question(drs([A, B], [object(A, book, countable, na, eq, 1)-1/5, predicate(B, own, named('Peter'), A)-1/3]))]).
1

There are 1 best solutions below

7
peter.cyc On BEST ANSWER

You can use

To have ACE text: drs_to_ace(Drs, AceSentenceList) will paraphrase the Drs.

To plain text: drs_to_ascii(Drs, DrsAscii) They are imported from:

:- use_module(utils/drs_to_ace, [drs_to_ace/2]).
:- use_module(utils/drs_to_ascii).

Hint: runape.pl contains lots of useful hacks into APE. To do my own processing, I first remove the annotations Pred-NumLine/NumToken to Pred.