Skip to content

Commit

Permalink
spinx: improved codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
andweber committed May 17, 2016
1 parent 369f1a2 commit acb5df4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/stt/pocketsphinx-stt/g2p.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@

def execute(executable, version, fst_model, input, is_file=False, nbest=None):
logger = logging.getLogger(__name__)

cmd = [executable,
'--model=%s' % fst_model]
if version <= 0.8:
if version <= 0.8:
cmd.append('--input=%s' % input)
cmd.append('--words')
if is_file:
Expand All @@ -29,7 +29,7 @@ def execute(executable, version, fst_model, input, is_file=False, nbest=None):
if is_file:
cmd.append('--wordlist=%s' % input)
else:
cmd.append('--word=%s' % input)
cmd.append('--word=%s' % input)

if nbest is not None:
cmd.extend(['--nbest=%d' % nbest])
Expand Down

0 comments on commit acb5df4

Please sign in to comment.