Code Monkey home page Code Monkey logo

Comments (5)

crownpku avatar crownpku commented on August 22, 2024

可以给出具体错误码?

另外,有先运行python initial.py吗?

from information-extraction-chinese.

macanv avatar macanv commented on August 22, 2024

换成了python3.5版本,tf 版本1.3.0 按照教程,运行了 initial.py --> train_GRU.py -->test_GRU.py 运行报错如下:
gykj@ubuntu:~/git/Information-Extraction-Chinese/RE_BGRU_2ATT$ python3 test_GRU.py
2017-08-29 10:05:16.610068: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
2017-08-29 10:05:16.610190: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
2017-08-29 10:05:16.610234: W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
Segmentation fault (core dumped)

from information-extraction-chinese.

macanv avatar macanv commented on August 22, 2024

将tf 版本重新安装成1.2.0, 再次运行test_GRU.py,出现如下错误,谢谢您的帮助
NotFoundError (see above for traceback): ./model/ATT_GRU_model-9000.data-00000-of-00001
[[Node: save/RestoreV2 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"](_arg_save/Const_0_0, save/RestoreV2/tensor_names, save/RestoreV2/shape_and_slices)]]

from information-extraction-chinese.

crownpku avatar crownpku commented on August 22, 2024

你好,如果自己重新train的话,是要把test_GRU.py里面的main函数的第一行(127行)换成自己的model名字:

pathname = "./model/ATT_GRU_model-9000"

如果是用我提供的预训练好的模型,请重新pull这个git仓库(抱歉之前少上传了一个模型文件),然后跑initial.py -> test_GRU.py试一下。

from information-extraction-chinese.

macanv avatar macanv commented on August 22, 2024

谢谢您的解答,运行没问题

from information-extraction-chinese.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.