utahnlp / consistency Goto Github PK
View Code? Open in Web Editor NEWImplementation of models in our EMNLP 2019 paper: A Logic-Driven Framework for Consistency of Neural Models
License: Apache License 2.0
Implementation of models in our EMNLP 2019 paper: A Logic-Driven Framework for Consistency of Neural Models
License: Apache License 2.0
Hi,
I followed all the preprocessing steps and installed the required packages.
However, I am facing an error in training a baseline model with this code.
I am using exactly the same command as here. I believe it has something to do with the use of extra_train_data
. Would be helpful if you had any suggestion for how to resolve this.
Grad overflow on iteration 0
Using dynamic loss scale of 65536
Traceback (most recent call last):
File "train.py", line 579, in <module>
sys.exit(main(sys.argv[1:]))
File "train.py", line 574, in main
train(opt, shared, m, optim, train_data, val_data, extra_train, extra_val, unlabeled)
File "train.py", line 410, in train
train_perf, extra_train_perf, loss, num_ex = train_epoch(opt, shared, m, optim, train_data, i, train_idx, extra, extra_idx, unlabeled, unlabeled_idx)
File "train.py", line 216, in train_epoch
batch_ex_idx, batch_l, source_l, target_l, label, res_map) = data[batch_order[i]]
File "/net/nfs.corp/alexandria/chaitanyam/consistency/data.py", line 264, in __getitem__
batch_l, source_l, target_l, label) = self.batches[idx]
IndexError: list index out of range
Thanks for your help!
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.