-
Notifications
You must be signed in to change notification settings - Fork 6
wnaffect plugin deactivate exception (can't pickle file object) #5
Comments
deleting the WordNetCorpusReader from self.sh in the plugins It seems that class is not piclable, at least not without some massaging. |
That is not happen to me: |
Maybe it's a python 2/3 thing? I've been using python 3 here. But yes, not shelving the WordnetCorpusBuilder could be a good idea. fyi: I've been building a multilingual wordnet in python 3 (since I can't do pos tagging). I'm converting wn1.6 ids in wn-affect to wn3.0 ids so I can use I'll try to have a look once I get my next version running. |
I would guess it's my nltk version that's different. I can investigate if you prefer to keep the WordnetCorpusBuilder in the shelf. btw: I've built a similar plugin (will be adding it here soon - it's in my fork if you're interested). The main things are 1) it uses the "open multilingual wordnet" in combination with NUIG's polylingual wordnet, so it covers some 40 languages and 2) it doesn't do word sense disambiguation, but instead counts a word if ANY of it's senses are in wordnet-affect emotion classes. Oh, I've also modified/expanded the classes used somewhat, especially for disgust, and added surprise. It uses wn-affect heirarchy levels 5, 6 and 7. Not yet tested in python 2 (hence I've not made a pull request yet). |
This looks like an object fairly deep in an object heirarchy. Could it be a file object stored in the WordNetCorpusReader??
The text was updated successfully, but these errors were encountered: