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

code wrong #13

Open
RuiqingGao opened this issue Jul 18, 2021 · 0 comments
Open

code wrong #13

RuiqingGao opened this issue Jul 18, 2021 · 0 comments

Comments

@RuiqingGao
Copy link

I think your codes has a little mistake. in the train.py.

if args.use_RA and args.sent_encoding == "pcnn": loss = model.PCNN_ATTRA(total_word, total_pos1, total_pos2, total_pcnnmask, total_shape, y_batch) if args.use_RA and args.sent_encoding == "cnn": loss = model.CNN_ATTRA(total_word, total_pos1, total_pos2, total_pcnnmask, total_shape, y_batch) if not args.use_RA and args.sent_encoding == "pcnn": loss = model.PCNN_ATT**RA**(total_word, total_pos1, total_pos2, total_pcnnmask, total_shape, y_batch) if not args.use_RA and args.sent_encoding == "cnn": loss = model.CNN_ATTBL(total_word, total_pos1, total_pos2, total_pcnnmask, total_shape, y_batch)

line 278should be "model.PCNN_ATTBL"

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

1 participant