Hello,
we need to have a look at the exception to be able to identify the problem,
please post it here.
Jörn
On 03/13/2013 02:25 PM, Joachim De Beule wrote:
Dear list,
When I try to read a GISModel that was written to disk I get a
NumberFormatException, *but only on relatively large models*. (I'm not sure
if the size is the cause of the exception though.)
I'm writing the model to disk from within clojure as follows (model is the
result of a call to (GIS/trainModel event-stream 100 2 true true), i.e.
it is a trained GISModel):
(let [writer (SeuffixSensitiveGISModelWriter. model
(clojure.java.io/filefilename))]
(.persist writer)
(.close writer))
I'm trying to read the model back in as follows:
(.getModel (SuffixSensitiveGISModelReader. (clojure.java.io/filefilename))
I have found one other mention that seems to be related to this problem,
but no solution yet:
http://mail-archives.apache.org/mod_mbox/opennlp-users/201208.mbox/%[email protected]%3E
Any ideas?
Thanks!