Skip to content
Snippets Groups Projects
Commit e2ebf2b5 authored by Adam Radziszewski's avatar Adam Radziszewski
Browse files

assert expected classifier response

parent 8897ad73
Branches
No related merge requests found
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment