cbaziotis / seq3 Goto Github PK
View Code? Open in Web Editor NEWSource code for the NAACL 2019 paper "SEQ^3: Differentiable Sequence-to-Sequence-to-Sequence Autoencoder for Unsupervised Abstractive Sentence Compression"
Source code for the NAACL 2019 paper "SEQ^3: Differentiable Sequence-to-Sequence-to-Sequence Autoencoder for Unsupervised Abstractive Sentence Compression"
Hi, thanks for the code.
Just want to confirm, because the seq3 training is looking for lm_giga_articles_all_10K.pt, while the lm prior training saves as lm_prior.pt
I guess I can simply rename it to make it work?
Thanks!
Hello,
I am trying to reproduce your results, but I can't seem to fit the model in memory. Could you please tell me your hardware specs as well as whether you ran into out-of-memory issues.
Also could you please motivate your choice of recurrent encoder-decoder models instead of the more recent transformer architecture.
Great work, looking forward to hearing from you.
The file 'utils/eval.py' contains several errors:
$ python models/seq3.py --config model_configs/seq3.yaml
Traceback (most recent call last):-----------------] Time: 0m 8s (-23m 15s)
File "models/seq3.py", line 423, in <module>
train_loss = trainer.train_epoch()
File "/home/jinzy/work/compression/seq3/modules/training/trainer.py", line 118, in train_epoch
c(batch, losses, loss_list, batch_outputs)
File "models/seq3.py", line 368, in eval_callback
scores = rouge_file_list(config["data"]["ref_path"], hyps)
File "./utils/eval.py", line 33, in rouge_file_list
scores = rouge_lists(refs, hyps_list)
File "./utils/eval.py", line 17, in rouge_lists
stemming=True)
TypeError: __init__() got an unexpected keyword argument 'max_n'
The compressor and reconstructor are using Glove as their embedding layer. I am curious about why did you use Glove instead of embedding from LM prior.
max_n=2
limit_length
Total Params: 4.6M
Total Trainable Params: 4.6M
Epoch:1, Batch:100/15800 (1%) [--------------------] Time: 0m 10s (-28m 40s)
Traceback (most recent call last):
File "models/seq3.py", line 423, in <module>
train_loss = trainer.train_epoch()
File "/users/jwilliams/code/seq3/modules/training/trainer.py", line 118, in train_epoch
c(batch, losses, loss_list, batch_outputs)
File "models/seq3.py", line 368, in eval_callback
scores = rouge_file_list(config["data"]["ref_path"], hyps)
File "./utils/eval.py", line 33, in rouge_file_list
scores = rouge_lists(refs, hyps_list)
File "./utils/eval.py", line 17, in rouge_lists
stemming=True)
TypeError: __init__() got an unexpected keyword argument 'limit_length'
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.