summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2014-05-26 23:44:50 -0700
committerschneefux <schneefux+commit@schneefux.xyz>2014-05-26 23:44:50 -0700
commit5deb1799cefe9351b90d3457898990d454d4a4dc (patch)
tree09f0d7b677dfb4eb5087fd7241336fdc67580a7b
parent546d050fcb1c114ad828593a4133f90f20966268 (diff)
downloadjasper-client-5deb1799cefe9351b90d3457898990d454d4a4dc.tar.gz
jasper-client-5deb1799cefe9351b90d3457898990d454d4a4dc.zip
finalized test
-rw-r--r--boot/test.py8
-rw-r--r--boot/vocabcompiler.py1
2 files changed, 7 insertions, 2 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:
diff --git a/boot/vocabcompiler.py b/boot/vocabcompiler.py
index 33fb0a8..1d2a51d 100644
--- a/boot/vocabcompiler.py
+++ b/boot/vocabcompiler.py
@@ -48,7 +48,6 @@ def compile(sentences, dictionary, languagemodel):
pass # module probably doesn't have the property
words = list(set(words))
- print words
# for spotify module
words.extend(["MUSIC", "SPOTIFY"])