martin6336 / dsgsum Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
The data has been preprocessed, run train.py, this error occurs:
Traceback (most recent call last):
File "/home/mist/src/train.py", line 140, in
train_abs(args, device_id)
File "/home/mist/src/train_abstractive.py", line 276, in train_abs
train_abs_single(args, device_id)
File "/home/mist/src/train_abstractive.py", line 339, in train_abs_single
trainer.train(train_iter_fct, args.train_steps, device_id)
File "/home/mist/src/models/trainer.py", line 145, in train
for i, batch in enumerate(train_iter):
File "/home/mist/src/models/data_loader.py", line 205, in iter
for batch in self.cur_iter:
File "/home/mist/src/models/data_loader.py", line 363, in iter
for idx, minibatch in enumerate(self.batches):
File "/home/mist/src/models/data_loader.py", line 343, in create_batches
for buffer in self.batch_buffer(data, self.batch_size * 300):
File "/home/mist/src/models/data_loader.py", line 311, in batch_buffer
ex = self.preprocess(ex, self.is_test)
File "/home/mist/src/models/data_loader.py", line 256, in preprocess
tgt = ex['tgt'][:self.args.max_tgt_len][:-1]+[2]
KeyError: 'tgt'
Do not reproduce the thesis, there is no prepro processing file,
good jobs,bro
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.