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

No function pred_linearize #4

Open
nangeblog opened this issue Sep 3, 2019 · 4 comments
Open

No function pred_linearize #4

nangeblog opened this issue Sep 3, 2019 · 4 comments

Comments

@nangeblog
Copy link

Loading model from models/joint_bert_dev=95.55_devuas=96.67_devlas=94.86.pt1...
Better speed can be achieved with apex installed from https://www.github.com/nvidia/apex.
packages/torch/nn/_reduction.py:49: UserWarning: size_average and reduce args will be deprecated, please use reduction='sum' instead.
warnings.warn(warning.format(ret))
Parsing sentences...
Traceback (most recent call last):
File "src_joint/main.py", line 746, in
main()
File "src_joint/main.py", line 742, in main
args.callback(args)
File "src_joint/main.py", line 680, in run_parse
save_data(syntree_pred, cun)
File "src_joint/main.py", line 651, in save_data
output_file.write("{}\n".format(tree.pred_linearize()))
AttributeError: 'InternalParseNode' object has no attribute 'pred_linearize'

@yunju63
Copy link

yunju63 commented Jan 26, 2020

I have the same problem like below..!

스크린샷 2020-01-27 오전 1 07 15

@magoafono
Copy link

Me too!

@sanjeetGupta
Copy link

Try tho change: "tree.linearize()" to "tree.convert().linearize()"

@magoafono
Copy link

Try tho change: "tree.linearize()" to "tree.convert().linearize()"

Thank you! The problem is solved for me.

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

4 participants