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]))]).
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:Hint:
runape.plcontains lots of useful hacks into APE. To do my own processing, I first remove the annotations Pred-NumLine/NumToken to Pred.