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&#39;ve run into some strange behaviour which I&#39;m hoping someone can shed some light on. I&#39;ve got some lisp code I&#39;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 &quot;i-id == ~a&quot; i-id)</div><div>                        :thorough &#39;(: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 &quot;~/logon/lingo/erg/lkb/script&quot;)<br></div><div>(get-item-edge (get-item &quot;10012800&quot; &quot;/gold/erg/ws01&quot;))<br></div><div>(get-item-edge (get-item &quot;10012820&quot; &quot;/gold/erg/ws01&quot;))<br>

</div><div><br></div><div>I&#39;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>