summaryrefslogtreecommitdiff
path: root/client/g2p.py
diff options
context:
space:
mode:
Diffstat (limited to 'client/g2p.py')
-rw-r--r--client/g2p.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/client/g2p.py b/client/g2p.py
index 8ce7997..1e63d74 100644
--- a/client/g2p.py
+++ b/client/g2p.py
@@ -25,9 +25,7 @@ class PhonetisaurusG2P(object):
cmd_exists = shutil.which
# Required binary for this class
cmd = 'phonetisaurus-g2p'
- if not cmd_exists(cmd):
- return False
- return True
+ return cmd_exists(cmd)
@classmethod
def execute(cls, fst_model, input, is_file=False, nbest=None):