Propagate error code from load_lm in decoder binding
This commit is contained in:
parent
420b2c5673
commit
50b0b8c010
@ -44,7 +44,7 @@ class Scorer(swigwrapper.Scorer):
|
||||
self.reset_params(alpha, beta)
|
||||
|
||||
def load_lm(self, lm_path):
|
||||
super(Scorer, self).load_lm(lm_path.encode('utf-8'))
|
||||
return super(Scorer, self).load_lm(lm_path.encode('utf-8'))
|
||||
|
||||
def save_dictionary(self, save_path, *args, **kwargs):
|
||||
super(Scorer, self).save_dictionary(save_path.encode('utf-8'), *args, **kwargs)
|
||||
|
Loading…
Reference in New Issue
Block a user