neubig / nn4nlp-code

Code Samples from Neural Networks for NLP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doubt regarding the code

Sreelakshmi-k opened this issue · comments

I've got a few questions about the code "16-reinforce" , so I will just list them out. And hope you can help.

  1. line 106 throws an error '_dynet.Expression' object has no attribute 'as_array'
    2)line 109 throws an error '_dynet.Expression' object has no attribute 'len(x)'

Can you please help me the solution for this.