-
-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bigrams omitted from save and load pickle methods #93
Comments
@k-dal Hi, sorry, I think it's because pickling was implemented before bigrams and I forgot to add it in when implementing bigrams. If you have managed to fix the issue on your end, would you like to submit a pull request so bigrams is included during pickling? |
@mammothb Got it, that makes sense (and no need to apologize!). Since you're open to a pull request, I'm thinking a handful of pickler-related alterations/upgrades might be good to do at the same time:
Anyway, thank you for the quick reply! Let me know what you think. |
|
Great, I'm looking forward to contributing here! (P.S. I'm getting married this weekend, and time is a bit tight this week and next while family's in town. So it may take me a few weeks to submit a PR. Let me know if any additional thoughts come to mind in the meantime.) |
@k-dal Congratulations! There's no rush on the PR.
|
I noticed I was getting better results when doing a fresh load of the included dictionary and bigrams_dictionary vs. when I was loading from a previously saved pickle. It turned out to be because
self._bigrams
data (as well as a number of other params & attributes) weren't being pickled and were therefore missing after loading from pickle. Adding the missing bigrams attribute to the pickling save/load utils resolved the issues I was having.I'm hardly an NLP expert, so before I waste your time with a pull request I have to ask: Is there a reason some attributes are omitted when pickling?
The text was updated successfully, but these errors were encountered: