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

I've got question about the code in nn4nlp-code/16-reinforce/bilstm-tagger.py #30

Open
Zacharyyyy opened this issue Feb 3, 2019 · 0 comments

Comments

@Zacharyyyy
Copy link

I've got a few questions about the code, so I will just list them out. And hope some of you can help.

  1. In line 166, what is "XENT"? this variable only appears once in the code.
  2. In line 106, I don't understand why the probability distribution is calculated in that way?(By the ay my
    compiler said the as_array() part is not right.)
  3. In line 109, "len(x)" is not right. It kept showing this up "TypeError: object of type '_dynet.Expression' has no len()". And I don't really know why the samples are picked this way?
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