summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarmatthews <armatthe@cmu.edu>2014-05-23 01:44:14 -0400
committerarmatthews <armatthe@cmu.edu>2014-05-23 01:44:14 -0400
commit8113ff19e6482773dce91376a10818010929d74d (patch)
tree2368fde39b458ac44ccebe4b8e1c8ececaa6c3be
parentf520628b468b57a3642ee63a72690b120f4e94e7 (diff)
Added t2s to the list of known pycdec formalisms
-rw-r--r--python/cdec/_cdec.pyx2
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)