You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@joshua.apache.org by "Matt Post (JIRA)" <ji...@apache.org> on 2016/09/28 14:00:29 UTC

[jira] [Closed] (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 closed JOSHUA-268.
----------------------------
    Resolution: Fixed

> 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
>            Assignee: Matt Post
>            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)