Showing with 4 additions and 0 deletions.
  1. +4 −0 indictrans/script_transliterate.py
4 changes: 4 additions & 0 deletions indictrans/script_transliterate.py
Expand Up @@ -86,6 +86,8 @@ def case_trans(self, word, k_best=5):
elif word[0] not in self.letters:
return word
if oword in self.lookup:
if self.target == 'urd':
return self.lookup[oword]
if self.decode == 'viterbi':
return self.wx_process(self.lookup[oword])
else:
Expand Down Expand Up @@ -128,6 +130,8 @@ def case_trans(self, word, k_best=5):
elif word[0] not in self.letters:
return word.translate(self.punkt_tbl)
if oword in self.lookup:
if self.target == 'eng':
return self.lookup[oword]
if self.decode == 'viterbi':
return self.wx_process(self.lookup[oword])
else:
Expand Down