Skip to content

Out of bounds error #9

Description

@jwang281

Hi, we are getting this exception after running for a couple of days -- any idea why?

Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
        at edu.berkeley.cs.nlp.ocular.preprocessing.VerticalModel.minSize(VerticalModel.java:202)
        at edu.berkeley.cs.nlp.ocular.preprocessing.VerticalProfile.decode(VerticalProfile.java:171)
        at edu.berkeley.cs.nlp.ocular.preprocessing.LineExtractor.extractLines(LineExtractor.java:23)
        at edu.berkeley.cs.nlp.ocular.data.LazyRawImageDocument.doLoadObservationsFromFile(LazyRawImageDocument.java:86)
        at edu.berkeley.cs.nlp.ocular.data.LazyRawImageDocument.loadLineImages(LazyRawImageDocument.java:64)
        at edu.berkeley.cs.nlp.ocular.model.DecoderEM.computeEStep(DecoderEM.java:64)
        at edu.berkeley.cs.nlp.ocular.train.FontTrainer.doFontTrainPass(FontTrainer.java:185)
        at edu.berkeley.cs.nlp.ocular.train.FontTrainer.trainFont(FontTrainer.java:95)
        at edu.berkeley.cs.nlp.ocular.main.TrainFont.run(TrainFont.java:76)
        at edu.berkeley.cs.nlp.ocular.main.OcularRunnable.doMain(OcularRunnable.java:25)
        at edu.berkeley.cs.nlp.ocular.main.TrainFont.main(TrainFont.java:41)

Activity

  1. halperta commented on Feb 21, 2018

    @halperta
    Collaborator
  2. jwang281 commented on Feb 25, 2018

    @jwang281
    Author

    The page is not blank but I did get the output that says "no evaluation diplomatic text found at the image".

  3. halperta commented on Feb 26, 2018

    @halperta
    Collaborator
  4. jwang281 commented on Feb 28, 2018

    @jwang281
    Author

    Thanks anyway!

  5. davidweichiang commented on Mar 2, 2018

    @davidweichiang
    Contributor

    Hi @tberg12, it would be great if you know how to fix this quickly....we can look at it, but it will probably take us a lot longer...thanks!

  6. added a commit that references this issue on Mar 2, 2018
  7. davidweichiang commented on Mar 2, 2018

    @davidweichiang
    Contributor

    I attempted a fix: ndnlp/ocular@00f8db0. @jwang281, can you test it on the file that was causing the problem?

  8. tberg12 commented on Mar 2, 2018

    @tberg12
    Owner
  9. davidweichiang commented on Mar 2, 2018

    @davidweichiang
    Contributor

    It fixed the symptom but perhaps not the problem. I was expecting it to skip those pages and then on later iterations to not skip them. But it sounds like it just keeps skipping them on every iteration. Do you have any idea why the vertical segmentation would fail?

  10. tberg12 commented on Mar 2, 2018

    @tberg12
    Owner
  11. added a commit that references this issue on Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions