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

In the below notebook :

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:
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