Skip to content
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

Can't pickle RerankingParser: attribute lookup RerankerModel on importlib._bootstrap failed #52

Open
halfak opened this issue Oct 20, 2016 · 0 comments

Comments

@halfak
Copy link

halfak commented Oct 20, 2016

$ python
Python 3.5.1+ (default, Mar 30 2016, 22:46:26) 
[GCC 5.3.1 20160330] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from bllipparser import RerankingParser
>>> bllip_rrp = RerankingParser.fetch_and_load('WSJ-PTB3')
>>> import pickle
>>> len(pickle.dumps(bllip_rrp))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
_pickle.PicklingError: Can't pickle <class 'JohnsonReranker.RerankerModel'>: attribute lookup RerankerModel on importlib._bootstrap failed
@halfak halfak changed the title Can't pickle RerankingParser Can't pickle RerankingParser: attribute lookup RerankerModel on importlib._bootstrap failed Oct 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant