mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
format
This commit is contained in:
parent
b1911f7105
commit
3e140534d9
|
@ -307,18 +307,8 @@ def _write_training_article(article_id, clean_text, training_output):
|
||||||
|
|
||||||
|
|
||||||
def _write_training_entity(outputfile, article_id, alias, entity, start, end):
|
def _write_training_entity(outputfile, article_id, alias, entity, start, end):
|
||||||
outputfile.write(
|
line = "{}|{}|{}|{}|{}\n".format(article_id, alias, entity, start, end)
|
||||||
article_id
|
outputfile.write(line)
|
||||||
+ "|"
|
|
||||||
+ alias
|
|
||||||
+ "|"
|
|
||||||
+ entity
|
|
||||||
+ "|"
|
|
||||||
+ str(start)
|
|
||||||
+ "|"
|
|
||||||
+ str(end)
|
|
||||||
+ "\n"
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def is_dev(article_id):
|
def is_dev(article_id):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user