[developers] Treebanking with FFTB

David Moeljadi davidmoeljadi at gmail.com
Sat Jun 24 17:21:04 CEST 2017


Hi Dan,

Thank you! The ACE version used to compile the grammar and the one for fftb
are both ACE version 0.9.23.

David

On Sat, Jun 24, 2017 at 12:42 AM, Dan Flickinger <danf at stanford.edu> wrote:

> Hi David,
>
>
> One thing you might check is to see which version number of ACE you used
> to compile your grammar to produce the .dat file.  The fftb uses a version
> of ACE is sometimes a little behind the latest version of ACE.  If there is
> a mismatch, you can just recompile your grammar using the slightly older
> version of ACE that the fftb is using, and then try invoking fftb again.
>
>
>  Dan
>
> ------------------------------
> *From:* developers-bounces at emmtee.net <developers-bounces at emmtee.net> on
> behalf of David Moeljadi <davidmoeljadi at gmail.com>
> *Sent:* Friday, June 23, 2017 12:06 AM
> *To:* developers at delph-in.net
> *Subject:* [developers] Treebanking with FFTB
>
> Dear all,
>
> I tried to do treebanking with FFTB, using the command lines in
> http://moin.delph-in.net/CapitolHillTreebank.
> I could see the FFTB page in my Firefox browser (screenshot attached), but
> when I clicked the sentences (for example 11 Hujan turun), I got a page
> "404 Not Found" (screenshot attached), I could not see the tree or the
> discriminants.
> Did I miss something here?
>
> ====
> ~/grammar/ind$ fftb -g ind.dat /tmp/mrs-demo/ --browser --gold
> /tsdb/gold/mrs
> grammar image: ind.dat
> Just one TSDB profile: /tmp/mrs-demo/
> Would update from profile: ../ind/tsdb/gold/mrs
> listening on http://127.0.0.1:53055/private/
> should GET    /private/
> should GET    /favicon.ico
> ...
> [1031] {0 decisions} UCSTAT: input 0 edges, output 0 edges
> {0 edges} {0 trees} no gold writing tsdb relation 'tree' with 172 tuples
>
> [1041] {1 decisions} UCSTAT: input 4 edges, output 3 edges
> {3 edges} {1 / 1 trees active} different writing tsdb relation 'tree'
> with 172 tuples
>
> [1042] {0 decisions} UCSTAT: input 6 edges, output 5 edges
> {5 edges} {1 trees} no gold writing tsdb relation 'tree' with 172 tuples
>
> [1051] {1 decisions} UCSTAT: input 4 edges, output 3 edges
> {3 edges} {1 / 1 trees active} different writing tsdb relation 'tree'
> with 172 tuples
>
> [1061] {0 decisions} found a stored forest, but couldn't use it.
> -> no usable stored forest
> unable to get parse forest for 1061
> writing tsdb relation 'tree' with 172 tuples
>
> [1062] {0 decisions} found a stored forest, but couldn't use it.
> -> no usable stored forest
> unable to get parse forest for 1062
> writing tsdb relation 'tree' with 172 tuples
>
> [1071] {2 decisions} UCSTAT: input 12 edges, output 10 edges
> {10 edges} {0 / 2 trees active} writing tsdb relation 'tree' with 172
> tuples
>
> [1072] {2 decisions} UCSTAT: input 9 edges, output 7 edges
> {7 edges} {0 / 2 trees active} writing tsdb relation 'tree' with 172
> tuples
>
> should GET    /private/parse?profile=/&id=11
> item id 11 -> input 'Hujan turun.'
> profile parse id 11
> gold parse id 11
> preferred gold result id 0
> -> got gold preferred tree 0xf05fd0
> -> loaded stored forest
> found stored forest (4 edges connected to 1 roots).<br/>
> UCSTAT: input 4 edges, output 3 edges
> should GET    /private/session?0
> should GET    /private/parse?profile=/&id=1041
> ...
> TIMERS (792 calls = ~ 108,5µs overhead):
> get decisions                   1,4ms for 102 events = 13,5µs per event
> load gold tree                   0,7ms for 53 events = 13,0µs per event
> load forest                     8,9ms for 171 events = 51,9µs per event
> unary closure                   2,5ms for 117 events = 21,2µs per event
> count solutions                 122,6µs for 162 events = 0,8µs per event
> ~/grammar/ind$
> ====
>
> Also, I tried calling it without --gold /dir/ (screenshot attached) but
> still the same, I got "404 Not Found" when I clicked the sentences.
> ===
> ~/grammar/ind$ fftb -g ind.dat /tmp/mrs-demo/ --browser
> grammar image: ind.dat
> listening on http://127.0.0.1:38959/private/
> should GET    /private/
> should GET    /favicon.ico
> ...
> should GET    /private/parse?profile=/&id=142
> item id 142 -> input 'Dia menggonggong.'
> profile parse id 142
> -> loaded stored forest
> found stored forest (3 edges connected to 1 roots).<br/>
> UCSTAT: input 3 edges, output 3 edges
> should GET    /private/session?0
> should GET    /private/parse?profile=/&id=11
> item id 11 -> input 'Hujan turun.'
> profile parse id 11
> -> loaded stored forest
> found stored forest (4 edges connected to 1 roots).<br/>
> UCSTAT: input 4 edges, output 3 edges
> should GET    /private/session?1
> should GET    /private/parse?profile=/&id=21
> item id 21 -> input 'Adi menggonggong.'
> profile parse id 21
> -> loaded stored forest
> found stored forest (3 edges connected to 1 roots).<br/>
> UCSTAT: input 3 edges, output 3 edges
> should GET    /private/session?2
> should GET    /private/exit
> TIMERS (0 calls = ~ 0,0µs overhead):
> ~/grammar/ind$
> ===
>
> Best regards,
> David
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.delph-in.net/archives/developers/attachments/20170624/1254f0d4/attachment.html>


More information about the developers mailing list