diff --git a/iobber/chunker.py b/iobber/chunker.py index e04936922c60eaf25eeaf740a4a6c172073e641f..aacdd2f9ae096ace533c039dc7c48c7fb1618306 100644 --- a/iobber/chunker.py +++ b/iobber/chunker.py @@ -227,6 +227,8 @@ class Chunker: non_O_tag, non_O_chan = decsn_array elif len(decsn_array) == 3: non_O_tag, non_O_chan, is_head = decsn_array + else: + raise IOError('Unexpected label returned from classifier: ' + decsn) for chan_name in chans: chan = asent.get_channel(chan_name) # TODO: rename the from_string in corpus2 and fix it here