hi ned,<div><br></div><div>your code looks plausible, and i too would think all derivations in 1212 treebanks should reconstruct successfully (when using the 1212 ERG). emily rightly cautions this will typically not be the case for the ERG trunk: the treebanks are not maintained up-to-date for each incremental revision in the grammar.</div>
<div><br></div><div>which leaves us to worry about that one WS01 item. are you sure your LOGON tree is up-to-date (1212 has not been formally released, and there were a few minor updates after tagging the initial release candidate)? if so, could you ‘Browse|Results’ on WS01, then double-click on the red 1 in the derivations column of the problematic item, then double-click on the (red) derivation. this will trigger interactive reconstruction, and assuming the derivation really is problematic, there will be diagnostic message in the *common-lisp* buffer. what does it say?</div>
<div><br></div><div>best, oe</div><div><br></div><div><span></span><br>On Wednesday, July 17, 2013, Ned Letcher wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi all,<div><br></div><div>I've run into some strange behaviour which I'm hoping someone can shed some light on. I've got some lisp code I'm using to reconstruct the spanning edge of the first reading for items in profiles:</div>
<div><br></div><div><div>(defun get-item (i-id profile)</div><div> (first (tsdb::analyze profile </div><div> :condition (format nil "i-id == ~a" i-id)</div><div> :thorough '(:derivation))))</div>
<div>(defun get-item-edge (item) </div><div> (tsdb::reconstruct </div><div> (tsdb::get-field :derivation </div><div> (first (tsdb::get-field :results item)))))</div><div><br></div><div>The problem is that get-item-edge is returning nil for some items even though they have derivations. For instance I get a nil result for item 10012800 in ws01 using erg 1212 but all the other parsing items from this profile are fine:</div>
<div><br></div><div>(read-script-file-aux "~/logon/lingo/erg/lkb/script")<br></div><div>(get-item-edge (get-item "10012800" "/gold/erg/ws01"))<br></div><div>(get-item-edge (get-item "10012820" "/gold/erg/ws01"))<br>
</div><div><br></div><div>I'm also getting many more of these nil results when running using trunk erg compared to 1212. When restricted to items with readings, running over ws01, I get only 1 of these nil results for 1212 and 73 for trunk erg. csli yields none with 1212 and 1 of these with trunk erg.</div>
<div><br></div><div>Ned<br></div><div><br></div><div><br></div>-- <br><a href="http://nedned.net" target="_blank">nedned.net</a>
</div></div>
</blockquote></div><br><br>-- <br>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br>+++ Universitetet i Oslo (IFI); Boks 1080 Blindern; 0316 Oslo; (+47) 2284 0125<br>+++ --- <a href="mailto:oe@ifi.uio.no" target="_blank">oe@ifi.uio.no</a>; <a href="mailto:stephan@oepen.net" target="_blank">stephan@oepen.net</a>; <a href="http://www.emmtee.net/oe/" target="_blank">http://www.emmtee.net/oe/</a> ---<br>
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<br><br>