java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

opennlp-users | ttrung@nlke-group.net | 11 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    Re: Stuck with class ChunkerME: java.lang.String cannot be cast to opennlp.tools.parser.Parse

    opennlp-users | 11 months ago | ttrung@nlke-group.net
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  2. 0

    Cannot train Chunker

    opennlp-users | 11 months ago | ttrung@nlke-group.net
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  3. 0

    Re: Stuck: Cannot train Chunker even with the instruction on the site

    opennlp-users | 11 months ago | Rodrigo Agerri
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Re: Stuck: Cannot train Chunker even with the instruction on the site

    opennlp-users | 11 months ago | Rodrigo Agerri
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  6. 0
    samebug tip
    Thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range. Applications can subclass this class to indicate similar exceptions.

  1. Pilleo 1 times, last 3 weeks ago
  2. Eric 8 times, last 3 weeks ago
  3. Indri Yunita 4 times, last 1 month ago
  4. filpgame 4 times, last 1 month ago
  5. tyson925 3 times, last 2 months ago
70 more registered users
25 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IndexOutOfBoundsException

    Index: 0, Size: 0

    at java.util.ArrayList.rangeCheck()
  2. Java RT
    ArrayList.get
    1. java.util.ArrayList.rangeCheck(ArrayList.java:653)
    2. java.util.ArrayList.get(ArrayList.java:429)
    2 frames
  3. opennlp.tools.ml
    AbstractEventTrainer.train
    1. opennlp.tools.ml.model.AbstractDataIndexer.sortAndMerge(AbstractDataIndexer.java:89)
    2. opennlp.tools.ml.model.TwoPassDataIndexer.<init>(TwoPassDataIndexer.java:105)
    3. opennlp.tools.ml.AbstractEventTrainer.getDataIndexer(AbstractEventTrainer.java:74)
    4. opennlp.tools.ml.AbstractEventTrainer.train(AbstractEventTrainer.java:91)
    4 frames
  4. opennlp.tools.chunker
    ChunkerME.train
    1. opennlp.tools.chunker.ChunkerME.train(ChunkerME.java:217)
    1 frame
  5. form
    UtilitiesForm$17.actionPerformed
    1. form.UtilitiesForm.handleTrainingTreebankWithApacheChunker(UtilitiesForm.java:2939)
    2. form.UtilitiesForm.jmnitLoadTreebankActionPerformed(UtilitiesForm.java:1136)
    3. form.UtilitiesForm.access$1400(UtilitiesForm.java:108)
    4. form.UtilitiesForm$17.actionPerformed(UtilitiesForm.java:901)
    4 frames
  6. Java RT
    BasicMenuItemUI$Handler.mouseReleased
    1. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
    2. javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
    3. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
    4. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
    5. javax.swing.AbstractButton.doClick(AbstractButton.java:376)
    6. javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
    7. javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
    7 frames