<div dir="ltr">Thanks, Woodley. That is quite helpful!</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 9, 2014 at 1:06 PM, Woodley Packard <span dir="ltr"><<a href="mailto:sweaglesw@sweaglesw.org" target="_blank">sweaglesw@sweaglesw.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Emily and Antariksh,<div><br></div><div>For ACE, the primary problem was that the trigger rules in trigger.mtr did not have unique names, so "kii" was not getting added to the chart. ACE was printing some warning messages when compiling the grammar about them being redefined. When I give them unique names (crucially the "kii" rules), I am able to generate from this sentence. I get 6 results:</div><div><br></div><div><div>Ravi vicaar-at kii tsor zhop-t-o kaa</div><div>Ravi vicaar-t-o kii tsor zhop-t-o</div><span class=""><div>Ravi vicaar-t-o kii tsor zhop-t-o kaa</div></span><div>Ravi vicaar-t-o asa kii tsor zhop-t-o</div><div>Ravi vicaar-at kii tsor zhop-t-o</div><div>Ravi vicaar-t-o asa kii tsor zhop-t-o kaa</div></div><div><br></div><div>However, ACE still isn't very happy. It says the "head-comp" rule is loopy, i.e. can apply to its own input somehow (it doesn't apply during parsing because it takes 2 inputs and you run out of words eventually, but in generation the vacuous "kii" can keep being added to a sentence apparently). I don't think that necessarily implies it's specifically that rule that's got a bug in it, but something in the chain of applications that leads to that cycle is buggy. If you run the generator with packing turned off (-p), then ACE fails to notice the loop and spins for a while before failing. If you also add a couple of -v's (so -epvv), then you'll see the strings it's generating:</div><div><br></div><div>kii kii kii kii kii kii zhop-t-o</div><div>vicaar-t-o asa kii kii kii kii kii zhop-t-o</div><div>kii kii kii kii vicaar-t-o kii kii kii kii kii zhop-t-o</div><div><br></div><div>etc etc. I assume some of these are ungrammatical :-). You should also be able to see rule names and trace back what the bad chain was with a little patience. Or maybe you can already guess at this point :-)</div><div><br></div><div>I would guess that this cyclic application is also what's throwing the LKB off (and maybe the LKB is more relaxed about multiple trigger rules having the same name), though I don't know for sure. Hope that helps,</div><div>-Woodley</div><div><div class="h5"><div><br><div><div>On Dec 9, 2014, at 12:47 PM, "Emily M. Bender" <<a href="mailto:ebender@uw.edu" target="_blank">ebender@uw.edu</a>> wrote:</div><br><blockquote type="cite"><div dir="ltr">Dear all,<br><div class="gmail_quote"><br><div dir="ltr"><div class="gmail_quote"><div dir="ltr">Antariksh and I have hit a generation debugging mystery, that I'm hoping for some help with. Our grammar (of Marathi) can generate for some strings (with both ace and lkb) but for this particular item:<span><br><br><div style="font-family:tahoma,sans-serif;font-size:small"><b>ravi vicaar-t-o kii tsor zhop-t-o kaa</b></div><div style="font-family:tahoma,sans-serif;font-size:small">(Ravi asks if the thief sleeps)</div><br clear="all"></span><div><span>it gives a "Stack overflow (signal 1000)" error on the lkb and just no results with ace. Turning packing off doesn't affect things. I played around a bit and found that if I set *maximum-number-of-edges* to 717, I run out of edges before the stack overflow, but with 718 or more it's back to that. (I tried diffing the output of (pprint *gen-chart*) in those two conditions, but that wasn't informative ... too many spurious differences.) batch-check-morphology() ran happily for a while and then returned nil, which I assume means no problems. Setting *gen-packing-p* to nil doesn't change the behavior. <br><br>This is clearly a problem with the grammar, but I'm at a loss as to how to localize it. Are there any other tools or strategies I should be aware of?<br><br>Thanks,<br>Emily<br><br></span><div>In case it's helpful, the grammar can be found here:<br></div><div><a href="http://faculty.washington.edu/ebender/mar.tgz" target="_blank">http://faculty.washington.edu/ebender/mar.tgz</a><br></div><span><div><br></div><div>ace output:<br><br>ubuntu@UbuntuLKB:~/Downloads/mar$ ace -g mar.dat -Tf1 | ace -g mar.dat -e<br>ravi vicaar-t-o kii tsor zhop-t-o kaa<br>NOTE: 1 readings, added 653 / 401 edges to chart (76 fully instantiated, 84 actives used, 49 passives used) RAM: 3766k<br>NOTE: 122 passive, 620 active edges in final generation chart; built 305 passives total. [0 results]<span><font color="#888888"><br><br></font></span></div><span><font color="#888888"><div><br></div><div>-- <br><div><div dir="ltr">Emily M. Bender<br>Professor, Department of Linguistics<br>Check out CLMS on facebook! <a href="http://www.facebook.com/uwclma" target="_blank">http://www.facebook.com/uwclma</a><br></div></div>
</div></font></span></span></div></div>
</div><span><br></span></div></div></div>
</blockquote></div><br></div></div></div></div></blockquote></div><br><br clear="all"><div><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 href="http://www.facebook.com/uwclma" target="_blank">http://www.facebook.com/uwclma</a><br></div></div>
</div>