Skip to content

Commit

Permalink
Merge pull request #1 from Priberam/master
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
tomhosking committed Aug 6, 2019
2 parents 23daee2 + 54afca7 commit ab8ea0d
Show file tree
Hide file tree
Showing 6 changed files with 814 additions and 878 deletions.
12 changes: 8 additions & 4 deletions README.md
@@ -1,4 +1,8 @@
# Under Construction - please wait# ExCoNSumm :Jointly Extracting and Compressing Documentswith Summary State Representations

# Under Construction - please wait

# ExCoNSumm :Jointly Extracting and Compressing Documentswith Summary State Representations


This repository releases our code for ExConSum. It uses dynet and the code is in C++.

Expand All @@ -10,19 +14,19 @@ Please contact afonso@priberam.com or sebastiao@priberam.com for any question.

The datasets and the word emebeddings are the same as for REFRESH except for the compressed version. You can get them from https://github.com/EdinburghNLP/Refresh.

The Compressive Oracles dataset used in the paper are available at:
The Compressive and extactive Oracles dataset used in the paper are available at:

```
wget ftp://"ftp.priberam.pt|anonymous"@ftp.priberam.pt/SUMMAPublic/Corpora/Exconsumm/ExCoNSum-CNN-DailyMail-Data.tgz
```

### Training

./exconsumm -ccnndm.cfg -t --dynet-autobatch 1 --dynet-mem 7500
./exconsumm -cconfig/extractive_cnn.cfg -t --dynet-autobatch 1 --dynet-mem 7500

### Evaluation

./exconsumm -ccnndm.cfg -t --dynet-autobatch 1 --dynet-mem 7500
./exconsumm -coutput/.cfg --dynet-autobatch 1 --dynet-mem 7500

### Build the system

Expand Down
2 changes: 0 additions & 2 deletions exconsumm/Corpus.cpp
Expand Up @@ -635,8 +635,6 @@ void Document::OutputSummary(const std::vector<int>& sentences_actions, const st
}
}

std::ofstream asumr_file(path + ".asum");
asumr_file << abstractive_summary << std::endl;
}


Expand Down
2 changes: 0 additions & 2 deletions exconsumm/NeuralSummarization.cpp
Expand Up @@ -194,7 +194,6 @@ int main(int argc, char** argv)

model_config->Logger("csum") << "Output path: " << output_path << std::endl;
model_config->Logger("gsum") << "Output path: " << output_path << std::endl;
model_config->Logger("asum") << "Output path: " << output_path << std::endl;

validation_corpus->set_keep_words(true);

Expand Down Expand Up @@ -287,7 +286,6 @@ int main(int argc, char** argv)

model_config->Logger("csum") << "Output path: " << output_path << std::endl;
model_config->Logger("gsum") << "Output path: " << output_path << std::endl;
model_config->Logger("asum") << "Output path: " << output_path << std::endl;

model_config->vocab_size((unsigned)data_model.words().m_str_vec.size());
model_config->action_size((unsigned)data_model.actions().size());
Expand Down

0 comments on commit ab8ea0d

Please sign in to comment.