Export iob_to_biluo utility

This commit is contained in:
Matthew Honnibal 2017-05-26 11:32:55 -05:00
parent 2b3b937a04
commit 2e587c6417
1 changed files with 1 additions and 1 deletions

View File

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