|
Re: [LingPipe] Re: Persistent Classifier in RDBMS?
I love it when people solve their own
problems before I wake up in the morning!
A good way to figure out what you've
got serialized is to do this:
Object obj = objectInput.readObject();
System.out.println(obj.getClass());
Usually it's only necessary to cast
the object back to the interface you care
about.
The charseq LMs read back in really fast
because it's all parallel arrays, so there's
very little object creation, which is the
real bottleneck in serialization/deserialization.
Like everything else, to make Java fast, you
have to code it like C++, meaning C-like
implementations with lightweight object-oriented
wrappers.
- Bob Carpenter
Alias-i
|