yzhangcs / parser

:rocket: State-of-the-art parsers for natural language.
https://parser.yzhang.site/
MIT License
827 stars 139 forks source link

UserWarning: Falling back to the old format < 1.6 #75

Closed cdhx closed 3 years ago

cdhx commented 3 years ago

run this

con = Parser.load('crf-con-en')
con.predict(['I', 'saw', 'Sarah', 'with', 'a', 'telescope', '.'], verbose=False)[0].pretty_print()

got error:

C:\Users\HX\.conda\envs\py36\lib\site-packages\torch\hub.py:452: UserWarning: Falling back to the old format < 1.6. This support will be deprecated in favor of default zipfile format introduced in 1.6. Please redo torch.save() to save it in the new zipfile format.
  warnings.warn('Falling back to the old format < 1.6. This support will be '

Google said I need to install ipywidgets, so I install it, and import it, no error

from ipywidgets import IntProgress

then I run

con = Parser.load('crf-con-en')
con.predict(['I', 'saw', 'Sarah', 'with', 'a', 'telescope', '.'], verbose=False)[0].pretty_print()

got error

ImportError: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html