Skip to content

Commit

Permalink
Fix Serializable fix hankcs#1431
Browse files Browse the repository at this point in the history
  • Loading branch information
hankcs committed Feb 24, 2020
1 parent 0bc5195 commit 729e790
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hanlp/common/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ def load(self, path, fmt=None):
if filename_is_json(path):
self.load_json(path)
else:
self.load_json(path)
self.load_pickle(path)
elif fmt in ['json', 'jsonl']:
self.load_json(path)
else:
self.load(path)
self.load_pickle(path)

def save_pickle(self, path):
"""Save to path
Expand Down

0 comments on commit 729e790

Please sign in to comment.