summaryrefslogtreecommitdiff
path: root/python/cdec/_cdec.pyx
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2014-06-12 13:56:42 +0200
committerPatrick Simianer <p@simianer.de>2014-06-12 13:56:42 +0200
commita39aa79b18347e22ef36ebc0da5a7eb220bcb23f (patch)
tree2c0f3009f8e381002bfeb82c0ea3bd0c41125761 /python/cdec/_cdec.pyx
parent62bd9a4bdcea606d6ff2031fa4b207ef20caac31 (diff)
parent0e2f8d3d049f06afb08b4639c6a28aa5461cdc78 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'python/cdec/_cdec.pyx')
-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)