views:

41

answers:

1

Hello,

I've run into an issue that is requiring me to serialize Stanford Parser objects (all different sorts) to a file for later use. As far as I know, none of the Stanford Parser objects implement a serialization interface and I'm wondering: is there a way to serialize a Java object when the object doesn't implement serialization or another process to do the same thing?

Thanks!

+1  A: 

GrammaticalStructure extends TreeGraph that implements Serializable, so it is positively the intent of the developers that you should be able to persist objects of this class. Tree directly implements Serializable and is as such perhaps more suited for persistence (in the eyes of the standford developers).

There is no online API documentation, the information i relay above is taken from the source code of the 1.6.4 (dated 2010-08-20) release of the software. You can download is from here. It includes javadocs and source code.

Steen
Great example of OOP: thanks for the process. Thanks a lot for the tip.
gnucom