I would like to use jung visualisation.
I run the decoder these parameters:
#nbest config
use_unique_nbest=true
use_tree_nbest=true
include_align_index=true
add_combined_cost=true
top_n=300
and called the visualisation tool like:
java -Dfile.encoding=utf8 \
-cp $JOSHUA_HOME/bin:$JOSHUA_HOME/lib/collections-
generic-4.01.jar:$JOSHUA_HOME/lib/jung-algorithms-2.0.jar:$JOSHUA_HOME/
lib/jung-api-2.0.jar:$JOSHUA_HOME/lib/jung-graph-impl-2.0.jar:
$JOSHUA_HOME/lib/jung-visualization-2.0.jar \
joshua.ui.tree_visualizer.browser.Browser $directory/test/
test_translate.en $directory/test/test_translate.hu $directory/
forditas/forditas_joshua.1best&
where
$directory/test/test_translate.en is my source side test file
$directory/test/test_translate.hu is the reference translation of my
test set
$directory/forditas/forditas_joshua.1best is the resulte of the joshua
decoder
but I got the previous error message:
Exception in thread "main" java.lang.NumberFormatException: For input
string: "(ROOT{0-24} ([S]{0-23} ([S]{0-19} ([S]{0-17} ([S]{0-12} ([S]
{0-11} ([S]{0-2} ([X]{0-2} a ([X]{1-2} fifty-seven-when_OOV))) ([X]
{2-11} ([X]{2-4} volt) összefüggő ([X]{5-11} ([X]{5-7} szerette) ,
hogy ([X]{10-11} henrietta-was_OOV)))) ([X]{11-12} közben)) ([X]
{12-17} ([X]{12-13} a) ([X]{14-16} magas ([X]{15-16} redshifts_OOV))
és)) ([X]{17-19} arnold)) ([X]{19-23} ([X]{19-20} csapodárságaival)
([X]{21-22} doris) .)))"
at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:
65)
at java.lang.Integer.parseInt(Integer.java:470)
at java.lang.Integer.parseInt(Integer.java:514)
at
joshua.ui.tree_visualizer.browser.TranslationInfoList.addNBestFile(TranslationInfoList.java:
109)
at joshua.ui.tree_visualizer.browser.Browser.main(Browser.java:100)
Can someone tell me something about this jung tools and what I make
wrong.
Thanks
Laci
--
You received this message because you are subscribed to the Google Groups "Joshua technical support" group.
To post to this group, send email to joshua_t...@googlegroups.com.
To unsubscribe from this group, send email to joshua_technic...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joshua_technical?hl=en.
With include_align_index=false I got the same error.
Exception in thread "main" java.lang.NumberFormatException: For input
string: "(ROOT ([S] ([S] ([S] ([S] ([S] ([S] ([X] a ([X] fifty-seven-
when_OOV))) ([X] ([X] volt) összefüggő ([X] ([X] szerette) , hogy ([X]
henrietta-was_OOV)))) ([X] közben)) ([X] ([X] a) ([X] magas ([X]
redshifts_OOV)) és)) ([X] arnold)) ([X] ([X] csapodárságaival) ([X]
doris) .)))"
at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:
65)
at java.lang.Integer.parseInt(Integer.java:470)
at java.lang.Integer.parseInt(Integer.java:514)
at
joshua.ui.tree_visualizer.browser.TranslationInfoList.addNBestFile(TranslationInfoList.java:
109)
at joshua.ui.tree_visualizer.browser.Browser.main(Browser.java:100)
Laci
On márc. 18, 14:21, zhifei li <zhifei.w...@gmail.com> wrote:
> Can you try to set include_align_index=false?
>
> Cheers
> Zhifei
>
> > joshua_technic...@googlegroups.com<joshua_technical%2Bunsu...@googlegroups.com>
Are you post-processing the Joshua output file in any way? The
visualizer expects the normal Joshua nbest output which looks like
this:
## ||| sentence ||| feat. functions ||| score
where ## is the number of the input sentence (i.e. 0 for the first
sentence of the input file, 1 for the next sentence and so on).
It is throwing the number format exception because, when it tries to
split the line on the ||| separator, your sentence output is the first
thing on the line, instead of a sentence number.
Jonny.
> > > joshua_technic...@googlegroups.com<joshua_technical%2Bunsubscrib e...@googlegroups.com>
--C
I just used, that Jonny told: that format of nbest output.
## ||| sentence ||| feat. functions ||| score
That solved my problem.
Laci