Skip to content

Commit

Permalink
make ptien slu working
Browse files Browse the repository at this point in the history
  • Loading branch information
oplatek committed Mar 14, 2016
1 parent 896b4d9 commit d27ab26
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions alex/applications/PublicTransportInfoEN/slu/prepare_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals
if __name__ == '__main__':
import autopath

import glob
import os
Expand Down Expand Up @@ -42,7 +44,7 @@ def normalise_semi_words(txt):
def main():
cldb = CategoryLabelDatabase('../data/database.py')
preprocessing = PTIENSLUPreprocessing(cldb)
slu = PTIENHDCSLU(preprocessing)
slu = PTIENHDCSLU(preprocessing, cfg=Config.load_configs(['../ptien_hdc_slu.cfg']))
cfg = Config.load_configs(['../kaldi.cfg',], use_default=True)
asr_rec = asr_factory(cfg)

Expand Down Expand Up @@ -315,4 +317,4 @@ def main():


if __name__ == '__main__':
main()
main()

0 comments on commit d27ab26

Please sign in to comment.