Export iob_to_biluo utility

This commit is contained in:
Matthew Honnibal 2017-05-26 11:32:55 -05:00
parent 2b3b937a04
commit 2e587c6417

View File

@ -305,7 +305,7 @@ def read_json_file(loc, docs_filter=None, limit=None):
yield [paragraph.get('raw', None), sents] yield [paragraph.get('raw', None), sents]
def _iob_to_biluo(tags): def iob_to_biluo(tags):
out = [] out = []
curr_label = None curr_label = None
tags = list(tags) tags = list(tags)