[developers] Treebanking with FFTB

Woodley Packard sweaglesw at sweaglesw.org
Fri Jun 23 19:09:02 CEST 2017


Dear David,

I believe your problem is that FFTB wasn't able to find the stylesheet 
and javascript files that it uses for its browser interface.  In the 
examples on the CapitolHillTreebank page, the working directory when 
invoking fftb was the same directory where fftb expects to be run from.  
If that is not the case, you need to add a command-line option like:

--webdir=/path/to/fftb-dir/assets

or if you are using the FFTB binary from the LOGON tree:

--webdir=$LOGONROOT/lingo/answer/fftb

Can you try that and see if it helps?  Good luck,
Woodley

On 06/23/2017 12:06 AM, David Moeljadi wrote:
> 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
>



More information about the developers mailing list