We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8363475 commit f3f7e40Copy full SHA for f3f7e40
1 file changed
client/vocabcompiler.py
@@ -161,6 +161,27 @@ def _compile_vocabulary(self, phrases):
161
"""
162
pass
163
164
+class DummyVocabulary(AbstractVocabulary):
165
+
166
+ PATH_PREFIX = 'dummy-vocabulary'
167
168
+ @property
169
+ def is_compiled(self):
170
+ """
171
+ Checks if the vocabulary is compiled by checking if the revision
172
+ file is readable.
173
174
+ Returns:
175
+ True if this vocabulary has been compiled, else False
176
177
+ return super(self.__class__, self).is_compiled
178
179
+ def _compile_vocabulary(self, phrases):
180
181
+ Does nothing (because this is a dummy class for testing purposes).
182
183
+ pass
184
185
class PocketsphinxVocabulary(AbstractVocabulary):
186
187
PATH_PREFIX = 'pocketsphinx-vocabulary'
0 commit comments