From 8113ff19e6482773dce91376a10818010929d74d Mon Sep 17 00:00:00 2001 From: armatthews Date: Fri, 23 May 2014 01:44:14 -0400 Subject: Added t2s to the list of known pycdec formalisms --- python/cdec/_cdec.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') 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) -- cgit v1.2.3