I'm getting this error while solving machine translation assignment

this is error

this is Code

Do you still need help with this question?