This commit is contained in:
svlandeg 2019-07-22 15:04:57 +02:00
parent b1911f7105
commit 3e140534d9
1 changed files with 2 additions and 12 deletions

View File

@ -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):
outputfile.write(
article_id
+ "|"
+ alias
+ "|"
+ entity
+ "|"
+ str(start)
+ "|"
+ str(end)
+ "\n"
)
line = "{}|{}|{}|{}|{}\n".format(article_id, alias, entity, start, end)
outputfile.write(line)
def is_dev(article_id):