Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion supar/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ def load(
args = Config(**locals())
if not os.path.exists(path):
path = download(supar.MODEL[src].get(path, path), reload=reload)
state = torch.load(path, map_location='cpu')
state = torch.load(path, map_location='cpu', weights_only=False)
cls = supar.PARSER[state['name']] if cls.NAME is None else cls
args = state['args'].update(args)
model = cls.MODEL(**args)
Expand Down
Loading