Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

semantic_role_labeling demo中预测predict.sh无法跑通 #2404

Closed
April1010 opened this issue Jun 7, 2017 · 1 comment
Closed

semantic_role_labeling demo中预测predict.sh无法跑通 #2404

April1010 opened this issue Jun 7, 2017 · 1 comment
Assignees

Comments

@April1010
Copy link

具体日志如下:
I0607 13:20:58.145887 32048 Util.cpp:155] commandline: --use_gpu=0
I0607 13:20:58.146003 32048 Util.cpp:130] Calling runInitFunctions
I0607 13:20:58.146319 32048 Util.cpp:143] Call runInitFunctions done.
[INFO 2017-06-07 13:20:58,247 networks.py:1282] The input order is [word_data, ctx_n2_data, ctx_n1_data, ctx_0_data, ctx_p1_data, ctx_p2_data, verb_data, mark_data]
[INFO 2017-06-07 13:20:58,247 networks.py:1289] The output order is [crf_dec_l]
I0607 13:20:58.289443 32048 GradientMachine.cpp:123] Loading parameters from output/pass-00001
Traceback (most recent call last):
File "predict.py", line 193, in
main()
File "predict.py", line 189, in main
predict.predict(data_file, output_file)
File "predict.py", line 107, in predict
output = self.network.forwardTest(input)
File "/home/disk2/lishuangjie/tools/paddle/paddle/python27-gcc482/lib/python2.7/site-packages/py_paddle/util.py", line 149, in forwardTest
outArgs.getSlotNum())]
File "/home/disk2/lishuangjie/tools/paddle/paddle/python27-gcc482/lib/python2.7/site-packages/py_paddle/util.py", line 89, in arguments_to_numpy
if ids is not None:
UnboundLocalError: local variable 'ids' referenced before assignment

@lcy-seso
Copy link
Contributor

lcy-seso commented Jun 7, 2017

你好~ 建议使用 paddle book 下 SRL 相关的代码。demo 目录下旧版本的 paddle 例子目前已经被移除。我在本地无法复这个错误。

@lcy-seso lcy-seso closed this as completed Jun 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants