lx865712528 / EMNLP2018-JMEE

This is the code for our EMNLP 2018 paper "Jointly Multiple Events Extraction via Attention-based Graph Information Aggregation"
236 stars 57 forks source link

1 #19

Closed wanganping965 closed 5 years ago

wanganping965 commented 5 years ago

`def train(model, train_set, dev_set, test_set, optimizer_constructor, epochs, tester, parser, other_testsets):

build batch on cpu

train_iter = BucketIterator(train_set, batch_size=parser.batch, train=False, shuffle=True, device=-1,sort_key=lambda x: len(x.POSTAGS))`

but when i change the train to True,,, then i train it ,i found that most of train step the f1 and f, r are closed to 100%,,, so what's wrong with it?