<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 5: Error in Trainer.java</title><link href="https://sourceforge.net/p/javaocr/bugs/5/" rel="alternate"/><link href="https://sourceforge.net/p/javaocr/bugs/5/feed.atom" rel="self"/><id>https://sourceforge.net/p/javaocr/bugs/5/</id><updated>2013-09-17T07:43:32.245000Z</updated><subtitle>Recent changes to 5: Error in Trainer.java</subtitle><entry><title>#5 Error in Trainer.java</title><link href="https://sourceforge.net/p/javaocr/bugs/5/?limit=25#5c8d" rel="alternate"/><published>2013-09-17T07:43:32.245000Z</published><updated>2013-09-17T07:43:32.245000Z</updated><author><name>ep</name><uri>https://sourceforge.net/u/pernest/</uri></author><id>https://sourceforge.net9ba97caa1f715ad92454d65d38069d9f905bb9c1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You can close this one. You have to set constant POSSIBLE in Trainer.java to your array of characters.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Error in Trainer.java</title><link href="https://sourceforge.net/p/javaocr/bugs/5/" rel="alternate"/><published>2013-08-08T13:44:25.860000Z</published><updated>2013-08-08T13:44:25.860000Z</updated><author><name>Ernest Pinter</name><uri>https://sourceforge.net/u/pernest/</uri></author><id>https://sourceforge.netd51bde9a415de17e359349ad1dc785e1d8123b72</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Trainer.java is not working. It fails with error:&lt;/p&gt;
&lt;p&gt;Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0&lt;br /&gt;
    at java.util.ArrayList.RangeCheck(ArrayList.java:547)&lt;br /&gt;
    at java.util.ArrayList.get(ArrayList.java:322)&lt;br /&gt;
    at Trainer.main(Trainer.java:174)&lt;/p&gt;
&lt;p&gt;Line 174: final double[] vector = moments.get(i);&lt;/p&gt;
&lt;p&gt;But moments variable is only initialized and never filled. Something is missing?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>