mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 09:26:27 +03:00
Export iob_to_biluo utility
This commit is contained in:
parent
2b3b937a04
commit
2e587c6417
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user