wn icon indicating copy to clipboard operation
wn copied to clipboard

Allow for pickling/deepcopy of wordnet objects

Open goodmami opened this issue 4 years ago • 0 comments

Context: nltk/wordnet#28

Currently objects like Synset cannot be deepcopied or pickled because they store a connection to the database. Removing that allows them to be copied/pickled, but these objects still contain database rowids which means they cannot be stored and loaded on some other build of the database (e.g., another machine). Either we stop storing the rowids (hopefully without too big a performance hit) or we write a custom deepcopy method.

goodmami avatar Jan 19 '21 03:01 goodmami