Search Mailing List Archives

Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[java-nlp-user] decoder failure with phrasal and gaps

Christopher Manning manning at
Wed May 18 09:09:00 PDT 2011

Hi Thomas, 

This is failing trivially in reading the arguments; the "gaps" flag should have either 1 or two integer arguments (1 if only source gaps).

So you might try something like "--phrasal-flags=--gaps 8" or perhaps "--phrasal-flags=--gaps=8"

But I guess we should fix our documentation....


On May 18, 2011, at 8:12 AM, Thomas Meyer wrote:

> Hi,
> Thanks for the very interesting and promising release of the phrasal beta version.
> I was able to train and test a first system (all stages of the setup run and I got translation as well as evaluation results).
> However, when setting up again to use gaps, the 'phrase-extract' phase (with "-withGaps true") runs fine and generates the necessary models. But, when proceeding with the MERT phase, running 'phrasal-mert' with the additional flag "--phrasal-flags=--gaps", the following error occurs ("Decoder failure" on STDERR), taken from the log file:
> ...
> Done loading arpa lm: lm/europarlv6.lm.gz (order: 5) (mem used: 151 MiB time: 4.830 s)
> WeightConfig: '[LexR:monotoneWithPrevious=1.0, UnknownWord=1.0, LexR:swapWithNext=1.0, LM=1.0, LexR:discontinuousWithPrevious=1.0, LexR:swapWithPrevious=1.0, LinearDistortion=1.0, LexR:monotoneWithNext=1.0, LexR:discontinuousWithNext=1.0, TM:phi(t|f)=0.3, TM:phi(f|t)=0.3, TM:lex(f|t)=0.2, TM:lex(t|f)=0.2, TM:phrasePenalty=0.0, WordPenalty=0.0]' 
> Uncaught exception from thread: main
> java.lang.NumberFormatException: For input string: "true"
> java.lang.NumberFormatException: For input string: "true"
>     at java.lang.NumberFormatException.forInputString(
>     at java.lang.Integer.parseInt(
>     at java.lang.Integer.parseInt(
>     at<init>(
>     at
> Any hint would be appreciated. Many thanks,
> Thomas
> _______________________________________________
> java-nlp-user mailing list
> java-nlp-user at

More information about the java-nlp-user mailing list