~domy/domyce/trunk

« back to all changes in this revision

Viewing changes to lib/corpusfg/plugins/train-lm.py

  • Committer: Tom Hoar
  • Date: 2013-11-22 07:56:33 UTC
  • Revision ID: tahoar@precisiontranslationtools.com-20131122075633-jpdhq4ui75kzq3jv
updated to allow berkeleyaligner

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
#===============================================================================
7
7
 
8
8
#version:
9
 
#2.6.128 - updates supporting new FilterGraph package
 
9
#2.6.129 - updated to support berkeleyaligner
10
10
 
11
11
import os
12
12
import sys
50
50
                        'creationflags': 0,
51
51
                        },
52
52
                'script': '',
53
 
                'version': '2.6.128',
 
53
                'version': '2.6.129',
54
54
 
55
55
                'encoding': 'utf8',
56
56
                'recaser': '%(recaser)s',
191
191
                                self.alignertype = 'giza'
192
192
                        elif 'recaser' in self.alignertype:
193
193
                                self.alignertype = 'recaser'
194
 
 
195
 
 
 
194
                        elif 'berk' in self.alignertype:
 
195
                                self.alignertype = 'berk'
196
196
                        else:
197
197
                                self.errors.append([__name__,'invalid','\"[%s]\" alignertype=%s, but must be set to \'giza\', or \'recaser\''%(__name__,cfg['alignertype'])])
198
198
                                logger.error('%s\t%s',*self.errors[-1][1:])