diff options
author | armatthews <armatthe@cmu.edu> | 2014-05-23 01:44:14 -0400 |
---|---|---|
committer | armatthews <armatthe@cmu.edu> | 2014-05-23 01:44:14 -0400 |
commit | 4b3038e575a26172c117f6fd3acf902f8bf83e87 (patch) | |
tree | d367281c4633c1562adce57f8299d0e8a04147f8 /python/cdec | |
parent | f98c95a0c81b93d5474e74aa068795147cb09bb6 (diff) |
Added t2s to the list of known pycdec formalisms
Diffstat (limited to 'python/cdec')
-rw-r--r-- | python/cdec/_cdec.pyx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/cdec/_cdec.pyx b/python/cdec/_cdec.pyx index 47d0c739..2e4265d4 100644 --- a/python/cdec/_cdec.pyx +++ b/python/cdec/_cdec.pyx @@ -51,7 +51,7 @@ cdef class Decoder: if config_str is None: formalism = config.get('formalism', None) if formalism not in ('scfg', 'fst', 'lextrans', 'pb', - 'csplit', 'tagger', 'lexalign'): + 'csplit', 'tagger', 'lexalign', 't2s'): raise InvalidConfig('formalism "%s" unknown' % formalism) config_str = '\n'.join('%s = %s' % kv for kv in _make_config(config)) cdef istringstream* config_stream = new istringstream(config_str) |