NameError: name ‘infer’ is not defined - Encoder decoder models

In the below notebook :
0721_EncoderDecoderArchitecture.ipynb

https://drive.google.com/open?id=1U_UmzCX7YdHgZj2F8gjwgl84ahN267oR

while running : out = infer(net, ‘INDIA’, 30)
I got the below error:
NameError Traceback (most recent call last)
in ()
----> 1 out = inference(net, ‘INDIA’, 30)

NameError: name ‘inference’ is not defined

How can I solve this? Please help

Please check

1 Like

Thanks a lot!

Suppose I want to translate a single string ‘Delhi’ so check whether transliteration works properly or not. How can I do that ?

I tried using:
test(net,‘DELHI’)
I got the output as :
DELHI - नॉऴॏऻू
‘नॉऴॏऻू’
Please show me the correct method

It means that the model is not trained well.
If you train it properly, it might produce relevant output.

For further discussions: How to test transliteration output - Encoder decoder models