Skip to content

RmrsParaphrasing

FrancisBond edited this page May 23, 2008 · 12 revisions

This page discusses some of the known issues with paraphrasing, with especial reference to (R)MRS. It also tells you how to paraphrase using MRS in the [wiki:LkbTop LKB].

Paraphrasing in the LKB

Put your paraphrasing rules in a file paraphraser.mtr, and load it in the lkb/script file.

;;; transfer rules for paraphrasing
#+:mt
(mt:read-transfer-rules 
 (list
  (lkb-pathname (parent-directory) "paraphraser.mtr"))
 "Paraphrasing Rules"
 :filter nil :task :paraphrase)

Then when you parse something, a menu item Rephrase should appear, and this will apply the paraphrase rules to the selected parse, and then generate.

FIXME: This only works in the CLIM interface for me (FCB) not with LUI.

Paraphrasing rules are done with the same [wiki:TransferRules transfer rules] used in MT and generation. An example is given below. This will paraphrase we gave a demo of the system -> we demoed the system.

give+demo_mtr := light_verb_mtr &
[ INPUT.RELS <! [ PRED "_give_v_1_rel" ],
                [ PRED "_demo_n_rel", ARG1 #arg1 ],
                [ PRED _of_p_sel_rel ], 
                [ PRED _a_q_rel ] !>,
  OUTPUT.RELS <! [ PRED "_demo_v_rel", ARG2 #arg1 ] !> ].
Clone this wiki locally