Skip to content

Commit

Permalink
don't try to open pickle files in text mode (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
LoicGrobol committed Oct 16, 2020
1 parent dc480e6 commit c0d8a82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uuparser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def run(experiment,options):
else: #continue
if options.continueParams:
paramsfile = options.continueParams
with open(paramsfile, 'r') as paramsfp:
with open(paramsfile, 'rb') as paramsfp:
stored_vocab, stored_options = pickle.load(paramsfp)
logger.debug('Initializing the model:')
parser = Parser(stored_vocab, stored_options)
Expand Down

0 comments on commit c0d8a82

Please sign in to comment.