Search the web
Sign In
New User? Sign Up
LingPipe
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Persistent Classifier in RDBMS?   Message List  
Reply | Forward Message #704 of 777 |
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




Fri Jun 12, 2009 5:08 pm

colloquialdo...
Offline Offline
Send Email Send Email

Forward
Message #704 of 777 |
Expand Messages Author Sort by Date

I have a training set of 45K documents for 1000 categories and don't want users of my application to have to wait while the classifier is trained every time...
your_69_guy
Offline Send Email
Jun 9, 2009
8:04 pm

... I have no idea of how Daffodil will deal with java serialization but you can serialize with the AbstractExternalizable class for any of the classifiers...
Breck Baldwin
reckb
Offline Send Email
Jun 9, 2009
10:32 pm

... This will depend on which classifier you use. All of them either implement java.io.Serializable, or they implement com.aliasi.util.Compilable. The...
Bob Carpenter
colloquialdo...
Offline Send Email
Jun 10, 2009
5:49 am

Thanks Bob, the storing of the classifier into a blob field works great. I am having a little trouble reading the object back out of the database though. I...
your_69_guy
Offline Send Email
Jun 12, 2009
2:43 pm

I fiddled with the code some more and got it to work. here is the working code... note : this is extremely fast especially since the blob created from the...
your_69_guy
Offline Send Email
Jun 12, 2009
3:13 pm

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 =...
Bob Carpenter
colloquialdo...
Offline Send Email
Jun 12, 2009
5:09 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help