Traceback (most recent call last):


 "keyword-extractor.py", line 40, in <module>

keywordextract(args.sentence, args.path)


 "keyword-extractor.py", line 28, in keywordextract

model.load_state_dict(torch.load(path))


 "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 1045, in load_state_dict

self.__class__.__name__, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for BertForTokenClassification:

Traceback (most recent call last):


 "/Users/.../.../.../.../demo.py", line 13, in <module>

event, values = window.read()


 "/Users/.../opt/anaconda3/envs/test2/lib/python3.6/site-packages/PySimpleGUI/PySimpleGUI.py", line 6957, in Read

results = self._read(timeout=timeout, timeout_key=timeout_key)


 "/Users/.../opt/anaconda3/envs/test2/lib/python3.6/site-packages/PySimpleGUI/PySimpleGUI.py", line 6995, in _read

self._Show()


 "/Users/.../opt/anaconda3/envs/test2/lib/python3.6/site-packages/PySimpleGUI/PySimpleGUI.py", line 6831, in _Show

StartupTK(self)


 "/Users/.../opt/anaconda3/envs/test2/lib/python3.6/site-packages/PySimpleGUI/PySimpleGUI.py", line 11259, in StartupTK

Window.hidden_master_root.wm_overrideredirect(True)


 "/Users/.../opt/anaconda3/envs/test2/lib/python3.6/tkinter/__init__.py", line 1948, in wm_overrideredirect

'wm', 'overrideredirect', self._w, boolean))


 "/Users/.../opt/anaconda3/envs/test2/lib/python3.6/tkinter/__init__.py", line 1298, in _getboolean

return self.tk.getboolean(string)
_tkinter.TclError: expected boolean value but got ""
