Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Out of bounds error #9

Open
jwang281 opened this issue Feb 21, 2018 · 9 comments
Open

Out of bounds error #9

jwang281 opened this issue Feb 21, 2018 · 9 comments

Comments

@jwang281
Copy link

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)
@halperta
Copy link
Collaborator

halperta commented Feb 21, 2018 via email

@jwang281
Copy link
Author

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

@halperta
Copy link
Collaborator

halperta commented Feb 26, 2018 via email

@jwang281
Copy link
Author

Thanks anyway!

@davidweichiang
Copy link
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!

davidweichiang added a commit to ndnlp/ocular that referenced this issue Mar 2, 2018
@davidweichiang
Copy link
Contributor

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

@tberg12
Copy link
Owner

tberg12 commented Mar 2, 2018 via email

@davidweichiang
Copy link
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?

@tberg12
Copy link
Owner

tberg12 commented Mar 2, 2018 via email

dhgarrette added a commit that referenced this issue Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants