diff options
author | Michael Denkowski <mdenkows@cs.cmu.edu> | 2013-09-02 15:09:19 -0700 |
---|---|---|
committer | Michael Denkowski <mdenkows@cs.cmu.edu> | 2013-09-02 15:09:19 -0700 |
commit | e6f15583081547a4adc2fca7f2ed96cb515a48f5 (patch) | |
tree | 1905387d7969798fc59a73df0e9e72944ed77c11 /realtime/realtime.py | |
parent | e078ac74f3499298742174a06f915b58f2d4cbdb (diff) |
Use kbest_cut_mira stream as decoder
Diffstat (limited to 'realtime/realtime.py')
-rwxr-xr-x | realtime/realtime.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/realtime/realtime.py b/realtime/realtime.py index c42b52ab..c169ce4c 100755 --- a/realtime/realtime.py +++ b/realtime/realtime.py @@ -11,7 +11,7 @@ import tempfile import time from rt import ForceAligner -from rt import CdecDecoder +from rt import MIRADecoder class RealtimeDecoder: @@ -35,8 +35,7 @@ class RealtimeDecoder: # Decoder decoder_config = os.path.join(configdir, 'cdec.ini') decoder_weights = os.path.join(configdir, 'weights.final') - #TODO: run MIRA instead - self.decoder = CdecDecoder(decoder_config, decoder_weights) + self.decoder = MIRADecoder(decoder_config, decoder_weights) def close(self): logging.info('Closing processes') @@ -90,6 +89,7 @@ def main(): if len(input) == 1: hyp = rtd.decode(input[0]) sys.stdout.write('{}\n'.format(hyp)) + sys.stdout.flush() elif len(input) == 2: rtd.learn(*input) |