You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi :)
When I'm changing the coverage to true :
COVERAGE_PENALTY = True # Apply source coverage penalty
COVERAGE_NORM_FACTOR = 0.2 # Coverage penalty factor
I get the following error on evaluation time :
nmt-keras/src/keras-wrapper/keras_wrapper/cnn_model.py", line 2140, in predictBeamSearchNet
length_penalties = [1.0 for _ in len(samples)]
TypeError: 'int' object is not iterable
I don't know if its matter but the length penalty is still set to False.
I think that the same problem will return on line 2272 in the same file:
coverage_penalties = [0.0 for _ in len(samples)]
Thanks again for all of your help, I'm really appreciating it .
The text was updated successfully, but these errors were encountered:
Hi :)
When I'm changing the coverage to true :
COVERAGE_PENALTY = True # Apply source coverage penalty
COVERAGE_NORM_FACTOR = 0.2 # Coverage penalty factor
I get the following error on evaluation time :
nmt-keras/src/keras-wrapper/keras_wrapper/cnn_model.py", line 2140, in predictBeamSearchNet
length_penalties = [1.0 for _ in len(samples)]
TypeError: 'int' object is not iterable
I don't know if its matter but the length penalty is still set to False.
I think that the same problem will return on line 2272 in the same file:
coverage_penalties = [0.0 for _ in len(samples)]
Thanks again for all of your help, I'm really appreciating it .
The text was updated successfully, but these errors were encountered: