diff options
Diffstat (limited to 'client')
| -rw-r--r-- | client/test.py | 3 | ||||
| -rw-r--r-- | client/vocabcompiler.py | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/client/test.py b/client/test.py index 7f31f37..0034974 100644 --- a/client/test.py +++ b/client/test.py @@ -86,7 +86,8 @@ class TestMic(unittest.TestCase): class TestG2P(unittest.TestCase): def setUp(self): - self.g2pconverter = g2p.PhonetisaurusG2P(**g2p.PhonetisaurusG2P.get_config()) + self.g2pconverter = g2p.PhonetisaurusG2P( + **g2p.PhonetisaurusG2P.get_config()) self.words = ['GOOD', 'BAD', 'UGLY'] def testTranslateWord(self): diff --git a/client/vocabcompiler.py b/client/vocabcompiler.py index 1cfe15e..d0f0124 100644 --- a/client/vocabcompiler.py +++ b/client/vocabcompiler.py @@ -323,7 +323,7 @@ class PocketsphinxVocabulary(AbstractVocabulary): line = "%s\t%s\n" % (word, pronounciation) else: line = "%s(%d)\t%s\n" % (word, i, pronounciation) - f.write(line) + f.write(line) def get_phrases_from_module(module): |
