From 4b3038e575a26172c117f6fd3acf902f8bf83e87 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(-) 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