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

assert expected classifier response

parent 8897ad73
No related branches found
No related tags found
No related merge requests found
...@@ -227,6 +227,8 @@ class Chunker: ...@@ -227,6 +227,8 @@ class Chunker:
non_O_tag, non_O_chan = decsn_array non_O_tag, non_O_chan = decsn_array
elif len(decsn_array) == 3: elif len(decsn_array) == 3:
non_O_tag, non_O_chan, is_head = decsn_array non_O_tag, non_O_chan, is_head = decsn_array
else:
raise IOError('Unexpected label returned from classifier: ' + decsn)
for chan_name in chans: for chan_name in chans:
chan = asent.get_channel(chan_name) chan = asent.get_channel(chan_name)
# TODO: rename the from_string in corpus2 and fix it here # TODO: rename the from_string in corpus2 and fix it here
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment