title: Stanford NNDep parser: java.lang.ArrayIndexOutOfBoundsException
body: <p>After training a model, i’m trying to parse the test treebank. Unfortunately, this error keeps popping up:</p>
  
  <pre><code>Loading depparse model file: nndep.model.txt.gz ...
  ###################
  #Transitions: 77
  #Labels: 38
  ROOTLABEL: root
  Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 25
          at edu.stanford.nlp.parser.nndep.Classifier.preCompute(Classifier.java:663)
          at edu.stanford.nlp.parser.nndep.Classifier.preCompute(Classifier.java:637)
          at edu.stanford.nlp.parser.nndep.DependencyParser.initialize(DependencyParser.java:1151)
          at edu.stanford.nlp.parser.nndep.DependencyParser.loadModelFile(DependencyParser.java:589)
          at edu.stanford.nlp.parser.nndep.DependencyParser.loadModelFile(DependencyParser.java:493)
          at edu.stanford.nlp.parser.nndep.DependencyParser.main(DependencyParser.java:1245)
  </code></pre>
  
  <p>If the pre-trained english model, which ships with the NLP package, is used, that error does not appear. Therefore, there is maybe something wrong with the trained model? There were no errors during training, however. 500 iterations were done (default 20000 takes over 15 hours on my 2,33 GHz Core 2 Duo CPU @ 4 Gb RAM – is such an amount of time normal, by the way?)　Train, dev and test sets are <a href="http://lindat.mff.cuni.cz/repository/xmlui/handle/11234/1-1548" rel="nofollow">UD 1.2</a>; word embeddings used are <a href="http://github.com/wolet/sprml13-word-embeddings" rel="nofollow">these</a>. Seems that this error happens when non-english treebank is used for training (tried swedish and polish UD; <code>-tlp</code> option is not set, using <code>UniversalEnglish</code>).</p>