[jira] [Updated] (JOSHUA-268) Phrase-based model error (NullPointerException)
[ https://issues.apache.org/jira/browse/JOSHUA-268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Matt Post updated JOSHUA-268: - Fix Version/s: (was: 6.2) 6.1 > Phrase-based model error (NullPointerException) > --- > > Key: JOSHUA-268 > URL: https://issues.apache.org/jira/browse/JOSHUA-268 > Project: Joshua > Issue Type: Bug > Components: decoders >Affects Versions: 6.0.5 > Environment: fedora 23 >Reporter: Kyle Richardson >Priority: Minor > Fix For: 6.1 > > > I'm trying to run the phrase.sh example script (the only modification I made > was to take out the --optimizer-runs option, because the system says that > this is an "Unknown option"). > The error comes at the tuning stage (specifically, it fails at some point in > the tuning then complains that it cannot find the "joshua.config.final" > file). > Looking into the log file (tune/joshua.log), it seems to translate and tune a > number of sentences, then it raises the following NullPointerException: > Memory used after sentence 7 is 42.5 MB > Translation 7: -30.617 good how is fine > Input 2: Collecting options took 0.000 seconds > Input 8: Collecting options took 0.000 seconds > Input 2: FATAL UNCAUGHT EXCEPTION: null > java.lang.NullPointerException > at joshua.decoder.phrase.Candidate.score(Candidate.java:214) > at joshua.decoder.phrase.Candidate.compareTo(Candidate.java:136) > at joshua.decoder.phrase.Candidate.compareTo(Candidate.java:19) > at java.util.HashMap.compareComparables(HashMap.java:371) > at java.util.HashMap$TreeNode.treeify(HashMap.java:1920) > at java.util.HashMap.treeifyBin(HashMap.java:771) > at java.util.HashMap.putVal(HashMap.java:643) > at java.util.HashMap.put(HashMap.java:611) > at java.util.HashSet.add(HashSet.java:219) > at joshua.decoder.phrase.Stack.addCandidate(Stack.java:125) > at joshua.decoder.phrase.Stacks.search(Stacks.java:166) > at joshua.decoder.DecoderThread.translate(DecoderThread.java:113) > atjoshua.decoder.Decoder$DecoderThreadRunner.run(Decoder.java:218) > There's nothing informative in the tune/mert.log, it just says that it exited > prematurely. The other processes seem to work as expected (although in the > giza.log, there are a number of "Sentence mismatch error! Line " warnings). > I'm running this on Fedora 23 with Moses. I had no problems training the > hiero model. > note--- > There appears to be an open ticket for more or less the same problem > (JOSHUA-267), the difference however is that in that in this ticket, it > appears that the tuner fails on the first input, whereas here, it already > decodes/tunes several inputs before failing (see above). -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (JOSHUA-268) Phrase-based model error (NullPointerException)
[ https://issues.apache.org/jira/browse/JOSHUA-268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lewis John McGibbney updated JOSHUA-268: Fix Version/s: 6.2 > Phrase-based model error (NullPointerException) > --- > > Key: JOSHUA-268 > URL: https://issues.apache.org/jira/browse/JOSHUA-268 > Project: Joshua > Issue Type: Bug > Components: decoders >Affects Versions: 6.0.5 > Environment: fedora 23 >Reporter: Kyle Richardson >Priority: Minor > Fix For: 6.2 > > > I'm trying to run the phrase.sh example script (the only modification I made > was to take out the --optimizer-runs option, because the system says that > this is an "Unknown option"). > The error comes at the tuning stage (specifically, it fails at some point in > the tuning then complains that it cannot find the "joshua.config.final" > file). > Looking into the log file (tune/joshua.log), it seems to translate and tune a > number of sentences, then it raises the following NullPointerException: > Memory used after sentence 7 is 42.5 MB > Translation 7: -30.617 good how is fine > Input 2: Collecting options took 0.000 seconds > Input 8: Collecting options took 0.000 seconds > Input 2: FATAL UNCAUGHT EXCEPTION: null > java.lang.NullPointerException > at joshua.decoder.phrase.Candidate.score(Candidate.java:214) > at joshua.decoder.phrase.Candidate.compareTo(Candidate.java:136) > at joshua.decoder.phrase.Candidate.compareTo(Candidate.java:19) > at java.util.HashMap.compareComparables(HashMap.java:371) > at java.util.HashMap$TreeNode.treeify(HashMap.java:1920) > at java.util.HashMap.treeifyBin(HashMap.java:771) > at java.util.HashMap.putVal(HashMap.java:643) > at java.util.HashMap.put(HashMap.java:611) > at java.util.HashSet.add(HashSet.java:219) > at joshua.decoder.phrase.Stack.addCandidate(Stack.java:125) > at joshua.decoder.phrase.Stacks.search(Stacks.java:166) > at joshua.decoder.DecoderThread.translate(DecoderThread.java:113) > atjoshua.decoder.Decoder$DecoderThreadRunner.run(Decoder.java:218) > There's nothing informative in the tune/mert.log, it just says that it exited > prematurely. The other processes seem to work as expected (although in the > giza.log, there are a number of "Sentence mismatch error! Line " warnings). > I'm running this on Fedora 23 with Moses. I had no problems training the > hiero model. > note--- > There appears to be an open ticket for more or less the same problem > (JOSHUA-267), the difference however is that in that in this ticket, it > appears that the tuner fails on the first input, whereas here, it already > decodes/tunes several inputs before failing (see above). -- This message was sent by Atlassian JIRA (v6.3.4#6332)