开发者

Serializing Stanford Parser objects

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 interfac开发者_如何学Ce 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!


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜