<div><div dir="auto">hi tuấn anh,</div></div><div dir="auto"><br></div><div dir="auto">from what i recall about how FFTB writes tsdb(1) profiles, this should be easy: once treebanking is complete, the ‘result’ relation should contain one entry per item for each active derivation, typically one after full disambiguation.</div><div dir="auto"><br></div><div dir="auto">the ‘derivation’ field will always be there, but i am not quite sure whether FFTB writes the ‘tree’ (labeled phrase structure) and ‘mrs’ fields?  you should be able to observe that in your profiles.</div><div dir="auto"><br></div><div dir="auto">if not, the LOGON ‘redwoods’ script can recreate labeled trees for each derivation, using a command roughly like the following:</div><div dir="auto"><br></div><div dir="auto">$LOGONROOT/redwoods —terg —export tree —target /tmp &lt;profile&gt;</div><div dir="auto"><br></div><div dir="auto">best wishes, oe</div><div dir="auto"><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 27 Feb 2020 at 08:48 Tuấn Anh Lê &lt;<a href="mailto:tuananh.ke@gmail.com">tuananh.ke@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi everyone,</div><div><br></div><div>We are trying to use FFTB to tree bank a small corpus and we would like to extract the chosen syntax trees from the corpus. The expected output would be something like</div><div><br></div><div><span style="font-family:monospace"><font size="4">It works --&gt; <span style="font-family:monospace"><font size="4">(&quot;S&quot; (&quot;NP&quot; (&quot;NP&quot; (&quot;it&quot;))) (&quot;VP&quot; (&quot;V&quot; (&quot;V&quot; (&quot;works&quot;)))))</font></span></font></span></div><div><span style="font-family:monospace"><font size="4"><span style="font-family:monospace"><font size="4"><br></font></span></font></span></div><div><span style="font-family:monospace"><font size="4"><span style="font-family:monospace"><font size="4">Is there a way to extract this from the FFTB profile?</font></span></font></span></div><div><span style="font-family:monospace"><font size="4"><span style="font-family:monospace"><font size="4"><br></font></span></font></span></div><div><span style="font-family:monospace"><font size="4"><span style="font-family:monospace"><font size="4">Currently I&#39;m selecting the trees manually by parsing the sentences using ACE with the options --report-label and then split the output string with &quot; ;  &quot; but I&#39;m not sure if this is the best approach.</font></span></font></span></div><div><span style="font-family:monospace"><font size="4"><span style="font-family:monospace"><font size="4"><br></font></span></font></span></div><div><span style="font-family:monospace"><font size="4"><span style="font-family:monospace"><font size="4"><span style="font-family:monospace"><font size="4">[erg-trunk]$ ace -g erg-0.9.26.dat --report-label<br>It works<br>SENT: It works<br>[
 LTOP: h0 INDEX: e2 [ e SF: prop TENSE: pres MOOD: indicative PROG: - 
PERF: - ] RELS: &lt; [ pron&lt;0:2&gt; LBL: h4 ARG0: x3 [ x PERS: 3 NUM:
 sg GEND: n PT: std ] ]  [ pronoun_q&lt;0:2&gt; LBL: h5 ARG0: x3 RSTR: 
h6 BODY: h7 ]  [ _work_v_1&lt;3:8&gt; LBL: h1 ARG0: e2 ARG1: x3 ARG2: i8
 ] &gt; HCONS: &lt; h0 qeq h1 h6 qeq h4 &gt; ICONS: &lt; &gt; ] ;  (&quot;S&quot; 
(&quot;NP&quot; (&quot;NP&quot; (&quot;it&quot;))) (&quot;VP&quot; (&quot;V&quot; (&quot;V&quot; (&quot;works&quot;)))))<br>NOTE: 1 readings, added 391 / 68 edges to chart (27 fully instantiated, 35 actives used, 18 passives used)        RAM: 1880k</font></span></font></span></font></span></div><div><span style="font-family:monospace"><font size="4"><span style="font-family:monospace"><font size="4"><br></font></span></font></span></div><div><div><div><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div>Thank you<br>--<br></div><div>Tuan Anh<br></div></div></div></div></div></div></div></div></div></div>
</blockquote></div></div>