mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-01 02:13:07 +03:00
Auto-format
This commit is contained in:
parent
0d26bfe677
commit
d0f5e015cb
|
@ -626,7 +626,7 @@ def docs_to_json(docs, id=0):
|
||||||
json_sent["tokens"].append(json_token)
|
json_sent["tokens"].append(json_token)
|
||||||
json_para["sentences"].append(json_sent)
|
json_para["sentences"].append(json_sent)
|
||||||
json_doc["paragraphs"].append(json_para)
|
json_doc["paragraphs"].append(json_para)
|
||||||
return json_doc
|
return json_doc
|
||||||
|
|
||||||
|
|
||||||
def biluo_tags_from_offsets(doc, entities, missing="O"):
|
def biluo_tags_from_offsets(doc, entities, missing="O"):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user