diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2014-05-26 23:44:50 -0700 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2014-05-26 23:44:50 -0700 |
| commit | 5deb1799cefe9351b90d3457898990d454d4a4dc (patch) | |
| tree | 09f0d7b677dfb4eb5087fd7241336fdc67580a7b /boot/test.py | |
| parent | 546d050fcb1c114ad828593a4133f90f20966268 (diff) | |
| download | jasper-client-5deb1799cefe9351b90d3457898990d454d4a4dc.tar.gz jasper-client-5deb1799cefe9351b90d3457898990d454d4a4dc.zip | |
finalized test
Diffstat (limited to 'boot/test.py')
| -rw-r--r-- | boot/test.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/boot/test.py b/boot/test.py index 1c03a33..c6bd3ff 100644 --- a/boot/test.py +++ b/boot/test.py @@ -12,6 +12,7 @@ sys.path.append(mod_path) import g2p + class TestVocabCompiler(unittest.TestCase): def testWordExtraction(self): @@ -19,7 +20,12 @@ class TestVocabCompiler(unittest.TestCase): dictionary = "temp_dictionary.dic" languagemodel = "temp_languagemodel.lm" - words = ['HACKER', 'LIFE', 'FACEBOOK', 'THIRD', 'NO', 'JOKE', 'NOTIFICATION', 'MEANING', 'TIME', 'TODAY', 'SECOND', 'BIRTHDAY', 'KNOCK KNOCK', 'INBOX', 'OF', 'NEWS', 'YES', 'TOMORROW', 'EMAIL', 'WEATHER', 'FIRST', 'MUSIC', 'SPOTIFY'] + words = [ + 'HACKER', 'LIFE', 'FACEBOOK', 'THIRD', 'NO', 'JOKE', + 'NOTIFICATION', 'MEANING', 'TIME', 'TODAY', 'SECOND', + 'BIRTHDAY', 'KNOCK KNOCK', 'INBOX', 'OF', 'NEWS', 'YES', + 'TOMORROW', 'EMAIL', 'WEATHER', 'FIRST', 'MUSIC', 'SPOTIFY' + ] with patch.object(g2p, 'translateWords') as translateWords: with patch.object(vocabcompiler, 'text2lm') as text2lm: |
