Skip to content

Commit

Permalink
Update subject_extract.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bojone committed Jun 18, 2019
1 parent 93c9b00 commit 6bc8e05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions subject_extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def evaluate(self):
def test(test_data):
F = open('result.txt', 'w')
for d in tqdm(iter(test_data)):
s = u'"%s","%s"\n' % (d[0], extract_entity(d[1].replace('\t', ''), d[2]))
s = u'"%s","%s"\n' % (d[0], extract_entity(d[1], d[2]))
s = s.encode('utf-8')
F.write(s)
F.close()
Expand All @@ -264,7 +264,7 @@ def test(test_data):
if __name__ == '__main__':
train_model.fit_generator(train_D.__iter__(),
steps_per_epoch=len(train_D),
epochs=20,
epochs=120,
callbacks=[evaluator]
)
else:
Expand Down

0 comments on commit 6bc8e05

Please sign in to comment.