<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hmm - does anyone find the TDL output for the trigger rules
helpful? because, having looked at the code, I would prefer to
remove that facility completely unless it has support, since it's
hardwiring type and feature names into the code. i.e., I would
rather go back to the original behaviour which meant that warning
messages were output (if there were no appropriate existing trigger
rules) without the TDL being suggested. I believe oe may feel the
same way.<br>
<br>
The trigger rule mechanism is a mess, in fact. Learning trigger
rules from parsed/treebanked data is feasible, but too big a
project for me to take on. <br>
<br>
Ann<br>
<br>
<div class="moz-cite-prefix">On 10/02/2016 18:47, Dan Flickinger
wrote:<br>
</div>
<blockquote
cite="mid:BY1PR02MB124439408407155FDF200236BAD70@BY1PR02MB1244.namprd02.prod.outlook.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi Emily -</p>
<p><br>
</p>
<p>I ran into this behavior too when doing the SWB-oriented
grammars for the grammar engineering course I taught with Tom
last quarter. The culprit turns out to be the function
index-lexicon(), which right at its end cheerfully emits those
warning/advice messages for all semantically empty entries
regardless of whether trigger rules have been defined. Since
the same shortcoming is repeated in the separate function
reindex-lexicon(), it proved to be easier for me to correct
this by changing the function make-trigger-tdl() which they
both call, so that the global mt::*transfer-triggers* is
checked before emitting the warning for each semantically
empty lexical entry. Here is the patched version of this
function analogous to what I added to my grammars'
user-fns.lsp file:</p>
<p><br>
</p>
<p>(defun make-trigger-tdl (empty-semantics-lexical-entries)<br>
(let ((empty-no-trigger-entries <br>
(loop for id in empty-semantics-lexical-entries<br>
unless (or #+:mt<br>
(gethash id mt::*transfer-triggers*)<br>
nil)<br>
collect id)))<br>
(loop for x in empty-no-trigger-entries<br>
do<br>
(format t "~%~%~a_gr := generator_rule &<br>
[ CONTEXT.RELS <! [ PRED \"non_existing_rel\" ] !>,<br>
FLAGS.TRIGGER \"~a\" ]." <br>
(string-downcase x) <br>
(string-downcase x)))))</p>
<p><br>
</p>
<p>I expect that Ann or Stephan could see a more elegant way to
achieve this effect, but this patch might be a useful
temporary expedient.<br>
</p>
<br>
<p> Dan</p>
<p><br>
</p>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
color="#000000" face="Calibri, sans-serif"><b>From:</b>
<a class="moz-txt-link-abbreviated" href="mailto:developers-bounces@emmtee.net">developers-bounces@emmtee.net</a>
<a class="moz-txt-link-rfc2396E" href="mailto:developers-bounces@emmtee.net"><developers-bounces@emmtee.net></a> on behalf of Emily
M. Bender <a class="moz-txt-link-rfc2396E" href="mailto:ebender@uw.edu"><ebender@uw.edu></a><br>
<b>Sent:</b> Wednesday, February 10, 2016 7:43 AM<br>
<b>To:</b> developers<br>
<b>Subject:</b> [developers] Trigger rules still being
requested</font>
<div> </div>
</div>
<div>
<div dir="ltr">Dear all,
<div><br>
</div>
<div>In the Matrix derived grammars, we have the following
in lkb/script:</div>
<div><br>
</div>
<div>
<div>;;;</div>
<div>;;; SSH 2012-03-27 This invokes trigger rules for
semantically empty</div>
<div>;;; lexical entries. The trigger rules themselves
should be in</div>
<div>;;; trigger.mtr in the grammar directory. The
documentation on trigger</div>
<div>;;; rules: <a moz-do-not-send="true"
id="LPlnk208819"
href="http://moin.delph-in.net/LkbGeneration">
http://moin.delph-in.net/LkbGeneration</a></div>
<div>;;;</div>
<div>;;; SSH 2013-05-23 The semi.vpm file needs to be
loaded *before* the</div>
<div>;;; trigger.mtr file in lkb/script for correct
interaction.</div>
<div>;;;</div>
<div><br>
</div>
<div>(mt:read-transfer-rules</div>
<div> (list</div>
<div> (lkb-pathname (parent-directory) "trigger.mtr"))</div>
<div> "Generation trigger rules"</div>
<div> :filter nil :task :trigger :recurse nil :edges
200 :subsume nil)</div>
<div><br>
</div>
<div>;;;</div>
<div>;;; Matrix-derived grammars often have stable
enough semantic</div>
<div>;;; representations that the grammar can usefully
be tested</div>
<div>;;; by generating from them. The function
index-for-generator()</div>
<div>;;; must be called for generation to be enabled.
In grammars with</div>
<div>;;; small lexica, this takes a trivial amount of
time. If</div>
<div>;;; generation is not being used regularly, and the
indexing</div>
<div>;;; is taking too long, comment out the following.
index-for-generator()</div>
<div>;;; can also be run from the expanded LKB top menu,
under</div>
<div>;;; Generate.</div>
<div>;;;</div>
<div><br>
</div>
<div>(index-for-generator)</div>
</div>
<div><br>
</div>
<div>It is my understanding that (index-for-generator) is
what is behind the messages</div>
<div>suggesting trigger rules for semantically empty
lexical entries, but even though</div>
<div>we call it after loading the trigger rules, we still
get messages such as the following:</div>
<div><br>
<div class="gmail_quote">
<div style="margin:1em 0px 2em"><br>
<img moz-do-not-send="true" style="-moz-user-select:
none;" alt=""
src="imap://aac10@imap.hermes.cam.ac.uk:143/fetch%3EUID%3E/Drafts%3E3555?ptkt=ef7def236ef9aa296b3372e09e0d1c8d7bb3fb0a0f764220c45caa89ec7f1332"><br>
</div>
Is there something else we're supposed to do so that
we only see those messages<br>
when an entry truly lacks a trigger rule?<br>
<br>
Thanks,<br>
Emily</div>
<div class="gmail_quote"><br>
</div>
-- <br>
<div class="gmail_signature">
<div dir="ltr">Emily M. Bender<br>
Professor, Department of Linguistics<br>
Check out CLMS on facebook! <a
moz-do-not-send="true"
href="http://www.facebook.com/uwclma"
target="_blank">
<a class="moz-txt-link-freetext" href="http://www.facebook.com/uwclma">http://www.facebook.com/uwclma</a></a><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<br>
</body>
</html>