crownpku / Information-Extraction-Chinese

Chinese Named Entity Recognition with IDCNN/biLSTM+CRF, and Relation Extraction with biGRU+2ATT 中文实体识别与关系提取
2.23k stars 814 forks source link

test_GRU.py Runtime warning! #116

Open wangwei921216 opened 5 years ago

wangwei921216 commented 5 years ago

Testing started at 上午 11:10 ... F:\python\Anaconda3\envs\tensorflow\python.exe "F:\Program Files\PyCharm 2018.3.3\helpers\pycharm_jb_pytest_runner.py" --path F:/WorkSpace/python/Information-Extraction-Chinese-master/RE_BGRU_2ATT/test_GRU.py Launching pytest with arguments F:/WorkSpace/python/Information-Extraction-Chinese-master/RE_BGRU_2ATT/test_GRU.py in F:\WorkSpace\python\Information-Extraction-Chinese-master\RE_BGRU_2ATT

============================= test session starts ============================= platform win32 -- Python 3.5.6, pytest-3.8.1, py-1.6.0, pluggy-0.11.0 rootdir: F:\WorkSpace\python\Information-Extraction-Chinese-master\RE_BGRU_2ATT, inifile: plugins: remotedata-0.3.0, openfiles-0.4.0, doctestplus-0.4.0, arraydiff-0.2collected 0 items

============================== warnings summary =============================== F:\python\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\framework\ops.py:871: DeprecationWarning: builtin type EagerTensor has no module attribute EagerTensor = c_api.TFE_Py_InitEagerTensor(_EagerTensorBase)

F:\python\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\util\tf_inspect.py:45: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead if d.decorator_argspec is not None), _inspect.getargspec(target)) F:\python\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\util\tf_inspect.py:45: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead if d.decorator_argspec is not None), _inspect.getargspec(target)) F:\python\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\util\tf_inspect.py:45: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead if d.decorator_argspec is not None), _inspect.getargspec(target)) F:\python\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\util\tf_inspect.py:45: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead if d.decorator_argspec is not None), _inspect.getargspec(target)) F:\python\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\util\tf_inspect.py:45: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead if d.decorator_argspec is not None), _inspect.getargspec(target)) F:\python\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\util\tf_inspect.py:45: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead if d.decorator_argspec is not None), _inspect.getargspec(target)) F:\python\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\util\tf_inspect.py:45: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead if d.decorator_argspec is not None), _inspect.getargspec(target)) F:\python\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\util\tf_inspect.py:45: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead if d.decorator_argspec is not None), _inspect.getargspec(target)) F:\python\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\util\tf_inspect.py:45: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead if d.decorator_argspec is not None), _inspect.getargspec(target)) F:\python\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\util\tf_inspect.py:45: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead if d.decorator_argspec is not None), _inspect.getargspec(target)) F:\python\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\util\tf_inspect.py:45: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead if d.decorator_argspec is not None), _inspect.getargspec(target)) F:\python\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\util\tf_inspect.py:45: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead if d.decorator_argspec is not None), _inspect.getargspec(target)) F:\python\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\util\tf_inspect.py:45: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead if d.decorator_argspec is not None), _inspect.getargspec(target)) F:\python\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\util\tf_inspect.py:45: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead if d.decorator_argspec is not None), _inspect.getargspec(target)) F:\python\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\util\tf_inspect.py:45: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead if d.decorator_argspec is not None), _inspect.getargspec(target)) F:\python\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\util\tf_inspect.py:45: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead if d.decorator_argspec is not None), _inspect.getargspec(target)) F:\python\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\util\tf_inspect.py:45: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead if d.decorator_argspec is not None), _inspect.getargspec(target)) F:\python\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\util\tf_inspect.py:45: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead if d.decorator_argspec is not None), _inspect.getargspec(target)) F:\python\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\util\tf_inspect.py:45: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead if d.decorator_argspec is not None), _inspect.getargspec(target)) F:\python\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\util\tf_inspect.py:45: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead if d.decorator_argspec is not None), _inspect.getargspec(target)) F:\python\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\util\tf_inspect.py:45: DeprecationWarning: inspect.getargspec() is deprecated, use inspect.signature() instead if d.decorator_argspec is not None), _inspect.getargspec(target))

-- Docs: https://docs.pytest.org/en/latest/warnings.html ========================= 22 warnings in 1.98 seconds =========================

Process finished with exit code 0

Thank you for sharing . Is this a version compatibility issue?

RebeccaJiajunLUO commented 4 years ago

warning一般可以在代码运行的时候忽略,这个是由于你tensorflow的版本和作者的环境版本不一致造成的,只要不出error,就可以直接忽略,如果实在难受,可以根据warning的提示内容逐行修改代码。