Lewis John McGibbney created JOSHUA-319: -------------------------------------------
Summary: test-decode decoder_command results in java.lang.NumberFormatException: For input string: "MAXSPAN" Key: JOSHUA-319 URL: https://issues.apache.org/jira/browse/JOSHUA-319 Project: Joshua Issue Type: Bug Components: decoders Reporter: Lewis John McGibbney Assignee: Lewis John McGibbney Fix For: 6.1 When I run the following command {code} /usr/local/incubator-joshua/bin/pipeline.pl --rundir . --type hiero --corpus /usr/local/joshua_resources/russian_experiments/data/commoncrawl.ru-en --tune /usr/local/joshua_resources/russian_experiments/data/commoncrawl.ru-en.tune --test /usr/local/joshua_resources/russian_experiments/data/commoncrawl.ru-en.test --source en --target ru --readme "Experiment 3 Run 1 of ru --> en model training" --aligner berkeley --hadoop-mem 10g --tmp /usr/local/hadoop-2.5.2/hadoop_tmp_dir --first-step test --grammar /usr/local/joshua_resources/russian_experiments/exp3/grammar.gz --joshua-mem 10g {code} I end up with the following message. {code} INFO - Parameters read from configuration file: joshua.config INFO - tm = 'TYPE -maxspan MAXSPAN -owner OWNER -path /usr/local/joshua_resources/russian_experiments/exp3/test/1/model/grammar.gz.packed' INFO - tm = 'thrax -maxspan -1 -owner glue -path /usr/local/joshua_resources/russian_experiments/exp3/test/1/model/grammar.glue' INFO - defaultnonterminal = 'X' INFO - goalsymbol = 'GOAL' INFO - markoovs = 'false' INFO - search = 'cky' INFO - pop-limit: 5000 INFO - poplimit = '5000' INFO - topn = '300' INFO - useuniquenbest = 'true' INFO - outputformat = '%i ||| %s ||| %f ||| %c' INFO - includealignindex = 'false' INFO - featurefunction = 'OOVPenalty' INFO - featurefunction = 'WordPenalty' INFO - c = 'joshua.config' INFO - threads = '1' INFO - topn = '0' INFO - outputformat = '%s' INFO - Read 3 weights (0 of them dense) Exception in thread "main" java.lang.NumberFormatException: For input string: "MAXSPAN" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:580) at java.lang.Integer.parseInt(Integer.java:615) at org.apache.joshua.decoder.Decoder.initializeTranslationGrammars(Decoder.java:451) at org.apache.joshua.decoder.Decoder.initialize(Decoder.java:389) at org.apache.joshua.decoder.Decoder.<init>(Decoder.java:128) at org.apache.joshua.decoder.JoshuaDecoder.main(JoshuaDecoder.java:69) {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)